Commit 66775525 authored by MARIJON Pierre's avatar MARIJON Pierre

Correct error in load of minimap param

parent 59001239
......@@ -139,7 +139,8 @@ def _load_canu_info(param, canu_correction_report, canu_fasta,
param["canu_path_len"] = canu_path_len
param["canu_path_svg"] = canu_path_svg
def _load_minimap_info(param, minimap_paf, minimap_png, mini_path_search_result):
def _load_minimap_info(param, minimap_paf, canu_contig_on_minimap,
canu_contig_on_minimap_legend, mini_path_search_result):
# generate stat from minimap
reads = set()
......@@ -156,7 +157,8 @@ def _load_minimap_info(param, minimap_paf, minimap_png, mini_path_search_result)
minimap_stat["Number of reads"] = len(reads)
param["minimap_stat"] = minimap_stat
param["minimap_gfa"] = str(base64.b64encode(open(minimap_png, "rb").read()))[2:-1]
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]
# build path search
minimap_path_readA = list()
......@@ -240,7 +242,7 @@ def canu_minimap(template_path, canu_correction_report, canu_fasta, canu_bog_gfa
canu_bog, canu_paf, canu_contig, canu_unitig, canu_contig_report_csv,
canu_contig_report_png, canu_path_search_result, list_input_file)
_load_minimap_info(param, minimap_paf, minimap_png, mini_path_search_result)
_load_minimap_info(param, minimap_paf, canu_contig_on_minimap, canu_contig_on_minimap_legend, mini_path_search_result)
with open(out_filename, "w") as f :
f.write(template.render(param))
......@@ -263,11 +265,11 @@ def canu_miniasm(template_path, canu_correction_report, canu_fasta, canu_bog_gfa
canu_bog, canu_paf, canu_contig, canu_unitig, canu_contig_report_csv,
canu_contig_report_png, canu_path_search_result, list_input_file)
_load_minimap_info(param, minimap_paf, minimap_png, mini_path_search_result)
_load_minimap_info(param, minimap_paf, canu_contig_on_minimap, canu_contig_on_minimap_legend, mini_path_search_result)
_load_miniasm_info(param, miniasm_gfa, miniasm_png)
with open(out_filename, "w") as f :
f.write(template.render(param))
......
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 to comment