mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 16:50:27 +00:00
Change the API of workers
Former-commit-id: 9b07306edd8cf28266f86f95823948fa99d39ea9
This commit is contained in:
@@ -105,8 +105,8 @@ func (sequence *BioSequence) _revcmpMutation() *BioSequence {
|
||||
* @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)
|
||||
f := func(input *BioSequence) (BioSequenceSlice, error) {
|
||||
return BioSequenceSlice{input.ReverseComplement(inplace)}, nil
|
||||
}
|
||||
|
||||
return f
|
||||
|
||||
Reference in New Issue
Block a user