renameSampleBam: renameSampleBam

Description Usage Arguments Examples

View source: R/renameSampleBam.R

Description

Rename sample name of a BAM using samtools. Input folder and output folder should be different for avoding overwrite problems.

Usage

1
renameSampleBam(bam, samtools = "samtools", new_sample_name, out_path)

Arguments

bam

Bam file to carry the analysis.

samtools

Path of samtools binary.

new_sample_name

New sample name for the BAM file

out_path

Path where the output of the analysis will be saved.

Examples

1
2
3
4
5
6
7
## Not run: 
renameSampleBam(bam = 'sample.bam',
                samtools = 'samtools',
                new_sample_name = 'new_sm',
                out_path = 'bam/renamed')

## End(Not run)

msubirana/ergWgsTools documentation built on June 8, 2020, 8:07 a.m.