View source: R/ScpModel-Utils.R
scpAnnotateResults | R Documentation |
The function takes as input a list of DFrame
and a table with
additional annotations. The annotation tables is automatically
merged into all tables of the list by matching the specified
columns (given by the arguments by
and by2
). This function is
useful to add annotation to analysis results generated by
scpVarianceAnalysis()
, scpDifferentialAnalysis()
, or
scpComponentAnalysis()
. The annotation table is typically the
colData
or rowData
of the object used for modelling. In case
of shared column names between the input tables and the annotation
table, any annotation that is already present in the list of
tables will be overwritten by the new annotations.
scpAnnotateResults(tableList, annotations, by, by2 = NULL)
tableList |
A list of tables, typically the output of
|
annotations |
A table of class 'data.frame' or 'DFrame' containing the annotations to add. If no further arguments are provided, the table must have row names. |
by |
A |
by2 |
A |
Christophe Vanderaa, Laurent Gatto
ScpModel-VarianceAnalysis
ScpModel-DifferentialAnalysis
ScpModel-ComponentAnalysis
data("leduc_minimal")
var <- scpVarianceAnalysis(leduc_minimal)
colnames(var$Residuals)
## Add peptide annotations available from the rowData
var <- scpAnnotateResults(
var, rowData(leduc_minimal), by = "feature", by2 = "Sequence"
)
colnames(var$Residuals)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.