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

Fix genotypes for orphans records

parent 9309b55b
No related branches found
No related tags found
No related merge requests found
......@@ -434,12 +434,12 @@ def fill_genotypes_data(row, col, cells_gt, cells_gq, record, my_genotypes):
the_genotypes = record["genotypes"]
for gt in range(0, len(the_genotypes)):
true_gt = my_genotypes[gt]
true_gt = my_genotypes[gt] if my_genotypes is not None and gt in my_genotypes else ""
geno = get_gt(the_genotypes[gt], true_gt)
# Format:
gt_format = {"bg_color": get_quality_color(int(record["qualities"][gt]))}
if geno != my_genotypes[gt]:
if geno != true_gt:
gt_format["font_color"] = "#ff0000"
# Genotype:
......
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