mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08: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('*.out'), emit: log
|
||||
path '*.version.txt' , emit: version
|
||||
tuple val(meta), path('*fastq.gz'), optional:true, emit: fastq
|
||||
path 'test.txt', emit: test
|
||||
|
||||
script:
|
||||
def software = getSoftwareName(task.process)
|
||||
|
@ -45,6 +47,15 @@ process BOWTIE_ALIGN {
|
|||
2> ${prefix}.out \\
|
||||
| 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
|
||||
"""
|
||||
}
|
||||
|
|
|
@ -7,59 +7,63 @@ keywords:
|
|||
- reference
|
||||
tools:
|
||||
- bowtie:
|
||||
description: |
|
||||
bowtie is a software package for mapping DNA sequences against
|
||||
a large reference genome, such as the human genome.
|
||||
homepage: http://bowtie-bio.sourceforge.net/index.shtml
|
||||
documentation: http://bowtie-bio.sourceforge.net/manual.shtml
|
||||
arxiv: arXiv:1303.3997
|
||||
description: |
|
||||
bowtie is a software package for mapping DNA sequences against
|
||||
a large reference genome, such as the human genome.
|
||||
homepage: http://bowtie-bio.sourceforge.net/index.shtml
|
||||
documentation: http://bowtie-bio.sourceforge.net/manual.shtml
|
||||
arxiv: arXiv:1303.3997
|
||||
params:
|
||||
- outdir:
|
||||
type: string
|
||||
description: |
|
||||
The pipeline's output directory. By default, the module will
|
||||
output files into `$params.outdir/<SOFTWARE>`
|
||||
type: string
|
||||
description: |
|
||||
The pipeline's output directory. By default, the module will
|
||||
output files into `$params.outdir/<SOFTWARE>`
|
||||
- publish_dir_mode:
|
||||
type: string
|
||||
description: |
|
||||
Value for the Nextflow `publishDir` mode parameter.
|
||||
Available: symlink, rellink, link, copy, copyNoFollow, move.
|
||||
type: string
|
||||
description: |
|
||||
Value for the Nextflow `publishDir` mode parameter.
|
||||
Available: symlink, rellink, link, copy, copyNoFollow, move.
|
||||
- enable_conda:
|
||||
type: boolean
|
||||
description: |
|
||||
Run the module with Conda using the software specified
|
||||
via the `conda` directive
|
||||
type: boolean
|
||||
description: |
|
||||
Run the module with Conda using the software specified
|
||||
via the `conda` directive
|
||||
- singularity_pull_docker_container:
|
||||
type: boolean
|
||||
description: |
|
||||
Instead of directly downloading Singularity images for use with Singularity,
|
||||
force the workflow to pull and convert Docker containers instead.
|
||||
type: boolean
|
||||
description: |
|
||||
Instead of directly downloading Singularity images for use with Singularity,
|
||||
force the workflow to pull and convert Docker containers instead.
|
||||
- save_unaligned:
|
||||
type: boolean
|
||||
description: Save unaligned reads
|
||||
type: boolean
|
||||
description: Save unaligned reads
|
||||
input:
|
||||
- meta:
|
||||
type: map
|
||||
description: |
|
||||
Groovy Map containing sample information
|
||||
e.g. [ id:'test', single_end:false ]
|
||||
type: map
|
||||
description: |
|
||||
Groovy Map containing sample information
|
||||
e.g. [ id:'test', single_end:false ]
|
||||
- reads:
|
||||
type: file
|
||||
description: |
|
||||
List of input FastQ files of size 1 and 2 for single-end and paired-end data,
|
||||
respectively.
|
||||
type: file
|
||||
description: |
|
||||
List of input FastQ files of size 1 and 2 for single-end and paired-end data,
|
||||
respectively.
|
||||
- index:
|
||||
type: file
|
||||
description: Bowtie genome index files
|
||||
pattern: "*.ebwt"
|
||||
type: file
|
||||
description: Bowtie genome index files
|
||||
pattern: "*.ebwt"
|
||||
output:
|
||||
- sam:
|
||||
type: file
|
||||
description: Output SAM file containing read alignments
|
||||
pattern: "*.{sam}"
|
||||
- bam:
|
||||
type: file
|
||||
description: Output SAM file containing read alignments
|
||||
pattern: "*.{bam}"
|
||||
- version:
|
||||
type: file
|
||||
description: File containing software version
|
||||
pattern: "*.{version.txt}"
|
||||
type: file
|
||||
description: File containing software version
|
||||
pattern: "*.{version.txt}"
|
||||
- fastq:
|
||||
type: file
|
||||
description: Unaligned FastQ files
|
||||
pattern: "*.fastq.gz"
|
||||
authors:
|
||||
- "@kevinmenden"
|
||||
|
|
Loading…
Reference in a new issue