Description Usage Arguments Value
Load vcf file into R and extract a genotype matrix (sample X SNP) coded with 0,1,2,<NA>.
1 2 | vcfToGenotypeMatrix(vcf_file, max_missing_snp = 1,
max_missing_sample = 1)
|
vcf_file |
VCF file with genotypes only (i.e. 0/0, 0/1, etc.). Missing values can be coded as "." or "./." |
max_missing_snp |
Set a max. percentage of missingness per SNP allowed. Default is set to 1 (i.e. 100 percent) |
max_missing_sample |
Set a max. percentage of missingness per sample allowed. Default is set to 1 (i.e. 100 percent) |
matrix (sample x snp) coded 0,1,2, or NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.