Patch a bug in the embl reader and adds some doc

Former-commit-id: 9b5f75fb14bcc3043da1647055279987a295d271
This commit is contained in:
2024-01-31 15:43:02 +01:00
parent f2f7b4574e
commit 23758b00f6
7 changed files with 105 additions and 4 deletions

View File

@ -99,6 +99,11 @@ func (sequence *BioSequence) _revcmpMutation() *BioSequence {
return sequence
}
/**
* ReverseComplementWorker is a function that returns a SeqWorker which performs reverse complement operation on given BioSequence.
* @param inplace {bool}: If true, changes will be made to original sequence object else new sequence object will be created. Default value is false.
* @returns {SeqWorker} A function that accepts *BioSequence and returns its reversed-complement form.
*/
func ReverseComplementWorker(inplace bool) SeqWorker {
f := func(input *BioSequence) *BioSequence {
return input.ReverseComplement(inplace)