Skip to content

Commit

Permalink
Prep for updating release 2.0 with AQ
Browse files Browse the repository at this point in the history
  • Loading branch information
rcedgar committed Oct 29, 2024
1 parent 5e90cc4 commit e86cff4
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/dssaligner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ DSSAligner::DSSAligner()
}
else
{
m_UFs.push_back(UF_qual);
m_UFs.push_back(UF_aq);
m_UFs.push_back(UF_query);
m_UFs.push_back(UF_target);
m_UFs.push_back(UF_evalue);
Expand Down
2 changes: 1 addition & 1 deletion src/dssaligner.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class DSSAligner
float GetNewTestStatistic(bool Top) const { return Top ? m_NewTestStatisticA : m_NewTestStatisticB; }
//float GetAvgTestStatistic() const { return (m_TestStatisticA + m_TestStatisticB)/2; }
float GetEvalue(bool Top) const { return Top ? m_EvalueA : m_EvalueB; }
float GetQuality(bool Top) const { return Top ? m_QualityA : m_QualityB; }
float GetAQ(bool Top) const { return Top ? m_QualityA : m_QualityB; }

void GetRow(bool Up, bool Top, bool Global, string &Row) const;

Expand Down
3 changes: 2 additions & 1 deletion src/usage.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ const char *usage_txt[] =
" # tl Target length\n"
" # pctid Percent identity of alignment\n"
" # cigar CIGAR string\n"
" # aq AQ (aln. qual., 0 .. 1, >0.5 suggests homology)\n"
" # evalue You can guess this one\n"
" # qrow Aligned query sequence with gaps (local)\n"
" # trow Aligned target sequence with gaps (local)\n"
" # qrowg Aligned query sequence with gaps (global)\n"
" # trowg Aligned target sequence with gaps (global)\n"
" # std query+target+qlo+qhi+ql+tlo+thi+tl+pctid+evalue\n"
" # default evalue+query+target\n"
" # default aq+query+target+evalue\n"
"\n"
"Search and alignment options\n"
" -fast, -sensitive or -verysensitive # Required\n"
Expand Down
2 changes: 1 addition & 1 deletion src/userfieldnames.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ x(dpscore)
x(lddt)
x(ids)
x(gaps)
x(qual)
x(aq)

#undef x
4 changes: 2 additions & 2 deletions src/userfields.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ void DSSAligner::WriteUserField(FILE *f, USERFIELD UF, bool Up) const
break;
}

case UF_qual:
case UF_aq:
{
fprintf(f, "%.4f", GetQuality(Up));
fprintf(f, "%.4f", GetAQ(Up));
break;
}

Expand Down
1 change: 1 addition & 0 deletions test_results/success_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ reseekv2.0.i86linux64[32d9850] 2024-10-26/09:57:22
reseekv2.0.i86linux64[25a1340] 2024-10-28/07:32:40
reseekv2.0.i86linux64[854fa22] 2024-10-28/08:30:48
reseekv2.0.i86linux64[e2fa7e1] 2024-10-28/17:34:37
reseekv2.0.i86linux64[5e90cc4] 2024-10-29/15:43:38
2 changes: 1 addition & 1 deletion test_scripts/check_columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def check_default(fn):
try:
Q = float(flds[0])
except:
print("ERROR %s qual %s not float" % (fn, flds[0]))
print("ERROR %s aq %s not float" % (fn, flds[0]))
errors += 1
return
try:
Expand Down
2 changes: 1 addition & 1 deletion test_scripts/columns.bash
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $reseek \
$reseek \
-search dir.bca \
-fast \
-columns qual+query+target+evalue \
-columns aq+query+target+evalue \
-output columns_same_as_default.tsv \
-log columns_same_as_default.log

Expand Down

0 comments on commit e86cff4

Please sign in to comment.