Skip to content

Commit

Permalink
Warning message when the maximum identity threshold is <0.99 and Stra…
Browse files Browse the repository at this point in the history
…inEst infer a mixture of strains
  • Loading branch information
Davide Albanese committed Sep 20, 2017
1 parent 55bcd80 commit 4e104c0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions strainest/api/_est.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,10 @@ def write_abund_info():
info["R"], info["PVal"] = pearsonr(y, y_pred)

write_abund_info()

if (np.max(coef_norm) < 0.9) and (max_ident_thr < 0.99):
sys.stdout.write("WARNING: the maximum identity threshold is <0.99 and "
"StrainEst has inferred a mixture of strains. The "
"mixture of strains could be a single strain with no "
"available reference genome. Please check the file "
"counts.txt.")

0 comments on commit 4e104c0

Please sign in to comment.