translate_res: translate_res

View source: R/decoupleRnival.R

translate_resR Documentation

translate_res

Description

formats the network with readable names

Usage

translate_res(SIF, ATT, HMDB_mapper_vec = NULL)

Arguments

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.

Value

list with network and attribute tables.

Examples

# 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

saezlab/cosmosR documentation built on July 27, 2024, 1:30 p.m.