Description Usage Arguments Value Author(s) Examples
View source: R/createRegulonList.R
assignPROGENyScores
1 | createRegulonList(regulon_table = regulon_table)
|
regulon_table |
the regulon matrix with columns the source, sign and target of the TF interaction. |
This function creates a regulon list similar to vipper from an interaction matrix. The interaction matrix contains as columns the source, sign and the target of the interaction
Enio Gjerga
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | library(CARNIVAL)
library(OmnipathR)
regulon_df <-
import_TFregulons_Interactions(select_organism = 9606)
regulon_df <-
regulon_df[which((regulon_df$is_stimulation+regulon_df$is_inhibition)==1), ]
regulon_table <- matrix(data = , nrow = nrow(regulon_df), ncol = 3)
regulon_table[, 1] <- regulon_df$source_genesymbol
regulon_table[which(regulon_df$is_stimulation==1), 2] = "1"
regulon_table[which(regulon_df$is_inhibition==1), 2] = "-1"
regulon_table[, 3] <- regulon_df$target_genesymbol
regulons <- createRegulonList(regulon_table = regulon_table)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.