Skip to content

Commit

Permalink
back to the past
Browse files Browse the repository at this point in the history
  • Loading branch information
nggvs committed Oct 29, 2024
1 parent e9ae94c commit afb2a61
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions workflows/seqinspector.nf
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,16 @@ workflow SEQINSPECTOR {
// MODULE: Run Seqkit sample to perform subsampling
//
if (params.sample_size > 0 ) {
ch_sample_sized = ch_samplesheet.join(
SEQTK_SAMPLE(
ch_samplesheet.map {
meta, reads -> [meta, reads, params.sample_size]
}
).reads, by: [0]
)
ch_sample_sized = SEQTK_SAMPLE(
ch_samplesheet.map {
meta, reads -> [meta, reads, params.sample_size]
}
).reads
ch_versions = ch_versions.mix(SEQTK_SAMPLE.out.versions.first())
} else {
// No do subsample
ch_sample_sized = ch_samplesheet.map {
meta, reads -> [meta, reads, []]
meta, reads -> [meta, reads]
}
}

Expand All @@ -56,7 +54,7 @@ workflow SEQINSPECTOR {
//
FASTQC (
ch_sample_sized.map {
meta, reads, subsampled -> [meta, reads]
meta, subsampled -> [meta, subsampled]
}
)
ch_multiqc_files = ch_multiqc_files.mix(FASTQC.out.zip)
Expand Down

0 comments on commit afb2a61

Please sign in to comment.