mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-11-10 01:24:41 +00:00
Work on iterators and recycling of biosequences
This commit is contained in:
1 parent
ef66ca4972
commit
e8fff6477b
22 files changed
+350
-111
No files matched your search
+4
-4
@@ -241,7 +241,7 @@ func _Pcr(seq ApatSequence, sequence obiseq.BioSequence,
|
||||
|
||||
match, _ := sequence.Subsequence(fm[0], fm[1], opt.pointer.circular)
|
||||
annot["forward_match"] = match.String()
|
||||
match.Destroy()
|
||||
(&match).Recycle()
|
||||
|
||||
annot["forward_error"] = erri
|
||||
|
||||
@@ -249,7 +249,7 @@ func _Pcr(seq ApatSequence, sequence obiseq.BioSequence,
|
||||
match, _ = sequence.Subsequence(rm[0], rm[1], opt.pointer.circular)
|
||||
match = match.ReverseComplement(true)
|
||||
annot["reverse_match"] = match.String()
|
||||
match.Destroy()
|
||||
(&match).Recycle()
|
||||
|
||||
annot["reverse_error"] = errj
|
||||
results = append(results, amplicon)
|
||||
@@ -315,14 +315,14 @@ func _Pcr(seq ApatSequence, sequence obiseq.BioSequence,
|
||||
match, _ := sequence.Subsequence(rm[0], rm[1], opt.pointer.circular)
|
||||
match.ReverseComplement(true)
|
||||
annot["forward_match"] = match.String()
|
||||
match.Destroy()
|
||||
(&match).Recycle()
|
||||
|
||||
annot["forward_error"] = errj
|
||||
|
||||
annot["reverse_primer"] = reverse.String()
|
||||
match, _ = sequence.Subsequence(fm[0], fm[1], opt.pointer.circular)
|
||||
annot["reverse_match"] = match.String()
|
||||
match.Destroy()
|
||||
(&match).Recycle()
|
||||
|
||||
annot["reverse_error"] = erri
|
||||
results = append(results, amplicon)
|
||||
|
||||
Reference in new issue
Block a user