treeData | R Documentation |
TreeSummarizedExperiment
To facilitate the dressing of the tree data stored in a
TreeSummarizedExperiment
object, rowTreeData
and
colTreeData
can be used.
rowTreeData(x, ...)
colTreeData(x, ...)
rowTreeData(x, tree.name = tree_name, tree_name = "phylo") <- value
colTreeData(x, tree.name = tree_name, tree_name = "phylo") <- value
combineTreeData(x, other.fields = other_fields, other_fields = list())
combineTreeData(x, other.fields = other_fields, other_fields = list())
## S4 method for signature 'TreeSummarizedExperiment'
colTreeData(x, tree.name = tree_name, tree_name = "phylo")
## S4 method for signature 'TreeSummarizedExperiment'
rowTreeData(x, tree.name = tree_name, tree_name = "phylo")
## S4 replacement method for signature 'TreeSummarizedExperiment'
colTreeData(x, tree.name = tree_name, tree_name = "phylo") <- value
## S4 replacement method for signature 'TreeSummarizedExperiment'
rowTreeData(x, tree.name = tree_name, tree_name = "phylo") <- value
## S4 method for signature 'phylo'
combineTreeData(x, other.fields = other_fields, other_fields = list())
## S4 method for signature 'treedata'
combineTreeData(x, other.fields = other_fields, other_fields = list())
x |
a
|
... |
additional arguments, currently not used. |
tree.name |
|
tree_name |
Deprecated. Use |
other.fields , value |
a |
other_fields |
Deprecated. Use |
To match information to nodes, the id information in other.fields
are used.
These can either be a column, named ‘node’ or ‘label’
(‘node’ taking precedent), or rownames. If all rownames can be coerced
to integer
, they are considered as ‘node’ values, otherwise as
‘label’ values. The id information must be unique and match available
values of rowTreeData(c)
The result of the accessors, rowTreeData
and colTreeData
,
contain at least a ‘node’ and ‘label’ column.
a data.frame
for the accessor and the modified
TreeSummarizedExperiment
object
data(GlobalPatterns)
td <- rowTreeData(GlobalPatterns)
td
td$test <- rnorm(nrow(td))
rowTreeData(GlobalPatterns) <- td
rowTreeData(GlobalPatterns)
combineTreeData(rowTree(GlobalPatterns), td)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.