Patch a bug in obitagpcr

This commit is contained in:
Eric Coissac
2024-11-18 21:10:47 +01:00
parent 4b65bfce84
commit 7884a74f9c
5 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View File

@ -118,3 +118,4 @@ doc/book/wolf_data/Release-253/ncbitaxo/readme.txt
doc/book/results/toto.tasta
sample/.DS_Store
GO
template.16S

View File

@ -7,7 +7,7 @@ import (
// TODO: The version number is extracted from git. This induces that the version
// corresponds to the last commit, and not the one when the file will be
// commited
var _Commit = "fc75974"
var _Commit = "4b65bfc"
var _Version = "Release 4.3.0"
// Version returns the version of the obitools package.

View File

@ -179,6 +179,9 @@ func (s *BioSequence) Copy() *BioSequence {
newSeq.sequence = CopySlice(s.sequence)
newSeq.qualities = CopySlice(s.qualities)
newSeq.feature = CopySlice(s.feature)
if s.revcomp != nil {
newSeq.revcomp = s.revcomp.Copy()
}
if len(s.annotations) > 0 {
s.annot_lock.Lock()

View File

@ -55,8 +55,7 @@ func (sequence *BioSequence) ReverseComplement(inplace bool) *BioSequence {
if !inplace {
original = sequence
sequence.revcomp = sequence.Copy()
sequence = sequence.revcomp
sequence = sequence.Copy()
sequence.revcomp = original
}

View File

@ -134,8 +134,6 @@ func IPCRTagPESequencesBatch(iterator obiiter.IBioSequence,
banot["experiment"] = experiment
if CLIReorientate() && direction == "reverse" {
B.ReverseComplement(true)
A.ReverseComplement(true)
B.PairTo(A)
batch.Slice()[i] = B
}