#Import data in a bed matrix
#x <- read.bed.matrix( system.file("extdata", "LCT.EUR.b37.bed", package="Ravages") )
#Group variants within CADD regions and genomic categories
#x <- set.CADDregions(x, build = "b37")
#Filter of rare variants: only non-monomorphic variants with
#a MAF lower than 2.5%
#keeping only genomic regions with at least 200 SNP
#x1 <- filter.rare.variants(x, filter = "whole", maf.threshold = 0.025, min.nb.snps = 200)
#run null model, using the 1000Genome population as "outcome"
#x1.H0 <- NullObject.parameters(pheno = x1@ped$population, ref.level = "CEU",
# RVAT = "burden", pheno.type = "categorical")
#run burden test WSS
#res.subscores <- burden.subscores(x1, NullObject = x1.H0, burden = WSS,
# get.effect.size=TRUE, cores = 1)
#res.subscores$Asso # p-values
#res.subscores$effect #OR values
Run the code above in your browser using DataLab