Update GT fields of vcf file by haplotypes provided. Updated file is saved under the name, which can be numbered to distinguish files in a set. It is useful, when you create a set of vcf files where GT fields are masked in different ways. These files will be further imputed. The updated genotypes are written as unphased.
1 | UpdateVCF(haps, pref, n, vcf)
|
haps |
character vector with haplotypes |
pref |
path/to/pref, where 'pref' is a basename of output file. vcf extention is added. |
n |
ordinal number to mark updated files automatically. If provided, m followed by this number is added to the basename of the file. |
vcf |
vcf-class object loaded with readVcf() function from VariantAnnotation package. The genotypes of this object we want to update. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.