mirror of
https://github.com/MillironX/taxprofiler.git
synced 2024-11-22 15:09:54 +00:00
Add long read preprocessing subworkflow
This commit is contained in:
parent
16be676d72
commit
1e42f1d9f2
1 changed files with 34 additions and 0 deletions
34
subworkflows/local/longread_preprocessing.nf
Normal file
34
subworkflows/local/longread_preprocessing.nf
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
|
||||||
|
include { FASTQC as FASTQC_POST } from '../../modules/nf-core/modules/fastqc/main'
|
||||||
|
include { PORECHOP } from '../../modules/nf-core/modules/porechop/main'
|
||||||
|
|
||||||
|
workflow LONGREAD_PREPROCESSING {
|
||||||
|
take:
|
||||||
|
reads
|
||||||
|
|
||||||
|
main:
|
||||||
|
ch_versions = Channel.empty()
|
||||||
|
ch_multiqc_files = Channel.empty()
|
||||||
|
|
||||||
|
PORECHOP ( reads )
|
||||||
|
|
||||||
|
ch_processed_reads = PORECHOP.out.reads
|
||||||
|
.dump(tag: "pre_fastqc_check")
|
||||||
|
.map {
|
||||||
|
meta, reads ->
|
||||||
|
def meta_new = meta.clone()
|
||||||
|
meta_new['single_end'] = 1
|
||||||
|
[ meta_new, reads ]
|
||||||
|
}
|
||||||
|
|
||||||
|
FASTQC_POST ( PORECHOP.out.reads )
|
||||||
|
ch_versions = ch_versions.mix(PORECHOP.out.versions.first())
|
||||||
|
ch_multiqc_files = ch_multiqc_files.mix( FASTQC_POST.out.zip.collect{it[1]} )
|
||||||
|
|
||||||
|
|
||||||
|
emit:
|
||||||
|
reads = ch_processed_reads // channel: [ val(meta), [ reads ] ]
|
||||||
|
versions = ch_versions // channel: [ versions.yml ]
|
||||||
|
mqc = ch_multiqc_files
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue