# HG changeset patch # User sanbi-uwc # Date 1618242838 0 # Node ID 6bdec8c62aec95180ac41059f29c34761541d0bd # Parent 878f18249f76f90d60a41c8978d0f7b3cbda8c2a "planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/tools/qc commit 58ea5206cf78a4ff48fadedbe4e260c190d6f06e" diff -r 878f18249f76 -r 6bdec8c62aec qc.py --- a/qc.py Mon Apr 12 12:28:41 2021 +0000 +++ b/qc.py Mon Apr 12 15:53:58 2021 +0000 @@ -160,8 +160,8 @@ # write a json file from the dict json_file = args.outfile + '.json' - with open(args.outfile, 'w') as jsonfile: - json.dump(qc_line, json_file) + with open(json_file, 'w') as jsonfile: + json.dump(qc_line, jsonfile) N_density = sliding_window_N_density(fasta) make_qc_plot(depth_pos, N_density, args.sample)