Skip to content

Commit 1ce81c3

Browse files
committed
pass assay suffix into modules with params
1 parent bb856b5 commit 1ce81c3

File tree

7 files changed

+14
-16
lines changed

7 files changed

+14
-16
lines changed

RNAseq/Workflow_Documentation/NF_RCP/workflow_code/modules/extend_dge_table.nf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ process EXTEND_DGE_TABLE {
1313
path("versions.txt"), emit: versions_txt
1414

1515
script:
16-
def output_filename_suffix = params.assay_suffix ?: ""
1716
def extend_rmd_file = "${projectDir}/bin/extend_dge_table.Rmd"
1817

1918
"""
@@ -23,7 +22,7 @@ process EXTEND_DGE_TABLE {
2322
params = list(
2423
work_dir = '\${PWD}',
2524
output_directory = '\${PWD}',
26-
output_filename_suffix = '${output_filename_suffix}',
25+
output_filename_suffix = '${params.assay_suffix}',
2726
input_table_path = '${dge_table}'
2827
))"
2928
"""

RNAseq/Workflow_Documentation/NF_RCP/workflow_code/modules/generate_pca_table.nf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ process GENERATE_PCA_TABLE {
1313
path("versions.txt"), emit: versions_txt
1414

1515
script:
16-
def output_filename_suffix = params.assay_suffix ?: ""
1716
def pca_rmd_file = "${projectDir}/bin/generate_pca_table.Rmd"
1817

1918
"""
@@ -23,7 +22,7 @@ process GENERATE_PCA_TABLE {
2322
params = list(
2423
work_dir = '\${PWD}',
2524
output_directory = '\${PWD}',
26-
output_filename_suffix = '${output_filename_suffix}',
25+
output_filename_suffix = '${params.assay_suffix}',
2726
input_table_path = '${normalized_counts}'
2827
))"
2928
"""

RNAseq/Workflow_Documentation/NF_RCP/workflow_code/modules/multiqc.nf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ process MULTIQC {
1010

1111
output:
1212
// path("${ mqc_label }_multiqc_GLbulkRNAseq_report.zip"), emit: zipped_report, to do: reimplement zip output w/ cleaned paths
13-
path("${ mqc_label }_multiqc_${ params.assay_suffix }_report"), emit: unzipped_report
14-
path("${ mqc_label }_multiqc_${ params.assay_suffix }_report.zip"), emit: zipped_report
15-
path("${ mqc_label }_multiqc_${ params.assay_suffix }_report/${ mqc_label }_multiqc_${ params.assay_suffix }.html"), emit: html
16-
path("${ mqc_label }_multiqc_${ params.assay_suffix }_report/${ mqc_label }_multiqc_${ params.assay_suffix }_data"), emit: data
13+
path("${ mqc_label }_multiqc${ params.assay_suffix }_report"), emit: unzipped_report
14+
path("${ mqc_label }_multiqc${ params.assay_suffix }_report.zip"), emit: zipped_report
15+
path("${ mqc_label }_multiqc${ params.assay_suffix }_report/${ mqc_label }_multiqc${ params.assay_suffix }.html"), emit: html
16+
path("${ mqc_label }_multiqc${ params.assay_suffix }_report/${ mqc_label }_multiqc${ params.assay_suffix }_data"), emit: data
1717
path("versions.yml"), emit: versions
1818

1919
script:
@@ -22,11 +22,11 @@ process MULTIQC {
2222
multiqc \\
2323
--force \\
2424
--interactive \\
25-
-o ${ mqc_label }_multiqc_${ params.assay_suffix }_report \\
26-
-n ${ mqc_label }_multiqc_${ params.assay_suffix } \\
25+
-o ${ mqc_label }_multiqc${ params.assay_suffix }_report \\
26+
-n ${ mqc_label }_multiqc${ params.assay_suffix } \\
2727
${ config_arg } \\
2828
.
29-
zip -r '${ mqc_label }_multiqc_${ params.assay_suffix }_report.zip' '${ mqc_label }_multiqc_${ params.assay_suffix }_report'
29+
zip -r '${ mqc_label }_multiqc${ params.assay_suffix }_report.zip' '${ mqc_label }_multiqc${ params.assay_suffix }_report'
3030
3131
echo '"${task.process}":' > versions.yml
3232
echo " multiqc: \$(multiqc --version | sed "s/multiqc, version //")" >> versions.yml

RNAseq/Workflow_Documentation/NF_RCP/workflow_code/modules/parse_qc_metrics.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ process PARSE_QC_METRICS {
1111
path(rsem_counts)
1212

1313
output:
14-
path("qc_metrics_GLbulkRNAseq.csv"), emit: file
14+
path("qc_metrics${params.assay_suffix}.csv"), emit: file
1515

1616
script:
1717
"""

RNAseq/Workflow_Documentation/NF_RCP/workflow_code/modules/quantify_rsem_genes.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ process QUANTIFY_RSEM_GENES {
77
path("03-RSEM_Counts/*")
88

99
output:
10-
tuple path("RSEM_Unnormalized_Counts_GLbulkRNAseq.csv"), path("RSEM_NumNonZeroGenes_GLbulkRNAseq.csv"), emit: publishables
10+
tuple path("RSEM_Unnormalized_Counts${params.assay_suffix}.csv"), path("RSEM_NumNonZeroGenes${params.assay_suffix}.csv"), emit: publishables
1111

1212
script:
1313
"""

RNAseq/Workflow_Documentation/NF_RCP/workflow_code/modules/quantify_star_genes.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ process QUANTIFY_STAR_GENES {
77
val(strandedness)
88

99
output:
10-
tuple path("STAR_Unnormalized_Counts_GLbulkRNAseq.csv"), path("STAR_NumNonZeroGenes_GLbulkRNAseq.csv"), emit: publishables
10+
tuple path("STAR_Unnormalized_Counts${params.assay_suffix}.csv"), path("STAR_NumNonZeroGenes${params.assay_suffix}.csv"), emit: publishables
1111

1212
script:
1313
"""

RNAseq/Workflow_Documentation/NF_RCP/workflow_code/modules/remove_rrna_featurecounts.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ process REMOVE_RRNA_FEATURECOUNTS {
1818
path rrna_ids_file
1919

2020
output:
21-
path("rRNA_removed_FeatureCounts_GLbulkRNAseq.tsv"), emit: counts_rrnarm
21+
path("rRNA_removed_FeatureCounts${params.assay_suffix}.tsv"), emit: counts_rrnarm
2222
path("rRNA_counts.txt"), emit: rrnarm_summary
2323

2424
script:
2525
"""
2626
python $projectDir/bin/remove_rrna_featurecounts.py \
2727
${counts_file} \
2828
${rrna_ids_file} \
29-
rRNA_removed_FeatureCounts_GLbulkRNAseq.tsv \
29+
rRNA_removed_FeatureCounts${params.assay_suffix}.tsv \
3030
rRNA_counts.txt
3131
"""
3232
}

0 commit comments

Comments
 (0)