Skip to content

Commit 6e5f0d8

Browse files
committed
Revert let to def
Signed-off-by: Ben Sherman <[email protected]>
1 parent acd9b8a commit 6e5f0d8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

main.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ workflow {
5050
outdir : ${workflow.outputDir}
5151
""".stripIndent()
5252

53-
let (index, samples) = params.reads
53+
def (index, samples) = params.reads
5454
|> Channel.fromFilePairs( checkIfExists: true ) // Channel<(String,List<Path>)>
5555
|> map { (id, reads) ->
5656
new FastqPair(id, reads[0], reads[1])
5757
} // Channel<FastqPair>
5858
|> RNASEQ( file(params.transcriptome) ) // NamedTuple(index: Path, samples: Channel<Sample>)
5959

60-
let summary = samples
60+
def summary = samples
6161
|> flatMap { s -> [ s.fastqc, s.quant ] } // Channel<Path>
6262
|> collect // Bag<Path> (future)
6363
|> MULTIQC( file(params.multiqc) ) // Path (future)

modules/rnaseq.nf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ workflow RNASEQ {
1414

1515
pairs // Channel<FastqPair>
1616
|> map { pair ->
17-
let (id, fastq_1, fastq_2) = (pair.id, pair.fastq_1, pair.fastq_2)
18-
let fastqc = FASTQC(id, fastq_1, fastq_2)
19-
let quant = QUANT(index, id, fastq_1, fastq_2)
17+
def (id, fastq_1, fastq_2) = (pair.id, pair.fastq_1, pair.fastq_2)
18+
def fastqc = FASTQC(id, fastq_1, fastq_2)
19+
def quant = QUANT(index, id, fastq_1, fastq_2)
2020
new Sample(id, fastqc, quant)
2121
} // Channel<Sample>
2222
|> set { samples } // Channel<Sample>

0 commit comments

Comments
 (0)