create_profiles: SNV profile creation

Description Usage Arguments Details Value Examples

View source: R/create_profile.R

Description

Create SNV profiles from all VCF files in a directory

Usage

1
2
3
create_profiles(vcf_dir, min_depth = 10, filter_vc = TRUE,
  filter_mt = TRUE, filter_ns = TRUE, filter_gd = TRUE,
  filter_pd = FALSE, pattern = NULL, recursive = FALSE)

Arguments

vcf_dir

The VCF directory from which the profiles will be created (path).

min_depth

Remove variants below this sequencing depth (integer).

filter_vc

Filter variants failing variant caller criteria (boolean).

filter_mt

Filter mitochondrial variants (boolean).

filter_ns

Filter non-standard chromosomes (boolean).

filter_gd

Filter duplicate variants at the gene-level (boolean).

filter_pd

Filter duplicate variants at the position-level (boolean).

pattern

Only create profiles for a subset of files corresponding to this pattern (character).

recursive

Find VCF files recursively in sub-directories as well (boolean).

Details

This functions is a convenience-wrapper for the 'create_profile' function, which will create SNV profiles for each and every VCF file in the provided directory. The file naming scheme used is '<sample>.vcf' and will dictate the each profile's sample name.

Value

A list of data frames.

Examples

1
2
3
4
5
# Path to the test VCF directory
vcf_dir = system.file("extdata", package = "seqCAT")

# Create SNV profiles
profiles <- create_profiles(vcf_dir, pattern = "test", recursive = TRUE)

seqCAT documentation built on Nov. 8, 2020, 7:36 p.m.