mirror of
https://github.com/MillironX/taxprofiler.git
synced 2024-11-10 23:33:09 +00:00
Logical ordering and improved commenting
This commit is contained in:
parent
68d131af34
commit
74bc6b7dd3
1 changed files with 6 additions and 4 deletions
|
@ -23,16 +23,16 @@ workflow INPUT_CHECK {
|
||||||
.map {
|
.map {
|
||||||
sample, rows ->
|
sample, rows ->
|
||||||
def is_multirun = rows.size() > 1
|
def is_multirun = rows.size() > 1
|
||||||
[ is_multirun, rows ]
|
[ rows, is_multirun ]
|
||||||
}
|
}
|
||||||
.transpose(by: 1)
|
.transpose(by: 0)
|
||||||
.map {
|
.map {
|
||||||
is_multirun, row ->
|
row, is_multirun ->
|
||||||
row['is_multirun'] = is_multirun
|
row['is_multirun'] = is_multirun
|
||||||
return row
|
return row
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Split for context-dependent channel generation
|
||||||
ch_parsed_samplesheet = ch_split_samplesheet
|
ch_parsed_samplesheet = ch_split_samplesheet
|
||||||
.branch { row ->
|
.branch { row ->
|
||||||
fasta: row.fasta != ''
|
fasta: row.fasta != ''
|
||||||
|
@ -40,8 +40,10 @@ workflow INPUT_CHECK {
|
||||||
fastq: true
|
fastq: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Channel generation
|
||||||
ch_fastq = ch_parsed_samplesheet.fastq
|
ch_fastq = ch_parsed_samplesheet.fastq
|
||||||
.map { create_fastq_channel(it) }
|
.map { create_fastq_channel(it) }
|
||||||
|
.dump(tag: "boop")
|
||||||
|
|
||||||
ch_nanopore = ch_parsed_samplesheet.nanopore
|
ch_nanopore = ch_parsed_samplesheet.nanopore
|
||||||
.map { create_fastq_channel(it) }
|
.map { create_fastq_channel(it) }
|
||||||
|
|
Loading…
Reference in a new issue