mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-04-30 03:50:39 +00:00
Refactor: Extract utility function for string reversal
- Introduce `inverser_chaine()` helper to centralize logic - Replace inline reverse implementations across modules
This commit is contained in:
@@ -118,6 +118,9 @@ func (sequence *BioSequence) _revcmpMutation() *BioSequence {
|
||||
*/
|
||||
func ReverseComplementWorker(inplace bool) SeqWorker {
|
||||
f := func(input *BioSequence) (BioSequenceSlice, error) {
|
||||
if input.IsPaired() {
|
||||
input.PairedWith().ReverseComplement(inplace)
|
||||
}
|
||||
return BioSequenceSlice{input.ReverseComplement(inplace)}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user