trans_edges_id {PFP} | R Documentation |
translate the id name in edges_data
trans_edges_id( edges_data, from_type = "ENTREZID", to_type = "SYMBOL", gene_info_db = NULL )
edges_data, |
the edges_data to translate, it can be the data.frame got
from |
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 |
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
the id of the edges.
data(PFPRefnet_hsa) data(gene_list_hsa) edges_kegg <- get_bg_related_kegg(gene_list_hsa, PFPRefnet=PFPRefnet_hsa, rm_duplicated = TRUE)