trans_edges_id {PFP} | R Documentation

## trans_edges_id

### Description

translate the id name in edges_data

### Usage

    trans_edges_id(
      edges_data,
      from_type = "ENTREZID",
      to_type = "SYMBOL",
      gene_info_db = NULL
    )

### Arguments

`edges_data,` | the edges_data to translate, it can be the data.frame got from `get_exp_cor_edges` or `get_asso_net`, or a data.frame contains the same colnames with them.
`from_type,` | a character,the type of gene ID, "ENSEMBL","GO","SYMBOL" and so on.
`to_type,` | a character,the type of gene ID, "ENSEMBL","GO","SYMBOL" and so on.
`gene_info_db,` | a gene

### Details

Translate the id name in edges_data. Note, the `from_type` must be consistent with the genes id type in `edges_data`. The `gene_info_db` must be consistent with the species in `edges_data`

### Value

the id of the edges.

### Examples

    data(PFPRefnet_hsa)
    data(gene_list_hsa)
    edges_kegg <- get_bg_related_kegg(gene_list_hsa,
                                      PFPRefnet=PFPRefnet_hsa,
                                      rm_duplicated = TRUE)

[Package PFP version 1.2.0 Index]