get_node_names: Tranlates node IDs to node names

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Translates the node IDs to readable and comprensible names.

The names of the nodes are encoded as "pathway: name", where "pathway" is the pathway to which the node belongs and "node" is the name of the node. Nodes may include more genes than the one depicted in the name.

Usage

1
get_node_names(metaginfo, names, maxchar = NULL)

Arguments

metaginfo

Pathways object

names

Character vector with the subpathway IDs to be translated

maxchar

Integer, describes the number of maximum characters to be shown. By default no filter is applied.

Value

A character vector including the readable names of the subpathways IDs, in the same order as provided.

Examples

1
2
3
4
5
data(results)
pathways_list <- c("hsa03320", "hsa04012")
pathways <- load_pathways(species = "hsa", pathways_list)
node_vals <- get_nodes_data(results)
translated_names <- get_node_names(pathways, rownames(node_vals))

hipathia documentation built on Nov. 8, 2020, 7:52 p.m.