Skip to content

Commit d24aa79

Browse files
committed
Enable errors.tsv for now
1 parent 2e76347 commit d24aa79

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

veritymap/py_src/reporting.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def make_plotly_html(assemblies, all_data, out_dir):
2424
for asm in assemblies:
2525
open(join(out_dir, asm.label + "_kmers_dist_diff.bed"), "w")
2626
open(join(out_dir, asm.label + "_reads_dist_diff.txt"), "w")
27-
open(join(out_dir, asm.label + "_errors.bed"), "w")
27+
open(join(out_dir, asm.label + "_errors.tsv"), "w")
2828

2929
for ref_name in all_refs:
3030
fig = make_subplots(rows=len(all_data), cols=1,
@@ -92,11 +92,11 @@ def make_plotly_html(assemblies, all_data, out_dir):
9292
(ref_name, prev_i, x - step, prev_diff, prev_v))
9393
prev_i = 0
9494
prev_v = 0
95-
# errors_fname = join(out_dir, asm_id + "_errors.bed")
96-
# with open(errors_fname, "a") as f:
97-
# for e in new_errors:
98-
# f.write("\t".join([str(s) for s in e]))
99-
# f.write("\n")
95+
errors_fname = join(out_dir, asm_id + "_errors.tsv")
96+
with open(errors_fname, "a") as f:
97+
for e in new_errors:
98+
f.write("\t".join([str(s) for s in e]))
99+
f.write("\n")
100100
reads_fname = join(out_dir, asm_id + "_reads_dist_diff.txt")
101101
prev_i = 0
102102
with open(reads_fname, "a") as f:

0 commit comments

Comments
 (0)