gtVcf2genoClasses | R Documentation |
Return a matrix of genotypes for SNPs (with possibly multiple alternative alleles). Phasing information is ignored. With help from Martin Morgan.
gtVcf2genoClasses(vcf, na.string = NA, single.alt = TRUE)
vcf |
CollapsedVCF (see pkg VariantAnnotation) |
na.string |
a symbol to indicate missing genotypes (e.g. NA, "NN", "–", etc) |
single.alt |
if TRUE, only records with a single 'alt' are kept |
matrix with variants in rows and samples in columns
Gautier Sarah, Timothee Flutre
vcf2genoClasses
, gtVcf2dose
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.