rename_genes | R Documentation |
Rename genes in the differential network analysis
rename_genes(x, gene_mat = NULL, to = NULL, species = NULL, ...)
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 |
Returns x
with all gene names updated according to gene_mat
.
Internet connection is required to connect to use
entrez_to_symbol
or symbol_to_entrez
.
entrez_to_symbol
, symbol_to_entrez
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.