Description

Assigns all the reads in a file to a single new read-group

Input

name:type
description
pattern

meta{:bash}

:map

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

reads{:bash}

:file

Sequence reads file, can be SAM/BAM/CRAM format

*.{bam,cram,sam}

meta2{:bash}

:map

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

fasta{:bash}

:file

Reference genome file

*.{fasta,fa,fasta.gz,fa.gz}

fai{:bash}

:file

Reference genome index file

*.{fai,fasta.fai,fa.fai,fasta.gz.fai,fa.gz.fai}

Output

name:type
description
pattern

bam{:bash}

meta{:bash}

:map

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

*.bam{:bash}

:file

Output BAM file

*.{bam}

bai{:bash}

meta{:bash}

:map

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

*.bai{:bash}

:file

An optional BAM index file

*.{bai}

cram{:bash}

meta{:bash}

:map

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

*.cram{:bash}

:file

Output CRAM file

*.{cram}

versions_picard{:bash}

${task.process}{:bash}

:string

The process the versions were collected from

picard{:bash}

:string

The tool name

picard AddOrReplaceReadGroups --version 2>&1 | sed -n 's/.*Version://p'{:bash}

:string

The command used to generate the version of the tool

Topics

name:type
description
pattern

versions{:bash}

${task.process}{:bash}

:string

The process the versions were collected from

picard{:bash}

:string

The tool name

picard AddOrReplaceReadGroups --version 2>&1 | sed -n 's/.*Version://p'{:bash}

:string

The command used to generate the version of the tool

Tools

picard
MIT

A set of command line tools (in Java) for manipulating high-throughput sequencing (HTS) data and formats such as SAM/BAM/CRAM and VCF.