Adds some stats in obiparing about fast align results

Former-commit-id: 44f6d6538e759dd7dc1db068a812957f6b20f50d
This commit is contained in:
2023-11-24 10:57:10 +01:00
parent ce66b0af2f
commit ec31ae86b9
2 changed files with 5 additions and 4 deletions

View File

@@ -108,7 +108,7 @@ func AssemblePESequences(seqA, seqB *obiseq.BioSequence,
inplace bool,
arenaAlign obialign.PEAlignArena) *obiseq.BioSequence {
score, path := obialign.PEAlign(seqA, seqB, gap, delta, arenaAlign)
score, path, fastscore, over := obialign.PEAlign(seqA, seqB, gap, delta, arenaAlign)
cons, match := obialign.BuildQualityConsensus(seqA, seqB, path, true)
left := path[0]
@@ -123,6 +123,8 @@ func AssemblePESequences(seqA, seqB *obiseq.BioSequence,
identity = 0
}
annot := cons.Annotations()
annot["paring_fast_score"] = fastscore
annot["paring_fast_overlap"] = over
if aliLength >= minOverlap && identity >= minIdentity {
annot["mode"] = "alignment"
@@ -216,7 +218,6 @@ func IAssemblePESequencesBatch(iterator obiiter.IBioSequence,
nworkers = sizes[0]
}
newIter := obiiter.MakeIBioSequence()
newIter.Add(nworkers)