Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/local/plot_homer_annotatepeaks.nf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ process PLOT_HOMER_ANNOTATEPEAKS {
-p $prefix \\
$args

find ./ -type f -name "*.txt" -exec cat {} \\; | cat $mqc_header - > ${prefix}.summary_mqc.tsv
find ./ -type f -name "*summary.txt" -exec cat {} \\; | cat $mqc_header - > ${prefix}.summary_mqc.tsv
Copy link
Member Author

@drpatelh drpatelh Sep 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed bug noticed whilst testing on Azure where MultiQC sections were being rendered in the wrong order in the report. Still need to test but I suspect it is happening due to this line. Basically the script is pickup up all files ending in .txt because they are copied into the work directory and hence appending the contents to summary_mqc.tsv which then doesn't render in MultiQC properly.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch. I can see the *peaks.annotatePeaks.txt files in the working directory which would have been picked up in error!


cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand Down
19 changes: 19 additions & 0 deletions tower.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
reports:
multiqc_report.html:
display: "MultiQC HTML report"
macs2_peak.plots.pdf:
display: "All samples MACS2 peak QC PDF plots"
macs2_annotatePeaks.plots.pdf:
display: "All samples HOMER annotatePeaks.pl QC PDF plots"
"*.consensus_peaks.plots.pdf":
display: "Consensus peaks DESeq2 QC PDF plots"
"*.consensus_peaks.boolean.intersect.plot.pdf":
display: "Consensus peaks UpSetR intersection PDF plots"
"*.consensus_peaks.boolean.annotatePeaks.txt":
display: "Consensus peaks annotated by HOMER"
"*.plotHeatmap.pdf":
display: "Per-sample deepTools plotHeatmap PDF plots"
"*_peaks.broadPeak":
display: "Per-sample MACS2 broadPeak file"
"*_peaks.narrowPeak":
display: "Per-sample MACS2 narrowPeak file"
2 changes: 1 addition & 1 deletion workflows/chipseq.nf
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ workflow CHIPSEQ {
ch_versions = ch_versions.mix(MARK_DUPLICATES_PICARD.out.versions)

//
// SUBWORKFLOW: Fix getting name sorted BAM here for PE/SE
// SUBWORKFLOW: Filter BAM file with BamTools
//
FILTER_BAM_BAMTOOLS (
MARK_DUPLICATES_PICARD.out.bam.join(MARK_DUPLICATES_PICARD.out.bai, by: [0]),
Expand Down