Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/fct_SpeCond_2.R
Perform the first detection step of the SpeCond procedure. Use the fitting of the gene expression value with a mixture of normal distribution results and a set of rules to detect the outliers. It returns the outliers detected as specifically expressed for each gene.
1 2 3 | getSpecificOutliersStep1(expressionMatrix, fit1 = NULL,
param.detection = NULL, multitest.correction.method = "BY",
prefix.file = NULL, print.hist.pv = FALSE)
|
expressionMatrix |
the gene expression matrix (genes * conditions) |
fit1 |
the result of |
param.detection |
the parameter for the detection, a vector with the names ("per","md","mlk","rsd","pv") or the first row of the matrix obtained by |
multitest.correction.method |
the multitest correction method. The default is "BY", for the possible values see |
prefix.file |
a prefix added to the generated file. The default is NULL but has to be set. It is useful to change the prefix when you perform a new analysis. As you may want to compare the results with different parameters set. |
print.hist.pv |
to print in a pdf file the (non-adjusted) p-value histogram |
Frist essential method to obtain the matrix of expression value from your ExpressionSet to apply the SpeCond procedure step by step using the following function fitPrior
, fitNoPriorwithExclusion
, getSpecificOutliersStep1
, getSpecificResult
. The returned matrix will be the expressionMatrix argument of the above function
A list of size the number of rows (genes) in the expressionMatrix. If the gene has outlier expression, the column number of this outlier is stored, NULL if not.
Florence Cavalli, florence@ebi.ac.uk
fitPrior
, SpeCond
, getSpecificResult
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(SpeCond)
data(expressionSpeCondExample)
##Perform the SpeCond analysis step by step
param.detection=getDefaultParameter()
param.detection
fit1=fitPrior(expressionSpeCondExample, param.detection=param.detection)
specificOutlierStep1=getSpecificOutliersStep1(expressionSpeCondExample,
fit=fit1$fit1, param.detection, multitest.correction.method="BY",
prefix.file="run1_Step1", print.hist.pv=FALSE)
##then use fitNoPriorWithExclusion() and getSpecificResult()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.