Add a reverse complement worker

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

No files matched your search

+8
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
}