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

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