if (!require("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install() BiocManager::version() BiocManager::install("remotes", dependencies = TRUE) BiocManager::install("waldronlab/bugSigSimple")
Load bugSigSimple and bugSigDB
library(bugSigSimple) library(bugsigdbr) library(kableExtra) library(tidyverse)
dat <- importBugSigDB() dim(dat)
curatorName <- "Fatima Zohra" caption <- paste0("Overview of the studies initially selected based on curator name: ", curatorName, ". For convenience, only top 20 most frequently reported conditions are shown")
my.dat <- subsetByCurator(dat, curator = curatorName) table(my.dat[,"Condition"]) %>% sort(decreasing = TRUE) %>% as.data.frame() %>% head(20) %>% kbl(caption = caption) %>% kable_styling()
efo <- bugsigdbr::getOntology("efo") dat.bpd <- bugsigdbr::subsetByOntology(dat, column = "Condition", "bipolar disorder", efo) dat.upd <- bugsigdbr::subsetByOntology(dat, column = "Condition", "major depressive disorder", efo) my.dat.cond <- rbind(dat.bpd, dat.upd) table(my.dat.cond[,"Condition"])
createStudyTable(my.dat.cond) %>% kbl() %>% kable_styling()
createTaxonTable(my.dat.cond, n = 20) %>% kbl() %>% kable_styling()
ind <- my.dat.cond[,"Condition"] %in% c("bipolar disorder") my.dat.bd <- my.dat.cond[!ind,] dim(my.dat.bd) table(my.dat.bd[,"Condition"])
createStudyTable(my.dat.bd) %>% kbl() %>% kable_styling()
createTaxonTable(my.dat.bd, n = 20) %>% kbl() %>% kable_styling()
ind <- my.dat.cond[,"Condition"] %in% c("major depressive disorder") my.dat.mdd <- my.dat.cond[!ind,] dim(my.dat.mdd) table(my.dat.mdd[,"Condition"])
createStudyTable(my.dat.mdd) %>% kbl() %>% kable_styling()
createTaxonTable(my.dat.mdd, n = 20) %>% kbl() %>% kable_styling()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.