Description

Align reads to a reference genome using bowtie2

Input

name:type
description
pattern

meta

:map

Groovy Map containing sample information e.g. [ id:‘test’, single_end:false ]

reads

:file

List of input FastQ files of size 1 and 2 for single-end and paired-end data, respectively.

meta2

:map

Groovy Map containing reference information e.g. [ id:‘test’, single_end:false ]

index

:file

Bowtie2 genome index files

*.ebwt

meta3

:map

Groovy Map containing reference information e.g. [ id:‘test’, single_end:false ]

fasta

:file

Reference genome FASTA file

*.{fa,fasta,fna}

fai

:file

Reference genome FASTA index file

*.{fai}

save_unaligned

:boolean

Save reads that do not map to the reference (true) or discard them (false) (default: false)

sort_bam

:boolean

use samtools sort (true) or samtools view (false)

true or false

Output

name:type
description
pattern

sam

meta

:map

Groovy Map containing sample information

*.sam

:file

Output SAM file containing read alignments

*.sam

bam

meta

:map

Groovy Map containing sample information

*.bam

:file

Output BAM file containing read alignments

*.bam

cram

meta

:map

Groovy Map containing sample information

*.cram

:file

Output CRAM file containing read alignments

*.cram

csi

meta

:map

Groovy Map containing sample information

*.csi

:file

Output SAM/BAM index for large inputs

*.csi

crai

meta

:map

Groovy Map containing sample information

*.crai

:file

Output CRAM index

*.crai

log

meta

:map

Groovy Map containing sample information

*.log

:file

Alignment log

*.log

fastq

meta

:map

Groovy Map containing sample information

*fastq.gz

:file

Unaligned FastQ files

*.fastq.gz

versions_bowtie2

${task.process}

:string

The name of the process

bowtie2

:string

The name of the tool

bowtie2 --version 2>&1 | sed -n 's/.*bowtie2-align-s version //p'

:eval

The expression to obtain the version of bowtie2

versions_samtools

${task.process}

:string

The name of the process

samtools

:string

The name of the tool

samtools version | sed '1!d;s/.* //'

:eval

The expression to obtain the version of samtools

versions_pigz

${task.process}

:string

The name of the process

pigz

:string

The name of the tool

pigz --version 2>&1 | sed 's/pigz //'

:eval

The expression to obtain the version of pigz

Topics

name:type
description
pattern

versions

${task.process}

:string

The name of the process

bowtie2

:string

The name of the tool

bowtie2 --version 2>&1 | sed -n 's/.*bowtie2-align-s version //p'

:eval

The expression to obtain the version of bowtie2

${task.process}

:string

The name of the process

samtools

:string

The name of the tool

samtools version | sed '1!d;s/.* //'

:eval

The expression to obtain the version of samtools

${task.process}

:string

The name of the process

pigz

:string

The name of the tool

pigz --version 2>&1 | sed 's/pigz //'

:eval

The expression to obtain the version of pigz

Tools

bowtie2
GPL-3.0-or-later

Bowtie 2 is an ultrafast and memory-efficient tool for aligning sequencing reads to long reference sequences.