mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 16:50:27 +00:00
Patch a bug in the subseq and revcomplement methods. That patchs the bug in the option -c of obipcr
Former-commit-id: 7999b917d07545271036af6e66f53aea27fc6e7b
This commit is contained in:
@@ -43,6 +43,10 @@ func nucComplement(n byte) byte {
|
||||
// The function returns the reverse complemented BioSequence.
|
||||
func (sequence *BioSequence) ReverseComplement(inplace bool) *BioSequence {
|
||||
|
||||
if sequence == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
if !inplace {
|
||||
sequence = sequence.Copy()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user