Description Usage Arguments Value Examples
obtain SnpMatrix from VCF genotypes
1 2 |
gr |
GRanges instance; SNPs lying within will be processed |
vcf.tf |
TabixFile instance pointing to VCF |
samps |
samples to be retained |
genome |
tag identifying build |
getSM |
logical; if FALSE, |
snvOnly |
logical, if TRUE, will confine results to SNV |
a list of length two
readout |
output of readVcf |
sm |
output of genotypeToSnpMatrix run on the read result |
1 2 3 4 5 6 7 8 9 10 | require(Rsamtools)
tf20 = TabixFile(system.file("vcf/c20exch.vcf.gz", package="gQTLstats"))
require(geuvPack)
data(geuFPKM)
lgeu = geuFPKM[ which(seqnames(geuFPKM)=="chr20"),
which(geuFPKM$popcode=="CEU") ]
seqlevelsStyle(lgeu) = "NCBI"
rng = rowRanges(lgeu)[232] # CPNE1
myq = queryVCF( rng, tf20, samps=colnames(lgeu), genome="hg19" )
myq
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.