Skip to content
Snippets Groups Projects
Commit 9203fae4 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Some fixes, and set ylim 0-100 for recall figure

parent 06baa18f
No related branches found
No related tags found
No related merge requests found
......@@ -156,6 +156,7 @@ def __draw_recall_fig(recall, output_dir):
plt.set_ylabel("Recall (%)", fontsize=15)
plt.set_xlabel("Tool", fontsize=15)
plt.tick_params(labelsize=8)
plt.set_ylim([0,100])
pyplot.savefig(os.path.join(output_dir, "recall_per_tool.pdf"))
......
......@@ -449,7 +449,7 @@ def fill_genotypes_data(row, col, cells_gt, cells_gq, record, my_genotypes, hapl
geno = "N/N"
# Format:
gt_format = {"bg_color": get_quality_color(int(record["qualities"][gt]))}
gt_format = {"bg_color": get_quality_color(int(record["qualities"][gt]) if record["qualities"][gt] is not None else 0)}
if (not haploid and geno != true_gt) or \
(haploid and ((true_gt == "1" and geno != "1/1") or (true_gt == "0" and geno != "0/0"))):
gt_format["font_color"] = "#ff0000"
......@@ -457,7 +457,7 @@ def fill_genotypes_data(row, col, cells_gt, cells_gq, record, my_genotypes, hapl
# Genotype:
cells_gt[XLSX_COLS[col + gt] + str(row)] = {"text": geno, "format": gt_format}
# Quality:
cells_gq[XLSX_COLS[col + gt] + str(row)] = {"text": int(record["qualities"][gt]), "format": gt_format}
cells_gq[XLSX_COLS[col + gt] + str(row)] = {"text": int(record["qualities"][gt]) if record["qualities"][gt] is not None else 0, "format": gt_format}
return cells_gt, cells_gq
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment