Skip to content
This repository was archived by the owner on May 22, 2023. It is now read-only.

Commit 7d741d1

Browse files
committed
Cleanup for #143. Made featurecounts biotype work.
1 parent eba4118 commit 7d741d1

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Many thanks to everyone who gave us feedback about the pipeline!
1111
* **UPPMAX users now need to specify `--reverse_stranded` for the same behaviour**
1212
* Switched UPPMAX configuration to use Singularity instead of environment modules
1313
* Switched c3se Hebbe configuration to use Singularity & refactored config
14+
* Made output from DupRadar, Biotype Counts and edgeR sample similarity use [MultiQC Custom Content](http://multiqc.info/docs/#custom-content) formatting
15+
* These results now show up in MultiQC reports for everyone, not just people with our [custom MultiQC plugin](https://github.com/ewels/MultiQC_NGI)
1416
* Added a Troubleshooting section to the docs
1517
* Fixed bug where BED12 generation failed when only GTF supplied.
1618

assets/biotypes_header.txt

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#id: 'biotype-counts'
2-
#section_name: 'Biotypes'
3-
#section_href: 'http://bioinf.wehi.edu.au/featureCounts'
4-
#description: "shows reads overlapping genomic features of different biotypes."
2+
#section_name: 'Biotype Counts'
3+
#description: "shows reads overlapping genomic features of different biotypes,
4+
# counted by <a href='http://bioinf.wehi.edu.au/featureCounts'>featureCounts</a>."
55
#plot_type: 'bargraph'
6+
#anchor: 'featurecounts_biotype'
67
#pconfig:
7-
# title: featureCounts: 'Biotypes'
8-
# xLog: True
9-
# xlab: "expression (reads/kbp)"
10-
# max: 100
11-
# min: 0
8+
# id: "featureCounts_biotype_plot"
9+
# title: "featureCounts: Biotypes"
10+
# xlab: "# Reads"
11+
# cpswitch_counts_label: "Number of Reads"

conf/multiqc_config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
extra_fn_clean_exts:
22
- _R1
33
- _R2
4+
- .hisat
45
report_comment: >
56
This report has been generated by the <a href="https://github.com/SciLifeLab/NGI-RNAseq" target="_blank">NGI-RNAseq</a>
67
analysis pipeline. For information about how to interpret these results, please see the

main.nf

+5-5
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ process featureCounts {
893893
tag "${bam_featurecounts.baseName - '.sorted'}"
894894
publishDir "${params.outdir}/featureCounts", mode: 'copy',
895895
saveAs: {filename ->
896-
if (filename.indexOf("_biotype_counts.txt") > 0) "biotype_counts/$filename"
896+
if (filename.indexOf("_biotype_counts_mqc.txt") > 0) "biotype_counts/$filename"
897897
else if (filename.indexOf("_gene.featureCounts.txt.summary") > 0) "gene_count_summaries/$filename"
898898
else if (filename.indexOf("_gene.featureCounts.txt") > 0) "gene_counts/$filename"
899899
else "$filename"
@@ -907,7 +907,7 @@ process featureCounts {
907907
output:
908908
file "${bam_featurecounts.baseName}_gene.featureCounts.txt" into geneCounts, featureCounts_to_merge
909909
file "${bam_featurecounts.baseName}_gene.featureCounts.txt.summary" into featureCounts_logs
910-
file "${bam_featurecounts.baseName}_biotype_counts.txt" into featureCounts_biotype
910+
file "${bam_featurecounts.baseName}_biotype_counts_mqc.txt" into featureCounts_biotype
911911
file '.command.log' into featurecounts_stdout
912912

913913
script:
@@ -920,8 +920,8 @@ process featureCounts {
920920
"""
921921
featureCounts -a $gtf -g gene_id -o ${bam_featurecounts.baseName}_gene.featureCounts.txt -p -s $featureCounts_direction $bam_featurecounts
922922
featureCounts -a $gtf -g gene_biotype -o ${bam_featurecounts.baseName}_biotype.featureCounts.txt -p -s $featureCounts_direction $bam_featurecounts
923-
cut -f 1,7 ${bam_featurecounts.baseName}_biotype.featureCounts.txt | tail -n 7 > tmp_file
924-
cat $biotypes_header tmp_file >> ${bam_featurecounts.baseName}_biotype_counts.txt
923+
cut -f 1,7 ${bam_featurecounts.baseName}_biotype.featureCounts.txt | tail -n 7 > tmp_file
924+
cat $biotypes_header tmp_file >> ${bam_featurecounts.baseName}_biotype_counts_mqc.txt
925925
"""
926926
}
927927

@@ -1015,7 +1015,7 @@ process sample_correlation {
10151015
"""
10161016
edgeR_heatmap_MDS.r "rlocation=$rlocation" $input_files
10171017
cat $mdsplot_header edgeR_MDS_Aplot_coordinates_mqc.csv >> tmp_file
1018-
mv tmp_file edgeR_MDS_Aplot_coordinates_mqc.csv
1018+
mv tmp_file edgeR_MDS_Aplot_coordinates_mqc.csv
10191019
cat $heatmap_header log2CPM_sample_distances_mqc.csv >> tmp_file
10201020
mv tmp_file log2CPM_sample_distances_mqc.csv
10211021
"""

0 commit comments

Comments
 (0)