Add a reverse complement worker

This commit is contained in:
2022-10-05 09:41:59 +02:00
parent 935fc31982
commit d9c18ab0b5
2 changed files with 17 additions and 1 deletions

View File

@ -196,3 +196,11 @@ func SliceWorkerPipe(worker SeqSliceWorker, sizes ...int) Pipeable {
return f
}
func ReverseComplementWorker(inplace bool) SeqWorker {
f := func(input *obiseq.BioSequence) *obiseq.BioSequence {
return input.ReverseComplement(inplace)
}
return f
}