Description

Performs fastq alignment to a fasta reference using BWA

Input

name:type
description
pattern

meta{:bash}

:map

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

reads{:bash}

:file

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

meta2{:bash}

:map

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

index{:bash}

:file

BWA genome index files

Directory containing BWA index *.{amb,ann,bwt,pac,sa}

meta3{:bash}

:map

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

fasta{:bash}

:file

Reference genome in FASTA format

*.{fasta,fa}

sort_bam{:bash}

:boolean

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

true or false

Output

name:type
description
pattern

bam{:bash}

meta{:bash}

:map

Groovy Map containing sample information

*.bam{:bash}

:file

Output BAM file containing read alignments

*.{bam}

cram{:bash}

meta{:bash}

:map

Groovy Map containing sample information

*.cram{:bash}

:file

Output CRAM file containing read alignments

*.{cram}

csi{:bash}

meta{:bash}

:map

Groovy Map containing sample information

*.csi{:bash}

:file

Optional index file for BAM file

*.{csi}

crai{:bash}

meta{:bash}

:map

Groovy Map containing sample information

*.crai{:bash}

:file

Optional index file for CRAM file

*.{crai}

versions_bwa{:bash}

${task.process}{:bash}

:string

The name of the process

bwa{:bash}

:string

The name of the tool

bwa 2>&1 | sed -n "s/^Version: //p"{:bash}

:eval

The expression to obtain the version of the tool

versions_samtools{:bash}

${task.process}{:bash}

:string

The name of the process

samtools{:bash}

:string

The name of the tool

samtools version | sed '1!d;s/.* //'{:bash}

:eval

The expression to obtain the version of the tool

Topics

name:type
description
pattern

versions{:bash}

${task.process}{:bash}

:string

The name of the process

bwa{:bash}

:string

The name of the tool

bwa 2>&1 | sed -n "s/^Version: //p"{:bash}

:eval

The expression to obtain the version of the tool

${task.process}{:bash}

:string

The name of the process

samtools{:bash}

:string

The name of the tool

samtools version | sed '1!d;s/.* //'{:bash}

:eval

The expression to obtain the version of the tool

Tools

bwa
GPL-3.0-or-later

BWA is a software package for mapping DNA sequences against a large reference genome, such as the human genome.