Skip to content

Commit 86e783d

Browse files
committed
stripped debugging statements
1 parent 818cd93 commit 86e783d

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

workflows/Nextflow/modules/runFaQCs/resources/usr/bin/faqcs_quality_plots.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ def manual_quality_boxplot(matrix_file, total_reads, total_bases, xlab, ylab, xl
1515

1616
fig = go.Figure()
1717
fig.add_trace(go.Scatter(x=[1], y=[1], mode="markers", marker=dict(opacity=0)))
18-
print(f"matrix file is {matrix_file}")
1918
for i in x_pos:
2019
counts = z[i-1]
2120
total = counts.sum()
@@ -270,4 +269,4 @@ def main():
270269
combined_hist.write_html(hist_out)
271270

272271
if __name__ == "__main__":
273-
main()
272+
main()

workflows/Nextflow/modules/runFaQCs/resources/usr/bin/statsToJSON.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ def main():
210210

211211

212212
args = parser.parse_args()
213+
213214
json_dict, criteria_labels = parse_qc_file(args.input_file)
214215

215216
# Write JSON
@@ -232,6 +233,7 @@ def main():
232233
else:
233234
print("[!] Skipping histogram section — required length_count.txt files not found.")
234235
args.hist_out = None
236+
235237
# GC content files
236238
base1 = os.path.join(qc_stats_dir, "qa.QC.base_content.txt")
237239
base2 = os.path.join(qc_stats_dir, "QC.base_content.txt")
@@ -244,6 +246,7 @@ def main():
244246
print("[!] Skipping GC content section — required base_content.txt files not found.")
245247
args.gc1_out = None
246248
args.gc2_out = None
249+
247250
# ATCG composition plots
248251
base_matrix1 = os.path.join(qc_stats_dir, "qa.QC.base.matrix")
249252
base_matrix2 = os.path.join(qc_stats_dir, "QC.base.matrix")
@@ -270,7 +273,7 @@ def main():
270273
combined_qual = faqcs_quality_histogram.combine_quality_histograms(qh_fig1, qh_fig2, qa_annotation, main_annotation, qh_min1, qh_max1, qh_min2, qh_max2)
271274
combined_qual.write_html(args.qual_out)
272275
print(f"[✓] Quality histogram written to {args.qual_out}")
273-
print("past quality histograms\n")
276+
274277
# Quality boxplot and 3D plots
275278
qa_matrix = os.path.join(qc_stats_dir, "qa.QC.quality.matrix")
276279
trim_matrix = os.path.join(qc_stats_dir, "QC.quality.matrix")
@@ -290,7 +293,7 @@ def main():
290293
qbar_fig2, qbar_anno2 = faqcs_quality_plots.quality_count_histogram(trim_matrix, qh_max1, "Trimmed Reads Q score", "")
291294
faqcs_quality_plots.combine_quality_histograms(qbar_fig1, qbar_fig2, qbar_anno1, qbar_anno2).write_html(args.qhist_out)
292295
print(f"[✓] Quality score histogram written to {args.qhist_out}")
293-
print("past quality boxplots and histograms")
296+
294297
# Merge into final report
295298
sections = [("QC Summary Plots", args.html_out)]
296299
if os.path.isfile(args.hist_out):
@@ -313,5 +316,6 @@ def main():
313316
sections.append(("Quality Score Histogram", args.qhist_out))
314317

315318
merge_html_plots(sections, args.final_out)
319+
316320
if __name__ == "__main__":
317-
main()
321+
main()

0 commit comments

Comments
 (0)