Skip to content

Commit 611a3ee

Browse files
authored
Merge pull request #164 from drpatelh/master
TLC for MultiQC and add a couple of requested params
2 parents 7836e02 + 2aa8847 commit 611a3ee

15 files changed

+145
-73
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,23 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99

1010
* [#138](https://github.com/nf-core/chipseq/issues/138) - Add social preview image
1111
* [#153](https://github.com/nf-core/chipseq/issues/153) - Add plotHeatmap
12+
* [#159](https://github.com/nf-core/chipseq/issues/159) - expose bwa mem -T parameter
1213
* [nf-core/atacseq#63](https://github.com/nf-core/atacseq/issues/63) - Added multicore support for Trim Galore!
1314
* [nf-core/atacseq#71](https://github.com/nf-core/atacseq/issues/71) - consensus_peaks.mLb.clN.boolean.intersect.plot.pdf not generated
1415
* [nf-core/atacseq#75](https://github.com/nf-core/atacseq/issues/75) - Include gene annotation versions in multiqc report
1516
* [nf-core/atacseq#76](https://github.com/nf-core/atacseq/issues/76) - featureCounts coupled to DESeq2
1617
* [nf-core/atacseq#79](https://github.com/nf-core/atacseq/issues/79) - Parallelize DESeq2
1718
* [nf-core/atacseq#97](https://github.com/nf-core/atacseq/issues/97) - PBC1, PBC2 from pipeline?
19+
* [nf-core/atacseq#107](https://github.com/nf-core/atacseq/issues/107) - Add options to change MACS2 parameters
20+
* [nf-core/atacseq#109](https://github.com/nf-core/atacseq/issues/109) - Specify custom gtf but gene bed is not generated from that gtf?
21+
* Regenerated screenshots and added collapsible sections for output files in `docs/output.md`
1822
* Update template to tools `1.9`
1923
* Replace `set` with `tuple` and `file()` with `path()` in all processes
2024
* Capitalise process names
2125
* Parameters:
26+
* `--bwa_min_score` to set minimum alignment score for BWA MEM
27+
* `--macs_fdr` to provide FDR threshold for MACS2 peak calling
28+
* `--macs_pvalue` to provide p-value threshold for MACS2 peak calling
2229
* `--skip_peak_qc` to skip MACS2 peak QC plot generation
2330
* `--skip_peak_annotation` to skip annotation of MACS2 and consensus peaks with HOMER
2431
* `--skip_consensus_peaks` to skip consensus peak generation

assets/multiqc/deseq2_clustering_header.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#id: 'deseq2_clustering'
2-
#section_name: 'DESeq2: Sample similarity'
2+
#section_name: 'MERGED LIB: DESeq2 sample similarity'
33
#description: " matrix is generated from clustering by Euclidean distances between
44
# <a href='https://bioconductor.org/packages/release/bioc/html/DESeq2.html' target='_blank'>DESeq2</a>
55
# rlog values for each sample
66
# (see <a href='https://github.com/nf-core/chipseq/blob/master/bin/featurecounts_deseq2.r'><code>featurecounts_deseq2.r</code></a> script)."
77
#plot_type: 'heatmap'
8-
#anchor: 'nfcore_chipseq-deseq2_clustering'
8+
#anchor: 'deseq2_clustering'
99
#pconfig:
1010
# title: 'DESeq2: Heatmap of the sample-to-sample distances'
1111
# xlab: True

assets/multiqc/deseq2_pca_header.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#id: 'deseq2_pca'
2-
#section_name: 'DESeq2: PCA plot'
2+
#section_name: 'MERGED LIB: DESeq2 PCA plot'
33
#description: "between samples in the experiment.
44
# These values are calculated using <a href='https://bioconductor.org/packages/release/bioc/html/DESeq2.html'>DESeq2</a>
55
# in the <a href='https://github.com/nf-core/chipseq/blob/master/bin/featurecounts_deseq2.r'><code>featurecounts_deseq2.r</code></a> script."
66
#plot_type: 'scatter'
7-
#anchor: 'nfcore_chipseq-deseq2_pca'
7+
#anchor: 'deseq2_pca'
88
#pconfig:
99
# title: 'DESeq2: Principal component plot'
1010
# xlab: PC1

assets/multiqc/frip_score_header.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#id: 'frip_score'
2-
#section_name: 'MACS2: Peak FRiP score'
2+
#section_name: 'MERGED LIB: MACS2 FRiP score'
33
#description: "is generated by calculating the fraction of all mapped reads that fall
44
# into the MACS2 called peak regions. A read must overlap a peak by at least 20% to be counted.
55
# See <a href='https://www.encodeproject.org/data-standards/terms/' target='_blank'>FRiP score</a>."
66
#plot_type: 'bargraph'
7-
#anchor: 'nfcore_chipseq-frip_score'
7+
#anchor: 'frip_score'
88
#pconfig:
99
# title: 'FRiP score'
1010
# ylab: 'FRiP score'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#id: 'peak_annotation'
2-
#section_name: 'HOMER: Peak annotation'
2+
#section_name: 'MERGED LIB: HOMER peak annotation'
33
#description: "is generated by calculating the proportion of peaks assigned to genomic features by
44
# <a href='http://homer.ucsd.edu/homer/ngs/annotation.html' target='_blank'>HOMER annotatePeaks.pl</a>."
55
#plot_type: 'bargraph'
6-
#anchor: 'nfcore_chipseq-peak_annotation'
6+
#anchor: 'peak_annotation'
77
#pconfig:
88
# title: 'Peak to feature proportion'
99
# ylab: 'Peak count'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#id: 'peak_count'
2-
#section_name: 'MACS2: Peak count'
2+
#section_name: 'MERGED LIB: MACS2 peak count'
33
#description: "is calculated from total number of peaks called by
44
# <a href='https://github.com/taoliu/MACS' target='_blank'>MACS2</a>"
55
#plot_type: 'bargraph'
6-
#anchor: 'nfcore_chipseq-peak_count'
6+
#anchor: 'peak_count'
77
#pconfig:
88
# title: 'Total peak count'
99
# ylab: 'Peak count'

assets/multiqc/spp_correlation_header.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#id: 'strand_shift_correlation'
2-
#section_name: 'spp: Strand-shift correlation plot'
2+
#section_name: 'MERGED LIB: spp strand-shift correlation'
33
#description: "generated using run_spp.R script from
44
# <a href='https://github.com/kundajelab/phantompeakqualtools' target='_blank'>phantompeakqualtools</a>."
55
#plot_type: 'linegraph'
6-
#anchor: 'nfcore_chipseq-strand_shift_correlation'
6+
#anchor: 'strand_shift_correlation'
77
#pconfig:
88
# title: 'Strand-shift correlation plot'
99
# ylab: 'Cross-correlation'

assets/multiqc/spp_nsc_header.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#id: 'nsc_coefficient'
2-
#section_name: 'spp: NSC coefficient'
2+
#section_name: 'MERGED LIB: spp NSC coefficient'
33
#description: "generated using run_spp.R script from
44
# <a href='https://github.com/kundajelab/phantompeakqualtools' target='_blank'>phantompeakqualtools</a>."
55
#plot_type: 'bargraph'
6-
#anchor: 'nfcore_chipseq-nsc_coefficient'
6+
#anchor: 'nsc_coefficient'
77
#pconfig:
88
# title: 'Normalized strand cross-correlation coefficient'
99
# ylab: 'NSC coefficient'

assets/multiqc/spp_rsc_header.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#id: 'rsc_coefficient'
2-
#section_name: 'spp: RSC coefficient'
2+
#section_name: 'MERGED LIB: spp RSC coefficient'
33
#description: "generated using run_spp.R script from
44
# <a href='https://github.com/kundajelab/phantompeakqualtools' target='_blank'>phantompeakqualtools</a>."
55
#plot_type: 'bargraph'
6-
#anchor: 'nfcore_chipseq-rsc_coefficient'
6+
#anchor: 'rsc_coefficient'
77
#pconfig:
88
# title: 'Relative strand cross-correlation coefficient'
99
# ylab: 'RSC coefficient'

assets/multiqc_config.yaml

Lines changed: 46 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -21,73 +21,67 @@ exclude_modules:
2121

2222
module_order:
2323
- fastqc:
24-
name: 'FastQC (library; raw)'
25-
info: 'This section of the report shows FastQC results before adapter trimming.'
24+
name: 'LIB: FastQC (raw)'
25+
info: 'This section of the report shows FastQC results before adapter trimming for individual libraries.'
2626
path_filters:
27-
- '*_fastqc.zip'
28-
path_filters_exclude:
29-
- '*val*_fastqc.zip'
30-
- '*trimmed_fastqc.zip'
27+
- './fastqc/*.zip'
3128
- cutadapt:
32-
name: 'cutadapt (library; trimmed)'
33-
info: 'This section of the report shows the length of trimmed reads by cutadapt.'
34-
path_filters:
35-
- '*_trimming_report.txt'
29+
name: 'LIB: cutadapt (trimmed)'
30+
info: 'This section of the report shows the length of trimmed reads by cutadapt for individual libraries.'
3631
- fastqc:
37-
name: 'FastQC (library; trimmed)'
38-
info: 'This section of the report shows FastQC results after adapter trimming.'
32+
name: 'LIB: FastQC (trimmed)'
33+
info: 'This section of the report shows FastQC results after adapter trimming for individual libraries.'
3934
path_filters:
40-
- '*val*_fastqc.zip'
41-
- '*trimmed_fastqc.zip'
35+
- './trimgalore/fastqc/*.zip'
4236
- samtools:
43-
name: 'SAMTools (library)'
37+
name: 'LIB: SAMTools'
4438
info: 'This section of the report shows SAMTools results for individual libraries.'
4539
path_filters:
46-
- '*.Lb.sorted.bam*'
40+
- './alignment/library/*'
4741
- samtools:
48-
name: 'SAMTools (merged library; unfiltered)'
42+
name: 'MERGED LIB: SAMTools (unfiltered)'
4943
info: 'This section of the report shows SAMTools results after merging libraries and before filtering.'
5044
path_filters:
51-
- '*mLb.mkD.sorted.bam*'
45+
- './alignment/mergedLibrary/*.mLb.mkD.sorted.bam*'
5246
- preseq:
53-
name: 'Preseq (merged library; unfiltered)'
47+
name: 'MERGED LIB: Preseq (unfiltered)'
5448
info: 'This section of the report shows Preseq results after merging libraries and before filtering.'
55-
path_filters:
56-
- '*ccurve.txt'
5749
- samtools:
58-
name: 'SAMTools (merged library; filtered)'
50+
name: 'MERGED LIB: SAMTools (filtered)'
5951
info: 'This section of the report shows SAMTools results after merging libraries and after filtering.'
6052
path_filters:
61-
- '*mLb.clN.sorted.bam*'
53+
- './alignment/mergedLibrary/*.mLb.clN.sorted.bam*'
6254
- picard:
63-
name: 'Picard (merged library; filtered)'
55+
name: 'MERGED LIB: Picard'
6456
info: 'This section of the report shows picard results after merging libraries and after filtering.'
6557
path_filters:
66-
- '*mLb*'
58+
- './alignment/mergedLibrary/picard_metrics/*'
6759
- deeptools:
68-
name: 'deepTools'
60+
name: 'MERGED LIB: deepTools'
61+
anchor: 'mlib_deeptools'
6962
info: 'This section of the report shows ChIP-seq QC plots generated by deepTools.'
70-
path_filters:
71-
- '*.plot*'
7263
- featureCounts:
73-
name: 'featureCounts'
64+
name: 'MERGED LIB: featureCounts'
65+
anchor: 'mlib_featurecounts'
7466
info: 'This section of the report shows featureCounts results for the number of reads assigned to merged library consensus peaks.'
7567
path_filters:
76-
- '*featureCounts*'
68+
- './macs/consensus/*.summary'
7769

7870
report_section_order:
7971
peak_count:
80-
order: -1000
72+
before: mlib_deeptools
8173
frip_score:
82-
order: -1100
74+
before: peak_count
75+
peak_annotation:
76+
before: frip_score
8377
strand_shift_correlation:
84-
order: -1200
78+
before: peak_annotation
8579
nsc_coefficient:
86-
order: -1300
80+
before: strand_shift_correlation
8781
rsc_coefficient:
88-
order: -1400
89-
peak_annotation:
90-
order: -1500
82+
before: nsc_coefficient
83+
mlib_featurecounts:
84+
before: rsc_coefficient
9185
deseq2_pca_1:
9286
order: -1600
9387
deseq2_pca_2:
@@ -153,3 +147,18 @@ extra_fn_clean_exts:
153147
- '_spp'
154148
- '.spp'
155149
- 'ccurve'
150+
151+
# # Customise the module search patterns to speed up execution time
152+
# # - Skip module sub-tools that we are not interested in
153+
# # - Replace file-content searching with filename pattern searching
154+
# # - Don't add anything that is the same as the MultiQC default
155+
# # See https://multiqc.info/docs/#optimise-file-search-patterns for details
156+
sp:
157+
cutadapt:
158+
fn: '*trimming_report.txt'
159+
preseq:
160+
fn: '*.ccurve.txt'
161+
deeptools/plotFingerprintOutRawCounts:
162+
fn: '*plotFingerprint*'
163+
deeptools/plotProfile:
164+
fn: '*plotProfile*'

0 commit comments

Comments
 (0)