mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-11-09 17:24:41 +00:00
Patch a bug for multiple amplicon per sequence.
Former-commit-id: b252d2de8e1a85d65c2951aa1958ee038e35741d
This commit is contained in:
1 parent
84b3e4d097
commit
3f69fa41d6
4 files changed
+42
-33
No files matched your search
@@ -188,7 +188,6 @@ func MakeApatSequence(sequence *obiseq.BioSequence, circular bool, recycle ...Ap
|
||||
|
||||
// copy the data into the buffer, by converting it to a Go array
|
||||
p := unsafe.Pointer(unsafe.SliceData(sequence.Sequence()))
|
||||
|
||||
pseqc := C.new_apatseq((*C.char)(p), C.int32_t(ic), C.int32_t(seqlen),
|
||||
(*C.Seq)(out),
|
||||
&errno, &errmsg)
|
||||
@@ -200,6 +199,7 @@ func MakeApatSequence(sequence *obiseq.BioSequence, circular bool, recycle ...Ap
|
||||
C.free(p)
|
||||
// atomic.AddInt64(&_AllocatedApaSequences, -1)
|
||||
}
|
||||
|
||||
return NilApatSequence, errors.New(message)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user