Commit e6189073 by MARIJON Pierre

Correct error in legend generation

parent 1dfa9595
......@@ -152,13 +152,15 @@ def _load_minimap_info(param, minimap_paf, canu_contig_on_minimap,
reads.add(row[5])
nb_line += 1
canu_contig_on_minimap_legend = generate_legend(canu_contig_on_minimap_legend)
minimap_stat = dict()
minimap_stat["Number of overlap"] = nb_line
minimap_stat["Number of reads"] = len(reads)
param["minimap_stat"] = minimap_stat
param["canu_contig_mini"] = str(base64.b64encode(open(canu_contig_on_minimap, "rb").read()))[2:-1]
param["canu_contig_mini_legend"] = str(base64.b64encode(open(canu_contig_on_minimap_legend, "rb").read()))[2:-1]
param["canu_contig_mini_legend"] = str(base64.b64encode(canu_contig_on_minimap_legend.read()))[2:-1]
# build path search
minimap_path_readA = list()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment