as.json-VCF-method: Convert VCF object to json

Description Usage Examples

Description

This method converts an VCF to a JSON string.

Usage

1
2
## S4 method for signature 'VCF'
as.json(x, ...)

Examples

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)

seandavi/VCFWrenchR documentation built on Feb. 19, 2018, 2:06 a.m.