mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2025-01-08 15:02:09 -05:00
added unaligned output
This commit is contained in:
parent
41329b8982
commit
f840325ead
2 changed files with 57 additions and 42 deletions
|
@ -26,6 +26,8 @@ process BOWTIE_ALIGN {
|
||||||
tuple val(meta), path('*.bam'), emit: bam
|
tuple val(meta), path('*.bam'), emit: bam
|
||||||
tuple val(meta), path('*.out'), emit: log
|
tuple val(meta), path('*.out'), emit: log
|
||||||
path '*.version.txt' , emit: version
|
path '*.version.txt' , emit: version
|
||||||
|
tuple val(meta), path('*fastq.gz'), optional:true, emit: fastq
|
||||||
|
path 'test.txt', emit: test
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def software = getSoftwareName(task.process)
|
def software = getSoftwareName(task.process)
|
||||||
|
@ -45,6 +47,15 @@ process BOWTIE_ALIGN {
|
||||||
2> ${prefix}.out \\
|
2> ${prefix}.out \\
|
||||||
| samtools view $options.args2 -@ $task.cpus -bS -o ${prefix}.bam -
|
| samtools view $options.args2 -@ $task.cpus -bS -o ${prefix}.bam -
|
||||||
|
|
||||||
|
touch test.txt
|
||||||
|
if [ -f ${prefix}.unmapped.fastq ]; then
|
||||||
|
gzip ${prefix}.unmapped.fastq
|
||||||
|
fi
|
||||||
|
if [ -f ${prefix}.unmapped_1.fastq ]; then
|
||||||
|
gzip ${prefix}.unmapped_1.fastq
|
||||||
|
gzip ${prefix}.unmapped_2.fastq
|
||||||
|
fi
|
||||||
|
|
||||||
echo \$(bowtie --version 2>&1) | sed 's/^.*bowtie-align-s version //; s/ .*\$//' > ${software}.version.txt
|
echo \$(bowtie --version 2>&1) | sed 's/^.*bowtie-align-s version //; s/ .*\$//' > ${software}.version.txt
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,13 +53,17 @@ input:
|
||||||
description: Bowtie genome index files
|
description: Bowtie genome index files
|
||||||
pattern: "*.ebwt"
|
pattern: "*.ebwt"
|
||||||
output:
|
output:
|
||||||
- sam:
|
- bam:
|
||||||
type: file
|
type: file
|
||||||
description: Output SAM file containing read alignments
|
description: Output SAM file containing read alignments
|
||||||
pattern: "*.{sam}"
|
pattern: "*.{bam}"
|
||||||
- version:
|
- version:
|
||||||
type: file
|
type: file
|
||||||
description: File containing software version
|
description: File containing software version
|
||||||
pattern: "*.{version.txt}"
|
pattern: "*.{version.txt}"
|
||||||
|
- fastq:
|
||||||
|
type: file
|
||||||
|
description: Unaligned FastQ files
|
||||||
|
pattern: "*.fastq.gz"
|
||||||
authors:
|
authors:
|
||||||
- "@kevinmenden"
|
- "@kevinmenden"
|
||||||
|
|
Loading…
Reference in a new issue