Skip to content

Commit 13f5eb3

Browse files
committed
Fix syntax errors
1 parent a007d56 commit 13f5eb3

File tree

7 files changed

+31
-36
lines changed
  • modules
  • subworkflows
    • local/utils_nfcore_rnaseq_pipeline
    • nf-core
      • fastq_fastqc_umitools_fastp
      • fastq_fastqc_umitools_trimgalore
      • fastq_qc_trim_filter_setstrandedness
  • workflows/rnaseq

7 files changed

+31
-36
lines changed

modules/local/star_align_igenomes/main.nf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ process STAR_ALIGN_IGENOMES {
3636
script:
3737
def args = task.ext.args ?: ''
3838
def prefix = task.ext.prefix ?: "${meta.id}"
39-
def reads1 = [], reads2 = []
39+
def reads1 = []
40+
def reads2 = []
4041
meta.single_end ? [reads].flatten().each{reads1 << it} : reads.eachWithIndex{ v, ix -> ( ix & 1 ? reads2 : reads1) << v }
4142
def ignore_gtf = star_ignore_sjdbgtf ? '' : "--sjdbGTFfile $gtf"
4243
def seq_platform = seq_platform ? "'PL:$seq_platform'" : ""

modules/nf-core/salmon/quant/main.nf

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

subworkflows/local/utils_nfcore_rnaseq_pipeline/main.nf

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// Subworkflow with functionality specific to the nf-core/rnaseq pipeline
33
//
44

5-
import groovy.json.JsonSlurper
6-
75
/*
86
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
97
IMPORT FUNCTIONS / MODULES / SUBWORKFLOWS
@@ -80,10 +78,6 @@ workflow PIPELINE_INITIALISATION {
8078
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8179
*/
8280

83-
def pass_mapped_reads = [:]
84-
def pass_trimmed_reads = [:]
85-
def pass_strand_check = [:]
86-
8781
workflow PIPELINE_COMPLETION {
8882

8983
take:
@@ -99,6 +93,10 @@ workflow PIPELINE_COMPLETION {
9993
strand_status // map: pass/fail status per sample for strandedness check
10094

10195
main:
96+
def pass_mapped_reads = [:]
97+
def pass_trimmed_reads = [:]
98+
def pass_strand_check = [:]
99+
102100
summary_params = paramsSummaryMap(workflow, parameters_schema: "nextflow_schema.json")
103101
def multiqc_reports = multiqc_report.toList()
104102

@@ -135,7 +133,7 @@ workflow PIPELINE_COMPLETION {
135133
)
136134
}
137135

138-
rnaseqSummary(monochrome_logs=monochrome_logs, pass_mapped_reads=pass_mapped_reads, pass_trimmed_reads=pass_trimmed_reads, pass_strand_check=pass_strand_check)
136+
rnaseqSummary(monochrome_logs, pass_mapped_reads, pass_trimmed_reads, pass_strand_check)
139137

140138
if (hook_url) {
141139
imNotification(summary_params, hook_url)
@@ -301,15 +299,15 @@ def validateInputParameters() {
301299

302300
// Check rRNA databases for sortmerna
303301
if (params.remove_ribo_rna) {
304-
ch_ribo_db = file(params.ribo_database_manifest)
302+
def ch_ribo_db = file(params.ribo_database_manifest)
305303
if (ch_ribo_db.isEmpty()) {
306304
error("File provided with --ribo_database_manifest is empty: ${ch_ribo_db.getName()}!")
307305
}
308306
}
309307

310308
// Check if file with list of fastas is provided when running BBSplit
311309
if (!params.skip_bbsplit && !params.bbsplit_index && params.bbsplit_fasta_list) {
312-
ch_bbsplit_fasta_list = file(params.bbsplit_fasta_list)
310+
def ch_bbsplit_fasta_list = file(params.bbsplit_fasta_list)
313311
if (ch_bbsplit_fasta_list.isEmpty()) {
314312
error("File provided with --bbsplit_fasta_list is empty: ${ch_bbsplit_fasta_list.getName()}!")
315313
}

subworkflows/nf-core/fastq_fastqc_umitools_fastp/main.nf

Lines changed: 4 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

subworkflows/nf-core/fastq_fastqc_umitools_trimgalore/main.nf

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

subworkflows/nf-core/fastq_qc_trim_filter_setstrandedness/main.nf

Lines changed: 5 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

workflows/rnaseq/main.nf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ include { FASTQ_QC_TRIM_FILTER_SETSTRANDEDNESS } from '../../subwor
6969
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7070
*/
7171

72-
// Header files for MultiQC
73-
ch_pca_header_multiqc = file("$projectDir/workflows/rnaseq/assets/multiqc/deseq2_pca_header.txt", checkIfExists: true)
74-
sample_status_header_multiqc = file("$projectDir/workflows/rnaseq/assets/multiqc/sample_status_header.txt", checkIfExists: true)
75-
ch_clustering_header_multiqc = file("$projectDir/workflows/rnaseq/assets/multiqc/deseq2_clustering_header.txt", checkIfExists: true)
76-
ch_biotypes_header_multiqc = file("$projectDir/workflows/rnaseq/assets/multiqc/biotypes_header.txt", checkIfExists: true)
77-
ch_dummy_file = ch_pca_header_multiqc
78-
7972
workflow RNASEQ {
8073

8174
take:
@@ -100,6 +93,13 @@ workflow RNASEQ {
10093

10194
main:
10295

96+
// Header files for MultiQC
97+
ch_pca_header_multiqc = file("$projectDir/workflows/rnaseq/assets/multiqc/deseq2_pca_header.txt", checkIfExists: true)
98+
sample_status_header_multiqc = file("$projectDir/workflows/rnaseq/assets/multiqc/sample_status_header.txt", checkIfExists: true)
99+
ch_clustering_header_multiqc = file("$projectDir/workflows/rnaseq/assets/multiqc/deseq2_clustering_header.txt", checkIfExists: true)
100+
ch_biotypes_header_multiqc = file("$projectDir/workflows/rnaseq/assets/multiqc/biotypes_header.txt", checkIfExists: true)
101+
ch_dummy_file = ch_pca_header_multiqc
102+
103103
ch_multiqc_files = Channel.empty()
104104
ch_trim_status = Channel.empty()
105105
ch_map_status = Channel.empty()
@@ -545,7 +545,7 @@ workflow RNASEQ {
545545
// Get RSeqC modules to run
546546
def rseqc_modules = params.rseqc_modules ? params.rseqc_modules.split(',').collect{ it.trim().toLowerCase() } : []
547547
if (params.bam_csi_index) {
548-
for (rseqc_module in ['read_distribution', 'inner_distance', 'tin']) {
548+
['read_distribution', 'inner_distance', 'tin'].each { rseqc_module ->
549549
if (rseqc_modules.contains(rseqc_module)) {
550550
rseqc_modules.remove(rseqc_module)
551551
}
@@ -572,12 +572,12 @@ workflow RNASEQ {
572572
.map {
573573
meta, strand_log ->
574574
def rseqc_inferred_strand = getInferexperimentStrandedness(strand_log, params.stranded_threshold, params.unstranded_threshold)
575-
rseqc_strandedness = rseqc_inferred_strand.inferred_strandedness
575+
def rseqc_strandedness = rseqc_inferred_strand.inferred_strandedness
576576

577577
def status = 'fail'
578578
def multiqc_lines = []
579579
if (meta.salmon_strand_analysis) {
580-
salmon_strandedness = meta.salmon_strand_analysis.inferred_strandedness
580+
def salmon_strandedness = meta.salmon_strand_analysis.inferred_strandedness
581581

582582
if (salmon_strandedness == rseqc_strandedness && rseqc_strandedness != 'undetermined') {
583583
status = 'pass'

0 commit comments

Comments
 (0)