Correct for a strange bug...

This commit is contained in:
2022-02-07 11:51:35 +01:00
parent 30d80db02d
commit 38e4655f38
7 changed files with 163 additions and 14 deletions

View File

@@ -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"),

View File

@@ -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
}

View File

@@ -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(),
),
)