Skip to content

Commit afb2a61

Browse files
committed
back to the past
1 parent e9ae94c commit afb2a61

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

workflows/seqinspector.nf

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,16 @@ workflow SEQINSPECTOR {
3636
// MODULE: Run Seqkit sample to perform subsampling
3737
//
3838
if (params.sample_size > 0 ) {
39-
ch_sample_sized = ch_samplesheet.join(
40-
SEQTK_SAMPLE(
41-
ch_samplesheet.map {
42-
meta, reads -> [meta, reads, params.sample_size]
43-
}
44-
).reads, by: [0]
45-
)
39+
ch_sample_sized = SEQTK_SAMPLE(
40+
ch_samplesheet.map {
41+
meta, reads -> [meta, reads, params.sample_size]
42+
}
43+
).reads
4644
ch_versions = ch_versions.mix(SEQTK_SAMPLE.out.versions.first())
4745
} else {
4846
// No do subsample
4947
ch_sample_sized = ch_samplesheet.map {
50-
meta, reads -> [meta, reads, []]
48+
meta, reads -> [meta, reads]
5149
}
5250
}
5351

@@ -56,7 +54,7 @@ workflow SEQINSPECTOR {
5654
//
5755
FASTQC (
5856
ch_sample_sized.map {
59-
meta, reads, subsampled -> [meta, reads]
57+
meta, subsampled -> [meta, subsampled]
6058
}
6159
)
6260
ch_multiqc_files = ch_multiqc_files.mix(FASTQC.out.zip)

0 commit comments

Comments
 (0)