Skip to content

Commit

Permalink
fix: fix genotype-ignoring recall computation
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Jul 20, 2022
1 parent c490007 commit a83f00d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/notebooks/plot-precision-recall.py.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
" report[\"coverage\"] = report[\"coverage\"].apply(lambda cov: snakemake.params.cov_labels[cov])\n",
"\n",
" report[\"tp_no_gt\"] = report[\"QUERY.TOTAL\"] - report[\"QUERY.FP\"] + report[\"FP.gt\"]\n",
" report[\"t\"] = report[\"tp_no_gt\"] + report[\"TRUTH.FN\"]\n",
" report[\"t\"] = report[\"tp_no_gt\"] + report[\"TRUTH.FN\"] - report[\"FP.gt\"] # TRUTH.FN alone also counts mismatched genotypes.\n",
" report[\"precision\"] = report[\"tp_no_gt\"] / report[\"QUERY.TOTAL\"]\n",
" report[\"recall\"] = report[\"tp_no_gt\"] / (report[\"t\"])\n",
" report[\"correct genotype\"] = \"no\"\n",
Expand Down

0 comments on commit a83f00d

Please sign in to comment.