Description Usage Arguments Details Value Examples
View source: R/permutation_functions.R
Apply permutation on MFA or Zhang results to obtain p-values of 1 of the components. The function asks for a CSresult object which is returned by CSanalysis. The CSpermute function will return the same CSresult object with added information such as p-values. If asked, the CSpermute function will also draw a volcanoplot and/or histograms of the p-values. If you simply want to redraw these plots, simply use the returned CSresult object by CSpermute again in the CSpermute function. If the number of permutations was not changed, this will prevent the entire permutation analysis from being redone.
1 2 3 4 |
refMat |
Reference matrix (Rows = genes and columns = compounds). |
querMat |
Query matrix |
CSresult |
A CSresult class object. |
B |
Number of permutations. |
mfa.factor |
If permuting a CSmfa result, mfa.factor will decide of which factor the p-values should be computed. If |
method.adjust |
Correction method of multiplicity adjusted p-values: "none", "holm", "hochberg", "hommel", "bonferroni", "BH", "BY" or "fdr". (Raw p-values are also always provided) |
verbose |
If |
which |
Choose which plot to draw:
|
cmpd.hist |
Query index vector which decides which query compounds are plotted for the histogram distribution under null hypothesis ( |
color.columns |
Option to color the compounds on the volcano plot ( |
plot.type |
How should the plots be outputted? |
basefilename |
Basename of the graphs if saved in pdf files |
IMPORTANT! For MFA, CSpermute
should only be used to compute the p-values of the Component in which the structure (loadings) of the references is the strongest.
This because in each permutation the factor with the highest average reference loadings will be chosen.
The ability to compute p-values of other factors (in which the reference set also increased loadings) will be added in a later release.
Returns the same CSresult object with added p-values to the CS slot and added information to the permutation.object slot. This CSresult can be reused in CSpermute to redraw the plots without calculation.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.