samplot_commands: Prepare Samplot Commands from VCF

Description Usage Arguments Value Examples

View source: R/samplot.R

Description

Prepares Samplot commands from a structural variant VCF and paths to required BAM files.

Usage

1
samplot_commands(vcf_file, bam_file, sample_nm, out_dir = NULL, other = "")

Arguments

vcf_file

Path to the Manta VCF file (any SV VCF should work, really). Can be compressed or not.

bam_file

Path(s) to BAM file(s) (atomic vector).

sample_nm

Name(s) of BAM file(s) to display in plot (atomic vector).

out_dir

Output directory.

other

Other arguments to pass to Samplot (single string).

Value

A dataframe (tibble) with the following:

Examples

1
2
3
4
5
6
7
## Not run: 
vcf_file <- "path/to/vcf1.vcf.gz"
bam_file <- c("bam1", "bam2")
sample_nm <- c("s1", "s2")
samplot_commands(vcf_file, bam_file, sample_nm)

## End(Not run)

pdiakumis/rock documentation built on Oct. 12, 2020, 9:38 a.m.