get_node_names {hipathia} | R Documentation

## Tranlates node IDs to node names

### 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

    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

    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))

[Package hipathia version 2.2.1 Index]