mirror of
https://github.com/MillironX/taxprofiler.git
synced 2024-11-22 12:59:55 +00:00
Add bowtie2 mapped reads
This commit is contained in:
parent
c4a7d094c8
commit
ce611d6efd
1 changed files with 16 additions and 5 deletions
|
@ -4,8 +4,9 @@
|
|||
|
||||
include { BOWTIE2_BUILD } from '../../modules/nf-core/bowtie2/build/main'
|
||||
include { BOWTIE2_ALIGN } from '../../modules/nf-core/bowtie2/align/main'
|
||||
include { SAMTOOLS_INDEX } from '../../modules/nf-core/samtools/index/main'
|
||||
include { SAMTOOLS_STATS } from '../../modules/nf-core/samtools/stats/main'
|
||||
include { SAMTOOLS_INDEX } from '../../modules/nf-core/samtools/index/main'
|
||||
include { SAMTOOLS_STATS } from '../../modules/nf-core/samtools/stats/main'
|
||||
include { SAMTOOLS_VIEW } from '../../modules/nf-core/samtools/view/main'
|
||||
|
||||
workflow SHORTREAD_HOSTREMOVAL {
|
||||
take:
|
||||
|
@ -28,9 +29,19 @@ workflow SHORTREAD_HOSTREMOVAL {
|
|||
ch_versions = ch_versions.mix( BOWTIE2_ALIGN.out.versions.first() )
|
||||
ch_multiqc_files = ch_multiqc_files.mix( BOWTIE2_ALIGN.out.log )
|
||||
|
||||
SAMTOOLS_INDEX ( BOWTIE2_ALIGN.out.bam )
|
||||
ch_bowtie2_mapped = BOWTIE2_ALIGN.out.bam
|
||||
.map {
|
||||
meta, reads ->
|
||||
[ meta, reads, [] ]
|
||||
}
|
||||
|
||||
bam_bai = BOWTIE2_ALIGN.out.bam
|
||||
SAMTOOLS_VIEW ( ch_bowtie2_mapped, [], [] )
|
||||
ch_versions = ch_versions.mix( SAMTOOLS_VIEW.out.versions.first() )
|
||||
|
||||
SAMTOOLS_INDEX ( SAMTOOLS_VIEW.out.bam )
|
||||
ch_versions = ch_versions.mix( SAMTOOLS_INDEX.out.versions.first() )
|
||||
|
||||
bam_bai = SAMTOOLS_VIEW.out.bam
|
||||
.join(SAMTOOLS_INDEX.out.bai, remainder: true)
|
||||
|
||||
SAMTOOLS_STATS ( bam_bai, reference )
|
||||
|
|
Loading…
Reference in a new issue