mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00: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
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,59 +7,63 @@ keywords:
|
||||||
- reference
|
- reference
|
||||||
tools:
|
tools:
|
||||||
- bowtie:
|
- bowtie:
|
||||||
description: |
|
description: |
|
||||||
bowtie is a software package for mapping DNA sequences against
|
bowtie is a software package for mapping DNA sequences against
|
||||||
a large reference genome, such as the human genome.
|
a large reference genome, such as the human genome.
|
||||||
homepage: http://bowtie-bio.sourceforge.net/index.shtml
|
homepage: http://bowtie-bio.sourceforge.net/index.shtml
|
||||||
documentation: http://bowtie-bio.sourceforge.net/manual.shtml
|
documentation: http://bowtie-bio.sourceforge.net/manual.shtml
|
||||||
arxiv: arXiv:1303.3997
|
arxiv: arXiv:1303.3997
|
||||||
params:
|
params:
|
||||||
- outdir:
|
- outdir:
|
||||||
type: string
|
type: string
|
||||||
description: |
|
description: |
|
||||||
The pipeline's output directory. By default, the module will
|
The pipeline's output directory. By default, the module will
|
||||||
output files into `$params.outdir/<SOFTWARE>`
|
output files into `$params.outdir/<SOFTWARE>`
|
||||||
- publish_dir_mode:
|
- publish_dir_mode:
|
||||||
type: string
|
type: string
|
||||||
description: |
|
description: |
|
||||||
Value for the Nextflow `publishDir` mode parameter.
|
Value for the Nextflow `publishDir` mode parameter.
|
||||||
Available: symlink, rellink, link, copy, copyNoFollow, move.
|
Available: symlink, rellink, link, copy, copyNoFollow, move.
|
||||||
- enable_conda:
|
- enable_conda:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: |
|
description: |
|
||||||
Run the module with Conda using the software specified
|
Run the module with Conda using the software specified
|
||||||
via the `conda` directive
|
via the `conda` directive
|
||||||
- singularity_pull_docker_container:
|
- singularity_pull_docker_container:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: |
|
description: |
|
||||||
Instead of directly downloading Singularity images for use with Singularity,
|
Instead of directly downloading Singularity images for use with Singularity,
|
||||||
force the workflow to pull and convert Docker containers instead.
|
force the workflow to pull and convert Docker containers instead.
|
||||||
- save_unaligned:
|
- save_unaligned:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Save unaligned reads
|
description: Save unaligned reads
|
||||||
input:
|
input:
|
||||||
- meta:
|
- meta:
|
||||||
type: map
|
type: map
|
||||||
description: |
|
description: |
|
||||||
Groovy Map containing sample information
|
Groovy Map containing sample information
|
||||||
e.g. [ id:'test', single_end:false ]
|
e.g. [ id:'test', single_end:false ]
|
||||||
- reads:
|
- reads:
|
||||||
type: file
|
type: file
|
||||||
description: |
|
description: |
|
||||||
List of input FastQ files of size 1 and 2 for single-end and paired-end data,
|
List of input FastQ files of size 1 and 2 for single-end and paired-end data,
|
||||||
respectively.
|
respectively.
|
||||||
- index:
|
- index:
|
||||||
type: file
|
type: file
|
||||||
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