rename_genes {dnapath} | R Documentation |
Rename genes in the differential network analysis
Description
Rename genes in the differential network analysis
Usage
rename_genes(x, gene_mat = NULL, to = NULL, species = NULL, ...)
Arguments
x |
A 'dnapath_list' or 'dnapath' object from |
gene_mat |
(Optional) A matrix of key value pairs. The first column should contain
current gene names, and the second column the new names. Any genes that are
not in this matrix will retain their current names. This can be any
user-defined mapping, or the mapping obtained using
|
to |
(Optional) Setting |
species |
(Optional) Must be specified when setting |
... |
Additional arugments are passed into |
Value
Returns x
with all gene names updated according to gene_mat
.
Note
Internet connection is required to connect to use
entrez_to_symbol
or symbol_to_entrez
.
See Also
entrez_to_symbol
, symbol_to_entrez
Examples
data(meso)
data(p53_pathways)
set.seed(0)
results <- dnapath(x = meso$gene_expression, pathway_list = p53_pathways,
group_labels = meso$groups, n_perm = 10)
summary(results[[1]]) # Summary of pathway 1; note that it uses entrezgene IDs.
# Rename the entrezgene IDs into gene symbols.
results_sym <- rename_genes(results, to = "symbol", species = "human")
summary(results_sym[[1]]) # Now the summary uses gene symbols.