Skip to content

Commit

Permalink
Collect Metrics suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-panchal committed Nov 28, 2024
1 parent bb7a20d commit a94f865
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions bactpipe.nf
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,19 @@ workflow {
SHOVILL(FASTP.out.fastq)
ASSEMBLY_STATS(SHOVILL.out.contigs)

ch_assembly_metrics = ASSEMBLY_STATS.out.splitCsv(skip: 1)
.map { row -> row.join('\t') }
ch_mqc_metrics = Channel.value("TODO: header goes here")
.concat(ch_metrics)
.collectFile( newLine: true, sort: false )

prokka_ch = (SHOVILL.out.contigs).join(CLASSIFY_TAXONOMY.out.classification)

PROKKA(prokka_ch)

MULTIQC(
FASTP.out.fastp_reports.collect(),
ch_mqc_metrics ),
PROKKA.out.collect()
)
}
Expand Down
4 changes: 2 additions & 2 deletions modules/assembly_stats/assembly_stats.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ process ASSEMBLY_STATS {
publishDir "${params.output_dir}/shovill", mode: 'copy'

input:
tuple val(pair_id), file("${pair_id}.contigs.fa")
tuple val(pair_id), path("${pair_id}.contigs.fa")

output:
file("${pair_id}.assembly_stats.txt")
path("${pair_id}.assembly_stats.txt")

script:
"""
Expand Down
1 change: 1 addition & 0 deletions modules/multiqc/multiqc.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ process MULTIQC {

input:
path('*.json')
path('assembly_metrics_mqc.tsv')
path('*_prokka')

output:
Expand Down

0 comments on commit a94f865

Please sign in to comment.