Skip to content

Commit 9ea1043

Browse files
Merge pull request #296 from syntonym/master
Consistently report percentages with 4 digits
2 parents 461ae32 + 79778e8 commit 9ea1043

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pipelines/pepatac.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,9 +1196,9 @@ def report_bam_qc(bamqc_log):
11961196
pbc1 = 0
11971197
pbc2 = 0
11981198

1199-
pm.report_result("NRF", round(float(nrf),2))
1200-
pm.report_result("PBC1", round(float(pbc1),2))
1201-
pm.report_result("PBC2", round(float(pbc2), 2))
1199+
pm.report_result("NRF", round(float(nrf), 4))
1200+
pm.report_result("PBC1", round(float(pbc1), 4))
1201+
pm.report_result("PBC2", round(float(pbc2), 4))
12021202

12031203
pm.run(cmd, bamQC, follow=lambda: report_bam_qc(bamQC))
12041204

@@ -2242,7 +2242,7 @@ def report_peak_count():
22422242
frip = calc_frip(rmdup_bam, peak_output_file,
22432243
frip_func=ngstk.simple_frip,
22442244
pipeline_manager=pm)
2245-
pm.report_result("FRiP", round(frip, 2))
2245+
pm.report_result("FRiP", round(frip, 4))
22462246

22472247
# if pm.get_stat("FRiP_Q1") is None or args.new_start:
22482248
# score_sorted_peaks = os.path.join(peak_folder, args.sample_name +
@@ -2268,7 +2268,7 @@ def report_peak_count():
22682268
frip_ref = calc_frip(rmdup_bam, res.frip_ref_peaks,
22692269
frip_func=ngstk.simple_frip,
22702270
pipeline_manager=pm)
2271-
pm.report_result("FRiP_ref", round(frip_ref, 2))
2271+
pm.report_result("FRiP_ref", round(frip_ref, 4))
22722272

22732273

22742274
########################################################################

0 commit comments

Comments
 (0)