mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-09 01:00:26 +00:00
Correct for a strange bug...
This commit is contained in:
@@ -30,7 +30,7 @@ func PairingOptionSet(options *getoptions.GetOpt) {
|
||||
options.Alias("O"),
|
||||
options.Description("Minimum ovelap between both the reads to consider the aligment"))
|
||||
options.Float64Var(&_MinIdentity, "min-identity", _MinIdentity,
|
||||
options.Alias("O"),
|
||||
options.Alias("X"),
|
||||
options.Description("Minimum identity between ovelaped regions of the reads to consider the aligment"))
|
||||
options.Float64Var(&_GapPenality, "gap-penality", _GapPenality,
|
||||
options.Alias("G"),
|
||||
|
||||
@@ -105,7 +105,7 @@ func JoinPairedSequence(seqA, seqB obiseq.BioSequence, inplace bool) obiseq.BioS
|
||||
// input sequence.
|
||||
//
|
||||
func AssemblePESequences(seqA, seqB obiseq.BioSequence,
|
||||
gap float64, delta, minOverlap int, minIdentity float64,withStats bool,
|
||||
gap float64, delta, minOverlap int, minIdentity float64, withStats bool,
|
||||
inplace bool,
|
||||
arenaAlign obialign.PEAlignArena) obiseq.BioSequence {
|
||||
|
||||
@@ -119,7 +119,7 @@ func AssemblePESequences(seqA, seqB obiseq.BioSequence,
|
||||
}
|
||||
lcons := cons.Length()
|
||||
aliLength := lcons - _Abs(left) - _Abs(right)
|
||||
identity := float64(match)/float64(aliLength)
|
||||
identity := float64(match) / float64(aliLength)
|
||||
|
||||
if aliLength >= minOverlap && identity >= minIdentity {
|
||||
if withStats {
|
||||
@@ -268,7 +268,6 @@ func IAssemblePESequencesBatch(iterator obiseq.IPairedBioSequenceBatch,
|
||||
go f(iterator.Split(), i)
|
||||
}
|
||||
go f(iterator, nworkers-1)
|
||||
|
||||
return newIter
|
||||
|
||||
}
|
||||
|
||||
@@ -14,11 +14,11 @@ func PCR(iterator obiseq.IBioSequenceBatch) (obiseq.IBioSequenceBatch, error) {
|
||||
|
||||
opts = append(opts,
|
||||
obiapat.OptionForwardPrimer(
|
||||
ForwardPrimer(),
|
||||
ForwardPrimer(),
|
||||
AllowedMismatch(),
|
||||
),
|
||||
obiapat.OptionReversePrimer(
|
||||
ReversePrimer(),
|
||||
ReversePrimer(),
|
||||
AllowedMismatch(),
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user