Skip to content

Commit

Permalink
Fixed input false param
Browse files Browse the repository at this point in the history
  • Loading branch information
svarona committed Apr 19, 2024
1 parent ab02bbc commit fb7ad0d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions workflows/nanopore.nf
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,10 @@ workflow NANOPORE {
//
// SUBWORKFLOW: Read in samplesheet containing sample to barcode mappings
//
if (ch_samplesheet.queue.size() == 0) {
ch_fastq_dirs
.map { barcode, dir, count -> [ barcode, barcode, dir, count ] }
.set { ch_fastq_dirs }
} else {
if (!params.input){
ch_samplesheet = null
}
if (ch_samplesheet) {
ch_samplesheet
.join(ch_fastq_dirs, remainder: true)
.set { ch_fastq_dirs }
Expand Down Expand Up @@ -233,6 +232,11 @@ workflow NANOPORE {
.filter { (it[1] != null) }
.filter { (it[-1] != null) }
.set { ch_fastq_dirs }

} else {
ch_fastq_dirs
.map { barcode, dir, count -> [ barcode, barcode, dir, count ] }
.set { ch_fastq_dirs }
}
} else if (single_barcode_dir) {
Channel
Expand Down

0 comments on commit fb7ad0d

Please sign in to comment.