rowNames2RowData | R Documentation |
rowNames2RowData
transforms the taxonomy stored in the row names to
the rowData in a SummarizedExperiment.
rowNames2RowData(x)
x |
A SummarizedExperiment with the features taxonomy in the rownames. |
The same SummarizedExpriment with the taxonomy now in the rowData.
data("zeller14")
## Keep only "CRC" and "control" (dichotomous variable)
z14 <- zeller14[, zeller14$study_condition %in% c("control", "CRC")]
## Get terminal nodes
tn <- get_terminal_nodes(rownames(z14))
z14_tn <- z14[tn, ]
## Normalize to relative abundance (also known as Total Sum Scaling)
z14_tn_ra <- relativeAb(z14_tn)
## Add the taxonomy to the rowData
input_se <- rowNames2RowData(z14_tn_ra)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.