pathwayRes {phoenics} | R Documentation |
Class pathwayRes
Description
S3 class for pathway differential analysis results
Usage
## S3 method for class 'pathwayRes'
summary(object, ...)
## S3 method for class 'pathwayRes'
print(x, ...)
## S3 method for class 'pathwayRes'
plot(
x,
...,
pathway_id = NULL,
plot = c("eig", "var", "ind"),
habillage = "none"
)
head(object)
extract(object, pathway_id)
adjust_pval(object, method = p.adjust.methods, n = length(object))
Arguments
object , x |
object of class |
... |
not used |
pathway_id |
a character string or vector of pathway codes or names |
plot |
a character string indicating the type of plot to return. Default
to |
habillage |
a character string indicating the column of the design used
to color the individuals. Only used when |
method |
a character string indicating the correction method to be used
for multiple testing correction (authorized values are those of
|
n |
number of comparisons for multiple testing correction |
Details
Methods for the class pathwayRes
Value
The function extract
returns an object of class
pathwayRes
which is a list of pathway results, containing only the
pathways in pathway_id
.
The function adjust_pval
returns a data.frame with pathways
in rows and the following information in columns:
pathway_name |
name of the pathway |
pathway_code |
pathway code (identifier) |
Fixed_effect |
tested effect |
pval |
raw p-value of the pathway |
adjusted_pval |
adjusted p-value of the pathway |
Examples
data("MTBLS422")
quantif <- from_ASICS_to_PHOENICS(quantif)
out_test <- test_pathway(quantif, design, pathways,
fixed = c("Age", "Treatment"), random = "Mouse",
npc = 2, model = "blmer")
summary(out_test)
print(out_test)
plot(out_test)
plot(out_test, "mmu00052", plot = "var")
plot(out_test, "mmu00052", plot = "ind", habillage = "Age")
head(out_test)
extract(out_test, "mmu00562")
adj_pval <- adjust_pval(out_test)