Skip to content

Commit

Permalink
Reformatting the multiqc reports
Browse files Browse the repository at this point in the history
  • Loading branch information
atrull314 committed Oct 4, 2023
1 parent c911f71 commit 3e4a923
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
4 changes: 2 additions & 2 deletions assets/multiqc_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ top_modules:
info: "This section of the report shows FastQC results of the trimmed
data"
path_filters:
- "*filtered*fastqc*"
- "*trimmed*fastqc*"
- fastqc:
name: "FastQC (post extract)"
anchor: "fastqc_postextract"
info: "This section of the report shows FastQC results of the trimmed
and umi extracted data"
path_filters:
- "*umi_extract*fastqc*"
- "*extracted*fastqc*"

section_comments:
fastqc_posttrim: "Please note that if 'prowler' is selected as the trimming
Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ manifest {
description = """Single-cell/nuclei pipeline for data derived from Oxford Nanopore"""
mainScript = 'main.nf'
nextflowVersion = '!>=23.04.0'
version = '1.0.0dev'
version = '0.1.0dev'
doi = ''
}

Expand Down
24 changes: 22 additions & 2 deletions workflows/scnanoseq.nf
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,15 @@ workflow SCNANOSEQ {
// MODULE: NanoComp for FastQ files
//

ch_nanocomp_fastq_html = Channel.empty()
ch_nanocomp_fastq_txt = Channel.empty()
if (!params.skip_qc && !params.skip_fastq_nanocomp) {
ch_nanocomp_fastqs = ch_cat_fastq.collect{it[1]}

NANOCOMP_FASTQ ( ch_nanocomp_fastqs )
ch_nanocomp_fastq_html = NANOCOMP_FASTQ.out.html
ch_nanocomp_fastq_txt = NANOCOMP_FASTQ.out.txt

ch_versions = ch_versions.mix( NANOCOMP_FASTQ.out.versions )

}
Expand Down Expand Up @@ -437,11 +442,16 @@ workflow SCNANOSEQ {
//
// MODULE: NanoComp for BAM files (unfiltered for QC purposes)
//
ch_nanocomp_bam_html = Channel.empty()
ch_nanocomp_bam_txt = Channel.empty()

if (!params.skip_qc && !params.skip_bam_nanocomp) {
ch_nanocomp_bams = ch_minimap_sorted_bam.collect{it[1]}

NANOCOMP_BAM ( ch_nanocomp_bams )

ch_nanocomp_bam_html = NANOCOMP_BAM.out.html
ch_nanocomp_bam_txt = NANOCOMP_BAM.out.txt
ch_versions = ch_versions.mix( NANOCOMP_BAM.out.versions )
}

Expand Down Expand Up @@ -492,13 +502,16 @@ workflow SCNANOSEQ {
ch_dedup_sorted_bam = ch_corrected_sorted_bam
ch_dedup_sorted_bam_bai = ch_corrected_sorted_bai
ch_dedup_sorted_flagstat = ch_corrected_sorted_flagstat
ch_dedup_log = Channel.empty()

if (!params.skip_dedup) {
//
// MODULE: Umitools Dedup
//
UMITOOLS_DEDUP ( ch_corrected_sorted_bam.join(ch_corrected_sorted_bai, by: [0]), true )

ch_dedup_bam = UMITOOLS_DEDUP.out.bam
ch_dedup_log = UMITOOLS_DEDUP.out.log
ch_versions = ch_versions.mix(UMITOOLS_DEDUP.out.versions)

// SUBWORKFLOW: BAM_SORT_STATS_SAMTOOLS
Expand Down Expand Up @@ -568,6 +581,8 @@ workflow SCNANOSEQ {
ch_multiqc_rawqc_files = ch_multiqc_rawqc_files.mix(ch_multiqc_custom_config.collect().ifEmpty([]))
ch_multiqc_rawqc_files = ch_multiqc_rawqc_files.mix(CUSTOM_DUMPSOFTWAREVERSIONS.out.mqc_yml.collect())
ch_multiqc_rawqc_files = ch_multiqc_rawqc_files.mix(ch_fastqc_multiqc_pretrim.collect().ifEmpty([]))
ch_multiqc_rawqc_files = ch_multiqc_rawqc_files.mix(ch_nanocomp_fastq_html.collect().ifEmpty([]))
ch_multiqc_rawqc_files = ch_multiqc_rawqc_files.mix(ch_nanocomp_fastq_txt.collect().ifEmpty([]))

MULTIQC_RAWQC (
ch_multiqc_rawqc_files.collect(),
Expand All @@ -590,18 +605,23 @@ workflow SCNANOSEQ {

ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_fastqc_multiqc_postrim.collect().ifEmpty([]))
ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_fastqc_multiqc_postextract.collect().ifEmpty([]))

ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_nanocomp_bam_html.collect().ifEmpty([]))
ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_nanocomp_bam_txt.collect().ifEmpty([]))

ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_minimap_sorted_stats.collect{it[1]}.ifEmpty([]))
ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_minimap_sorted_flagstat.collect{it[1]}.ifEmpty([]))
ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_minimap_sorted_idxstats.collect{it[1]}.ifEmpty([]))

ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_corrected_sorted_stats.collect{it[1]}.ifEmpty([]))
//ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_corrected_sorted_stats.collect{it[1]}.ifEmpty([]))
ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_corrected_sorted_flagstat.collect{it[1]}.ifEmpty([]))
ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_corrected_sorted_idxstats.collect{it[1]}.ifEmpty([]))

ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_dedup_sorted_stats.collect{it[1]}.ifEmpty([]))
//ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_dedup_sorted_stats.collect{it[1]}.ifEmpty([]))
ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_dedup_sorted_flagstat.collect{it[1]}.ifEmpty([]))
ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_dedup_sorted_idxstats.collect{it[1]}.ifEmpty([]))

ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_dedup_log.collect{it[1]}.ifEmpty([]))

ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_gene_stats_combined.collect().ifEmpty([]))
ch_multiqc_finalqc_files = ch_multiqc_finalqc_files.mix(ch_transcript_stats_combined.collect().ifEmpty([]))
Expand Down

0 comments on commit 3e4a923

Please sign in to comment.