View source: R/methodsEmapInternal.R
manageNameDuplicationInEmap | R Documentation |
The function adds the ID of the term at the name of the name description when terms with different ID share the same name. For example, "MAPK pathway" would become "MAPK pathway (KEGG:04010)".
manageNameDuplicationInEmap(clProfDF)
clProfDF |
a |
a data.frame
with the name descriptions modified for terms
with duplicated name descriptions but different term IDs.
Astrid DeschĂȘnes
## Data frame with duplicated name descriptions for different IDs
clustData <- data.frame(Cluster=c("group 1" , "group 1", "group 2"),
ID=c("WP:WP4925", "WP:WP382", "KEGG:04010"),
Description=c("Unfolded protein response",
rep("MAPK signaling pathway", 2)),
GeneRatio=c("4/157", "3/157", "3/157"),
BgRatio=c("4/24022", "3/24022", "3/24022"),
pvalues=c(1.55e-4, 8.13e-8, 4.33e-5),
p.adjust=c(1e-3, 1e-3, 1.4e-3), qvalue=c(1e-3, 1e-3, 1.4e-3),
geneID=c("ENSG000107968/ENSG000120129/ENSG000123358/ENSG000158050",
"ENSG000107968/ENSG000120129/ENSG000158050",
"ENSG000107968/ENSG000120129/ENSG000158050"),
Count=c(4, 3, 3))
## Change the name descriptions for the duplicated terms
enrichViewNet:::manageNameDuplicationInEmap(clProfDF=clustData)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.