# SRC: ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/pilot_data/release/2010_07/exon/CEU.exon.2010_03.genotypes.vcf.gz
vref = system.file("vcf/CEU.exon.2010_09.genotypes.vcf.gz", package="GGtools")
gg = GenomicRanges::GRanges(seqnames="1", IRanges::IRanges(10e6,20e6))
vcf2sm(Rsamtools::TabixFile(vref), gr=gg, nmetacol=9L)
Run the code above in your browser using DataLab