View source: R/decoupleRnival.R
translate_res | R Documentation |
formats the network with readable names
translate_res(SIF, ATT, HMDB_mapper_vec = NULL)
SIF |
result SIF of decoupleRnival pipeline |
ATT |
result ATT of decoupleRnival pipeline |
HMDB_mapper_vec |
a named vector with HMDB Ids as names and desired metabolite names as values. |
list with network and attribute tables.
# Create a meta network data frame
example_SIF <- data.frame(
source = c("GPX1", "Gene863__GPX1"),
target = c("Gene863__GPX1", "Metab__HMDB0003337_c"),
sign = c(1, 1)
)
example_ATT <- data.frame(
Nodes = c("GPX1", "Gene863__GPX1","Metab__HMDB0003337_c"),
sign = c(1, 1, 1)
)
example_SIF
data("HMDB_mapper_vec")
translated_res <- translate_res(example_SIF,example_ATT,HMDB_mapper_vec)
translated_res$SIF
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.