nodeResult | R Documentation |
Extract a table with the top-ranked nodes from a DA/DS analysis output
(generated by runDA
or runDS
).
nodeResult(
object,
n = 10,
type = c("DA", "DS"),
adjust_method = "BH",
sort_by = "PValue",
p_value = 1
)
object |
The output from |
n |
An integer indicating the maximum number of entities to return. |
type |
Either "DA" (for object from |
adjust_method |
A character string specifying the method used to adjust
p-values for multiple testing. See |
sort_by |
A character string specifying the sorting method. This will
be passed to |
p_value |
A numeric cutoff value for adjusted p-values. This will
be passed to |
A data frame with results for all nodes passing the imposed
thresholds. The columns logFC, logCPM,
PValue, FDR, F (or LR) are from (the
output table of) topTags
. The node column
stores the node number for each entity. Note: FDR is corrected
over all features and nodes when the specified type = "DS"
.
Ruizhu Huang, Charlotte Soneson
suppressPackageStartupMessages({
library(TreeSummarizedExperiment)
})
lse <- readRDS(system.file("extdata", "da_sim_100_30_18de.rds",
package = "treeclimbR"))
tse <- aggTSE(lse, rowLevel = showNode(tree = rowTree(lse),
only.leaf = FALSE))
dd <- model.matrix( ~ group, data = colData(tse))
out <- runDA(TSE = tse, feature_on_row = TRUE,
assay = "counts", option = "glmQL",
design = dd, contrast = NULL,
normalize = TRUE)
## Top 10 nodes with DA
nodeResult(out, n = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.