Load the package with the library function.
library(tidyverse) library(ggplot2) library(dce) set.seed(42)
We provide access to the following topological pathway databases using graphite [@sales2012graphite] in a processed format. This format looks as follows:
dce::df_pathway_statistics %>% arrange(desc(node_num)) %>% head(10) %>% knitr::kable()
Let's see how many pathways each database provides:
dce::df_pathway_statistics %>% count(database, sort = TRUE, name = "pathway_number") %>% knitr::kable()
Next, we can see how the pathway sizes are distributed for each database:
dce::df_pathway_statistics %>% ggplot(aes(x = node_num)) + geom_histogram(bins = 30) + facet_wrap(~ database, scales = "free") + theme_minimal()
It is easily possible to plot pathways:
pathways <- get_pathways( pathway_list = list( pathbank = c("Lactose Synthesis"), kegg = c("Fatty acid biosynthesis") ) ) lapply(pathways, function(x) { plot_network( as(x$graph, "matrix"), visualize_edge_weights = FALSE, arrow_size = 0.02, shadowtext = TRUE ) + ggtitle(x$pathway_name) })
sessionInfo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.