Description Usage Arguments Details Value Author(s) Examples
View source: R/snpsCisToGenes.R
collect genewise best scoring eQTL
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | best.cis.eQTLs(smpack = "GGdata", rhs = ~1,
folderstem = "cisScratch", radius = 50000,
shortfac = 100,
chrnames = as.character(1:22),
smchrpref = "", gchrpref = "", schrpref = "ch",
geneApply = lapply, geneannopk = "illuminaHumanv1.db",
snpannopk = snplocsDefault(),
smFilter = function(x) nsFilter(MAFfilter(x, lower = 0.05), var.cutoff = 0.97), nperm = 2,
useME=FALSE, excludeRadius=NULL, exFilter=function(x)x,
keepMapCache=FALSE, getDFFITS=FALSE, SSgen = GGBase::getSS)
All.cis.eQTLs(maxfdr = 0.05, inbestcis = NULL, smpack = "GGdata",
rhs = ~1, folderstem = "cisScratch", radius = 50000,
shortfac = 100,
chrnames = as.character(1:22),
smchrpref = "", gchrpref = "", schrpref = "ch",
geneApply = lapply, geneannopk = "illuminaHumanv1.db",
snpannopk = snplocsDefault(),
smFilter4cis = function(x) nsFilter(MAFfilter(clipPCs(x,
1:10), lower = 0.05), var.cutoff = 0.85),
smFilter4all = function(x) MAFfilter(clipPCs(x,
1:10), lower = 0.05),
nperm = 2, excludeRadius=NULL, exFilter=function(x)x,
SSgen = GGBase::getSS)
meta.best.cis.eQTLs(smpackvec = c("GGdata", "hmyriB36"), rhslist = list(~1,
~1), folderstem = "cisScratch", radius = 50000, shortfac = 100,
chrnames = as.character(1:22), smchrpref = "", gchrpref = "",
schrpref = "ch", geneApply = lapply, geneannopk = "illuminaHumanv1.db",
snpannopk = snplocsDefault(), SMFilterList = list(
function(x) nsFilter(MAFfilter(x, lower = 0.05), var.cutoff = 0.97),
function(x) nsFilter(MAFfilter(x, lower = 0.05), var.cutoff = 0.97) ),
exFilterList = list(function(x)x, function(x)x),
nperm = 2, excludeRadius=NULL)
meta.All.cis.eQTLs(minchisq, smpackvec = c("GGdata", "hmyriB36"),
rhslist = list(~1, ~1), folderstem = "cisScratch",
radius = 50000, shortfac=100, chrnames = as.character(1:22), smchrpref = "",
gchrpref = "", schrpref = "ch", geneApply = lapply,
geneannopk = "illuminaHumanv1.db",
snpannopk = snplocsDefault(),
SMFilterList = list(function(x) nsFilter(MAFfilter(x,
lower = 0.05), var.cutoff = 0.97), function(x)
nsFilter(MAFfilter(x, lower = 0.05), var.cutoff =
0.97)),
exFilterList = list(function(x) x, function(x)
x),
nperm = 2)
chromsUsed(x)
fdr(x)
fullreport(x, type, ...)
getAll(x)
getBest(x)
getCall(x)
|
smpack |
character string naming a package to which |
smpackvec |
vector of character strings naming packages
that can be used as |
rhs |
R model formula, with no dependent variable, that will be used with
|
rhslist |
a list of model formulae to be used as |
folderstem |
prefix of the folder name to be used to hold ff archives of test results |
radius |
coding extent of each gene will be extended in both directions by
|
shortfac |
a numeric that will scale up the chi-squared statistic before it is converted to short integer for storage in ff array |
chrnames |
character vector of chromosome identifiers, to be manipulated for certain query resolutions by the following parameters |
smchrpref |
prefix to convert |
gchrpref |
prefix to convert |
schrpref |
prefix to convert |
geneApply |
an lapply like function, defaults to |
geneannopk |
character string, name of a *.db annotation package that annotates probe identifiers; or
see |
snpannopk |
character string, name of SNPlocs.Hsapiens.dbSNP.* package for obtaining; global function snplocsDefault() can be used to get a nominally current package name |
smFilter |
function accepting and returning an |
SMFilterList |
list of functions, one element per smlSet package used in meta analysis,
accepting and returning an |
minchisq |
threshold on test statistic value that must be met to include records on SNPs in the All.cis.eQTLs report |
nperm |
number of permutations to be used for plug-in FDR computation |
useME |
logical; if TRUE, use the rudimentary interface to the MatrixEQTL package from A. Shabalin on CRAN |
maxfdr |
Used in |
inbestcis |
Used in |
smFilter4cis |
Used in |
smFilter4all |
Used in |
x |
instance of |
type |
character, either 'data.frame' or 'GRanges' |
excludeRadius |
numeric, defaulting to NULL; if non-null, defines radius around gene region that is excluded for cis SNP scoring; must be less than radius |
keepMapCache |
logical, if TRUE, returned |
exFilter |
this function is passed to
|
exFilterList |
for metaanalytic applications,
a list of functions in correspondence with the elements of
|
getDFFITS |
logical; a component storing max DFFITS value for each gene will be retained if this argument TRUE |
... |
not used |
SSgen |
function to be used to create smlSet instance for testing – in general, GGBase::getSS has been used to pull the ExpressionSet and SnpMatrix data from a named package, but in some cases a specialize task is needed to create the desired smlSet. Whatever is passed to SSgen must return an smlSet instance. |
geneApply
can be set to parallel::mclapply
, for example,
in a multicore context.
mcwBestCis
stands for 'multi-chromosome-wide best cis'
eQTL report container.
It is possible that the filtering processes should be broken into genotype filtering and expression probe filtering.
fdr(x)
will return a numeric vector of
plug-in FDR estimates corresponding to probe:association tests
as ordered in the fullreport of a *Cis container.
More metadata should be attached to the output of this
function.
exFilter
may seem redundant with smFilter
, but
its existence allows simpler management of multitissue
expression archives (which may have several records per individual)
with germ line genotype data (which will have only one record
per individual). In this setting, use exFilter to select records for the tissue
of interest; this will occur early in the smlSet generation process.
an instance of mcwBestCis
VJ Carey <stvjc@channing.harvard.edu>
1 2 3 4 5 | getClass("mcwBestCis")
## Not run:
best.cis.eQTLs(chrnames="20")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.