calculate_p0 | R Documentation |
The function provides a reliable approach to generating a p0 vector.
calculate_p0(nodes, disease)
nodes |
The |
disease |
The |
The resulting p0 vector.
library(DTSEA) library(dplyr) # Load the data data("example_disease_list", package = "DTSEA") data("example_drug_target_list", package = "DTSEA") data("example_ppi", package = "DTSEA") # Compute the p0 vector p0 <- calculate_p0(nodes = example_ppi, disease = example_disease_list) # You can decrease the order of the p0 to get the most affected nodes. p0 <- sort(p0, decreasing = TRUE) %>% names() %>% head(10) # If you have obtained the supplemental data, then you can compute the p0 # in the real data set # supp_data <- get_data(c("graph", "disease_related")) # p0 <- calculate_p0(nodes = supp_data[["graph"]], # disease = supp_data[["disease_related"]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.