Name Mode Size
R 040000
data 040000
inst 040000
man 040000
tests 040000
vignettes 040000
DESCRIPTION 100644 2 kb
NAMESPACE 100644 1 kb
NEWS 100644 0 kb 100644 7 kb
# SBGNview [![](]( [![](]( ## Overview We previously developed an R/BioConductor package called [Pathview](, which maps, integrates and visualizes a wide range of data onto KEGG pathway graphs. Since its publication, Pathview has been widely used in omics studies and data analyses, and has become the leading tool in its category. Here we introduce the SBGNview package, which adopts [Systems Biology Graphical Notation (SBGN)]( and greatly extends the Pathview project by supporting multiple major pathway databases beyond KEGG. Key features: * Pathway diagram and definition by the widely adopted [SBGN standard formats](; * Supports multiple major pathway databases beyond KEGG ([Reactome](, [MetaCyc](, [SMPDB](, [PANTHER](, [METACROP]( etc) and user defined pathways; * Covers 5,200 reference pathways and over 3,000 species by default; * Extensive graphics controls, including glyph and edge attributes, graph layout and sub-pathway highlight; * SBGN pathway data manipulation, processing, extraction and analysis. ## Citation Please cite the following papers when using this open-source package. This will help the project and our team: Luo W, Brouwer C. Pathview: an R/Biocondutor package for pathway-based data integration and visualization. Bioinformatics, 2013, 29(14):1830-1831, <a href=>doi: 10.1093/bioinformatics/btt285</a> ## Installation ### Prerequisites *SBGNview* depends or imports from the following R packages: * xml2: parse SBGN-ML files * rsvg: convert svg files to other formats (pdf, png, ps). librsvg2 is needed to install rsvg. See this page for more details: * igraph: find shortest paths * httr: search [SBGNhub]( for mapping files * KEGGREST: generate mapping tables from scratch when needed * [pathview]( map between different ID types for gene and chemical compound * [gage]( R package for pathway enrichment analysis. * []( demo and supportive datasets for SBGNview package * [SummarizedExperiment]( alternative input user data as SummarizedExperiment objects * AnnotationDbi: BioConductor annotation data and infrastructure Note these dependencies will be automatically installed when SBGNview is installed from BioConductor or GitHub. To install them manually within R: ```{r setup, eval = FALSE} if (!requireNamespace("BiocManager", quietly = TRUE)){ install.packages("BiocManager") } BiocManager::install(c("xml2", "rsvg", "igraph", "httr", "KEGGREST", "pathview", "gage", "", "SummarizedExperiment", "AnnotationDbi")) ``` External dependencies (outside R): **Windows 10**: none **Linux (Ubuntu)**: needs additional packages (libxml2-dev, libssl-dev, libcurl4-openssl-dev, librsvg2-dev) to be installed. Run the command below in a terminal to install the necessary packages. The same or similar packages can be found for other distributes of linux. ```{r depend, eval = FALSE} sudo apt install libxml2-dev libssl-dev libcurl4-openssl-dev librsvg2-dev ``` ### Install SBGNview Install SBGNview through Bioconductor: ```{r install, eval = FALSE} BiocManager::install(c("SBGNview")) ``` Install SBGNview through GitHub: ```{r install.1, eval = FALSE} install.packages("devtools") devtools::install_github("datapplab/SBGNview") ``` Clone the Git repository: ```{r clone.git, eval = FALSE} git clone ``` ## Quick example ```{r, echo = TRUE, eval = TRUE, results = 'hide', message = FALSE, warning = FALSE} library(SBGNview) # load demo dataset, SBGN pathway data collection and info, which may take a few seconds data("gse16873.d","", "sbgn.xmls") input.pathways <- findPathways("Adrenaline and noradrenaline biosynthesis") SBGNview.obj <- SBGNview( = gse16873.d[,1:3], = "entrez", input.sbgn = input.pathways$, output.file = "quick.start", output.formats = c("png") ) print(SBGNview.obj) ``` Two image files (a svg file by default and a png file) will be created in the current working directory. <img src="inst/app/www/quick.start_P00001.svg"> As a unique and useful feature of SBGNview package, we can highlight nodes, edges and/or paths using the highlight functions. Please read the function documentation and main vignette for details. ```{r, echo = TRUE, eval = TRUE, results = 'hide', message = FALSE, warning = FALSE} outputFile(SBGNview.obj) <- "quick.start.highlights" SBGNview.obj + highlightArcs(class = "production",color = "red") + highlightArcs(class = "consumption",color = "blue") + highlightNodes(node.set = c("tyrosine", "(+-)-epinephrine"), stroke.width = 4, stroke.color = "green") + highlightPath(from.node = "tyrosine", to.node = "dopamine", from.node.color = "green", to.node.color = "blue", shortest.paths.cols = "purple", input.node.stroke.width = 6, path.node.stroke.width = 5, path.node.color = "purple", path.stroke.width = 5, tip.size = 10 ) ``` <img src="inst/app/www/quick.start.highlights_P00001.svg"> ## Additional information This tutorial is just a brief introduction and quick start. For more info, please check the package documentation and main vignettes. * [SBGNview main tutorial]( * [Pathway analysis workflow using SBGNview]( For more info on SBGN, please check the official [SBGN project website]( For any questions, please contact Kovidh Vegesna (kvegesna [AT] or Weijun Luo (luo_weijun [AT]