IsomirDataSeqisoPLSDA(ids, group, validation = NULL, learn = NULL, test = NULL, tol = 0.001, nperm = 400, refinment = FALSE, vip = 1.2)IsomirDataSeqcolData(ids) to use as variable to explain.list with the following elements: R2Matrix
(R-squared coefficients of the PLS model),
components (of the PLS, similar to PCs in a PCA),
vip (most important isomiRs/miRNAs),
group (classification of the samples),
p.value and R2PermutationVector obtained by the permutations.If the option refinment is set to TRUE, then the following
elements will appear:
R2RefinedMatrix and componentsRefinedModel (R-squared coefficients
of the PLS model only using the most important miRNAs/isomiRs). As well,
p.valRefined and R2RefinedPermutationVector with p-value
and R2 of the
permutations where samples were randomized. And finally,
p.valRefinedFixed and R2RefinedFixedPermutationVector with
p-value and R2 of the
permutations where miRNAs/isomiRs were randomized.
We implemented this method using the
DiscriMiner-package into isoPLSDA function.
The output
p-value of this function will tell about the statistical
significant of the group separation using miRNA/isomiR expression data.
Read more about the parameters related to the PLS-DA directly from plsDA function.
Xia, Jianguo and Wishart, David S. Web-based inference of biological patterns, functions and pathways from metabolomic data using MetaboAnalyst. Nature Protocols. 2011.
data(mirData)
# Only miRNAs with > 10 reads in all samples.
ids <- isoCounts(mirData, minc=10, mins=6)
ids <- isoNorm(ids)
pls.ids = isoPLSDA(ids, "condition", nperm = 2)
cat(paste0("pval:",pls.ids$p.val))
cat(paste0("components:",pls.ids$components))
Run the code above in your browser using DataLab