vcf2snpmatrix: convert a vcf file to snpMatrix object 'vcf2snpmatrix'...

Description Usage Arguments Value

View source: R/simulate.R

Description

convert a vcf file to snpMatrix object vcf2snpmatrix convert a vcf file to snpMatrix object

Usage

1
vcf2snpmatrix(vcf, bcft, region_file, quiet = TRUE)

Arguments

vcf

a scalar - path to vcf file

bcft

a scalar - path to bcftools binary

region_file

a scalar - path to a file satisfying -R bcftools criteria (optional)

quiet

a boolean - if set to false then debug information shown (default = FALSE)

Value

a list with two slots. sm is the snpMatrix object and info is a data.table describes SNPs


ollyburren/cupcake documentation built on July 30, 2020, 9:58 a.m.