cisAssoc(summex, vcf.tf, rhs = ~1, nperm = 3, cisradius =
50000, genome = "hg19", assayind = 1, lbmaf = 1e-06,
lbgtf = 1e-06, dropUnivHet = TRUE, infoFields =
c("LDAF", "SVTYPE"), simpleSNV = TRUE)
cisEsts(summex, vcf.tf, rhs = ~1, nperm = 3, cisradius =
50000, genome = "hg19", assayind = 1, lbmaf = 1e-06,
lbgtf = 1e-06, dropUnivHet = TRUE, infoFields =
c("LDAF", "SVTYPE"), simpleSNV = TRUE)
cisCount(summex, vcf.tf, rhs = ~1, cisradius =
50000, genome = "hg19", assayind = 1, lbmaf = 1e-06,
lbgtf = 1e-06, dropUnivHet = TRUE, infoFields =
c("LDAF", "SVTYPE"), simpleSNV = TRUE)
AllAssoc(summex, vcf.tf, variantRange, rhs = ~1, nperm = 3,
genome = "hg19", assayind = 1, lbmaf = 1e-06, lbgtf = 1e-06,
dropUnivHet = TRUE, infoFields = c("LDAF", "SVTYPE"))
RangedSummarizedExperiment
objectTabixFile
, referring to a
tabix-indexed, bgzipped VCF filesnp.rhs.tests
is run on each
expression vectorassays(summex)
to use for expression data retrievalcol.summary
isSNV
to filter variants for
analysis to SNVGRanges-class
instance
with mcols including chisq, permScore...cisCount: enumerate locations in VCF that would be tested
snp.rhs.tests
is the
workhorse for statistical modeling. VCF content is
transformed to the byte-code (which allows for uncertain imputation)
and used in fast testing.require(GenomeInfoDb)
require(geuvPack)
require(Rsamtools)
data(geuFPKM)
lgeu = geuFPKM[ which(seqnames(geuFPKM)=="chr20"), ]
seqlevelsStyle(lgeu) = "NCBI"
tf20 = TabixFile(system.file("vcf/c20exch.vcf.gz", package="gQTLstats"))
if (require(VariantAnnotation)) scanVcfHeader(tf20)
lgeue = clipPCs(lgeu[,which(lgeu$popcode=="CEU")], 1:2)
set.seed(1234)
litc = cisAssoc(lgeue[c(162,201),], tf20, nperm=2, lbmaf=.05, cisradius=50000)
set.seed(1234)
lite = cisEsts(lgeue[c(162,201),], tf20, nperm=2, lbmaf=.05, cisradius=50000)
summary(litc$chisq)
mysr = range(litc)
litc$pifdr = gQTLstats:::pifdr(litc$chisq, c(litc$permScore_1, litc$permScore_2))
litc[which(litc$pifdr < .01)]
lita = AllAssoc(geuFPKM[1:10,], tf20, mysr)
lita3 = AllAssoc(geuFPKM[11:20,], tf20, mysr)
#lita5 = AllAssoc(geuFPKM[21:30,], tf20, mysr)
n1 = gQTLstats:::collapseToBuf(lita, lita3)
#n1 = collapseToBuf(n1, lita5)
Run the code above in your browser using DataLab