From fc3dab30e1143cd8a7afc3a3664882a7bcaef786 Mon Sep 17 00:00:00 2001 From: Vyacheslav Brover Date: Sat, 14 Dec 2024 14:51:04 -0500 Subject: [PATCH] PD-5191 bug in --debug --- common.cpp | 2 +- stxtyper.cpp | 9 +++++---- version.txt | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/common.cpp b/common.cpp index 6208d36..304ca7c 100644 --- a/common.cpp +++ b/common.cpp @@ -297,7 +297,7 @@ string getStack () char** strings = backtrace_symbols (buffer, nptrs); if (strings /*&& ! which ("addr2line"). empty ()*/) { - FOR_REV_END (int, i, 1, nptrs) + FOR_START /*FOR_REV_END*/ (int, i, 1, nptrs) // From top to bottom of the stack s += string (strings [i]) + "\n"; s += "Use: addr2line -f -C -e " + programArgs [0] + " -a
"; //free (strings); diff --git a/stxtyper.cpp b/stxtyper.cpp index d99c45a..5a1afdd 100644 --- a/stxtyper.cpp +++ b/stxtyper.cpp @@ -32,10 +32,11 @@ * Dependencies: NCBI BLAST, gunzip (optional) * * Release changes: +* 1.0.30 12/14/2024 Bug in --debug * PD-5191 strong operons should not be partial * --threads: reduces time by 30% for large input DNA * Bug in frame shifts detection (for multiple frame shifts in the same protein) -* 1.0.29 12/12/2024 PD-5192 Only operons with >= 80% identity are reported // Only BLAST HSPs with identity >= 80% are considered +* 1.0.29 12/13/2024 PD-5192 Only operons with >= 80% identity are reported // Only BLAST HSPs with identity >= 80% are considered * 1.0.28 12/03/2024 tblastn -gapextend 2 * 10/30/2024 colorizeDir() * 1.0.27 10/23/2024 PD-5155 "Hierarchy node" with mixed types is :: @@ -288,7 +289,7 @@ struct BlastAlignment QC_ASSERT (refEnd - refStart <= length); } QC_ASSERT (! targetName. empty ()); - QC_ASSERT (between (frame, 1, 3)); + QC_ASSERT (between (frame, 1, 3 + 1)); QC_ASSERT (contains (stxClass2identity, stxClass)); QC_ASSERT (isLeft (stxType, stxClass)); QC_ASSERT (subunit == 'A' || subunit == 'B'); @@ -515,7 +516,7 @@ struct Operon const BlastAlignment* al1 {nullptr}; // !nullptr const BlastAlignment* al2 {nullptr}; - // al1->targetEnd < al2->targetStart + // al1->targetEnd <= al2->targetStart Operon () = default; @@ -538,7 +539,7 @@ struct Operon al2->qc (); QC_ASSERT (al1->targetName == al2->targetName); QC_ASSERT (al1->targetStrand == al2->targetStrand); - QC_ASSERT (al1->targetEnd < al2->targetStart); + QC_ASSERT (al1->targetEnd <= al2->targetStart); QC_ASSERT (al1->subunit != al2->subunit); QC_ASSERT (al2->reported); } diff --git a/version.txt b/version.txt index 4c24bf1..475bda9 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.0.29 +1.0.30