This method converts an ExpandedVCF to a data.frame.
1 2 3 | ## S4 method for signature 'ExpandedVCF'
as.data.frame(x, row.names = NULL, optional = FALSE,
...)
|
1 2 3 4 5 6 | require(VariantAnnotation)
vcffile = system.file(package='VariantAnnotation',path='extdata/chr22.vcf.gz')
v = readVcf(vcffile,'hg19')
ve = expand(v)
class(ve)
head(as.data.frame(v))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.