View source: R/utils-dataset-converters.R
rename_net | R Documentation |
Renames a given network to these column names: .source, .target, .mor, If .mor is not provided, then the function sets them to default values.
rename_net(
network,
.source,
.target,
.mor = NULL,
.likelihood = NULL,
def_mor = 1
)
network |
Tibble or dataframe with edges and it's associated metadata. |
.source |
Column with source nodes. |
.target |
Column with target nodes. |
.mor |
Column with edge mode of regulation (i.e. mor). |
.likelihood |
Deprecated argument. Now it will always be set to 1. |
def_mor |
Default value for .mor when not provided. |
inputs_dir <- system.file("testdata", "inputs", package = "decoupleR")
mat <- readRDS(file.path(inputs_dir, "mat.rds"))
net <- readRDS(file.path(inputs_dir, "net.rds"))
rename_net(net, source, target, mor)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.