This method converts an VCF to a JSON string.
1 2 | ## S4 method for signature 'VCF'
as.json(x, ...)
|
1 2 3 4 | require(VariantAnnotation)
vcffile = system.file(package='VariantAnnotation',path='extdata/chr22.vcf.gz')
v = readVcf(vcffile,'hg19')
as.json(head(v,3),pretty=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.