Literature DB >> 30467523

gganatogram: An R package for modular visualisation of anatograms and tissues based on ggplot2.

Jesper L V Maag1.   

Abstract

Displaying data onto anatomical structures is a convenient technique to quickly observe tissue related information. However, drawing tissues is a complex task that requires both expertise in anatomy and the arts. While web based applications exist for displaying gene expression on anatograms, other non-genetic disciplines lack similar tools. Moreover, web based tools often lack the modularity associated with packages in programming languages, such as R. Here I present gganatogram, an R package used to plot modular species anatograms based on a combination of the graphical grammar of ggplot2 and the publicly available anatograms from the Expression Atlas. This combination allows for quick and easy, modular, and reproducible generation of anatograms. Using only one command and a data frame with tissue name, group, colour, and value, this tool enables the user to visualise specific human and mouse tissues with desired colours, grouped by a variable, or displaying a desired value, such as gene-expression, pharmacokinetics, or bacterial load across selected tissues. I hope that this tool will be useful by the wider community in biological sciences. Community members are welcome to submit additional anatograms, which can be incorporated into the package. A stable version gganatogram has been deposited to neuroconductor, and a development version can be found on github/jespermaag/gganatogram.

Entities:  

Keywords:  Anatograms; Anatomy; Expression Atlas; Organs; R; Tissues; ggplot2

Mesh:

Year:  2018        PMID: 30467523      PMCID: PMC6208569          DOI: 10.12688/f1000research.16409.1

Source DB:  PubMed          Journal:  F1000Res        ISSN: 2046-1402


Introduction

Efficiently displaying tissue information in multicellular organisms can be a laborious and time consuming process. Often researchers want to showcase differences in values, such as gene expression or pharmacokinetics between tissues in one organism, or between similar tissues in different groups. Whereas bar charts and heatmaps provide an informative view of the differences between groups, it can be difficult to immediately observe the biological significance ( Figure 1a–b). As compared to an anatogram, where it is easy to quickly spot the differences between tissues or groups, and immediately provide biological context to these observations ( Figure 1c). This also has the added benefit that the audience, whether reading a paper or attending a lecture, will have to spend less time and effort to grasp the results.
Figure 1.

Comparison between barplot (top left), heatmap (top right), and anatogram (bottom) to display tissue values between groups.

The values in the graphs are the same.

Comparison between barplot (top left), heatmap (top right), and anatogram (bottom) to display tissue values between groups.

The values in the graphs are the same. Several online tools to display gene expression in different tissues already exist [1– 4]. Although these tools provide important information regarding gene expression in various tissues and organisms, other disciplines besides genetics are unable to utilise these applications due to the focus on genes. Moreover, these tools often only include a predefined set of experiments that can be visualised, leading to difficulties in presenting your own data. Other caveats with these tools are that it can be laborious to recreate the plot or automatically create plots from results. Here I present gganatogram, an open source R package based on ggplot2 [5] utilising 28 publicly available anatograms from the Expression Atlas [1, 2], and a cellular anatogram from The Protein Atlas [6]. With this package it is easy for any R user to quickly visualise anatograms with specified colours, groups, and values. Using the familiar grammar from ggplot2 [5], this program allows for modular anatograms to be generated.

Methods

Implementation

gganatogram is stored on neuroconductor [7], an open-source platform for rapid testing and dissemination of reproducible computational imaging software. A development version can be found on github/jespermaag/gganatogram, which allows for the community to post issues with the package, submit requests, or add anatograms by creating coordinate files. The development version can be installed from github: Briefly, to generate the main list objects that contain all tissue coordinates, I downloaded SVG files from the Expression Atlas ( SVG files present here [2]. (and processed them using a custom python script (available from GitHub). The script scraped through the SVG files to extract the name, coordinates, and SVG transformations. These were then post-processed in R to create the rda files that make up the tissue coordinates. For the cell, the SVG was downloaded from The Protein Atlas [6]. Here, I converted the relative coordinates in the SVG to absolute using Inkscape. I then processed the absolute coordinate SVG using python.

Operation

gganatogram requires an installation of R ≥3.0.0, ggplot2 [5] v.3.0.0 and ggpolypath [8] v.0.1.0. The program should be able to run on any computer with the system requirements for R. The online shiny version does not require an installation of R since it is run on the server side. Plots can be generated using a basic data.frame containing organ name, colour, type, or value, with the specified column names below. Organs are plotted one at a time based on the order of the data.frame. The tissue of each consecutive row will be layered on top of the previous. The gganatogram package provides 29 such data.frames containing all tissues available to plot, one for each human and mouse, divided by sex, one cell, and 24 other organisms ( Table 1).
Table 1.

Showing all the organisms in gganatogram, how to call their keys, and the number of features per organisms.

OrganismKeyNumber of features
1Human malehgMale_key68
2Human femalehgFemale_key70
3Mouse malemmMale_key45
4Mouse femalemmFemale_key47
5cellcell_key[["cell"]]24
6anolis_carolinensisother_key[["anolis_carolinensis"]]4
7arabidopsis_thalianaother_key[["arabidopsis_thaliana"]]4
8bos_taurusother_key[["bos_taurus"]]10
9brachypodium_distachyon.flower_partsother_key[["brachypodium_distachyon.flower_parts"]]5
10brachypodium_distachyon.whole_plantother_key[["brachypodium_distachyon.whole_plant"]]3
11gallus_gallusother_key[["gallus_gallus"]]8
12hordeum_vulgare.flower_partsother_key[["hordeum_vulgare.flower_parts"]]6
13hordeum_vulgare.whole_plantother_key[["hordeum_vulgare.whole_plant"]]5
14macaca_mulattaother_key[["macaca_mulatta"]]6
15monodelphis_domesticaother_key[["monodelphis_domestica"]]6
16oryza_sativa.flower_partsother_key[["oryza_sativa.flower_parts"]]5
17oryza_sativa.whole_plantother_key[["oryza_sativa.whole_plant"]]5
18papio_anubisother_key[["papio_anubis"]]15
19rattus_norvegicusother_key[["rattus_norvegicus"]]10
20solanum_lycopersicum.flower_partsother_key[["solanum_lycopersicum.flower_parts"]]7
21solanum_lycopersicum.whole_plantother_key[["solanum_lycopersicum.whole_plant"]]5
22sorghum_bicolor.flower_partsother_key[["sorghum_bicolor.flower_parts"]]7
23sorghum_bicolor.whole_plantother_key[["sorghum_bicolor.whole_plant"]]7
24tetraodon_nigroviridisother_key[["tetraodon_nigroviridis"]]4
25triticum_aestivum.flower_partsother_key[["triticum_aestivum.flower_parts"]]11
26triticum_aestivum.whole_plantother_key["triticum_aestivum.whole_plant"]]4
27xenopus_tropicalisother_key[["xenopus_tropicalis"]]5
28zea_mays.flower_partsother_key[["zea_mays.flower_parts"]]9
29zea_mays.whole_plantother_key[["zea_mays.whole_plant"]]7
These data frames have already specified colour, type, and an assigned random number to facilitate the start of plotting. The main function is called gganatogram(). By default, and without any arguments, it plots the outline of a male human with standard ggplot2 parameters. By adding just a few options, it is possible to quickly change to female, fill specified organs by selected colour, or fill the organs based on a value ( Figure 2).
Figure 2.

( A) Default plot generated by calling gganatogram(), ( B) adding female, plotting specified organs by ( C) colour, ( D) value.

( A) Default plot generated by calling gganatogram(), ( B) adding female, plotting specified organs by ( C) colour, ( D) value.

Use cases

This section provides additional plotting examples. To plot all tissues per organism, use the provided key files that exist per organism and sex. This displays all tissues in the order of each data frame. To change the order in which organs are layered on top of each other, reorder the data frame to have those tissues at the bottom ( Figure 3).
Figure 3.

Displaying all tissues available for human and mouse, male and female.

The colours are specified in the provided key data frames.

Displaying all tissues available for human and mouse, male and female.

The colours are specified in the provided key data frames. To compare anatograms, e.g. draw one specific anatogram side by side and compare values, a long table has to be created with the type column changed to the variables to compare. The following code recreates ( Figure 1c). To change the order of how organs are layered on top of each other, change the order of the data frame. The organs to plot on the top layer should be on the end of the data frame ( Figure 4).
Figure 4.

Changing the order of the data frame results in change in the layer of organs to plot.

Organs can also be separated by faceting, as per standard ggplot2 using facet_wrap ( Figure 5). This can help to display organs that are nested on top of each other. On the left, lungs and liver hides other plotted organs. This is corrected to the right in order to show the organs of interest.
Figure 5.

Faceting tissues based on type and displaying the corresponding colour.

The cell diagram will be useful for users to plot cellular sub-locations of proteins, mRNAs, or other molecules( Figure 6).
Figure 6.

Cell diagram to plot values at specific cellular sub-locations.

Because I elected to use ggplot2 [5] for the package, the user can add additional layers from standard plots. This can be useful to show highlight features, such as metastasis, location of tissue biopsies, or gene expression of specific biopsies ( Figure 7).
Figure 7.

Geom points added to a gganatogram to show the location of tissue biopsies (top left) along with a barplot of biopsy expression for an example gene (bottom).

Another option is to fill both tissues and points by value (top right). Red colour around plot added for emphasis.

Geom points added to a gganatogram to show the location of tissue biopsies (top left) along with a barplot of biopsy expression for an example gene (bottom).

Another option is to fill both tissues and points by value (top right). Red colour around plot added for emphasis. Other than human, mouse, and the cell diagram, gganatogram consists of 24 other organisms which can be called with the other_key ( Table 1). These consists of a mix of animals and plants. Unfortunately, these organisms are not as detailed which is apparent from the lower number of features to plot ( Table 1, Figure 8).
Figure 8.

All 24 other organisms present in gganatogram with all their tissues plotted.

Furthermore, gganantogram has an online shiny app which can be used without any R installation. This app let people can select organisms, colour palette, select tissues and adjust values for the tissues. This should allow for researchers without any experience in R to be able to use gganatogram. The online shiny app is located at https://jespermaag.shinyapps.io/gganatogram/. For R users, the app can easily be run locally with the following command: This command checks for all required packages and installs them if needed.

Summary

In summary, I have designed and implemented an R package to easily visualise anatograms based on ggplot2 [5] and the anatograms from Expression Atlas [2], which when combined create a powerful tool to plot and display tissue information. The one line command to generate these plots should allow for users with even limited R knowledge to create informative anatograms for publications or presentations. Link to version control repository containing the source code: http://neuroconductor.org:8080/package/gganatogram Link to development version: github/jespermaag/gganatogram Link to archived source code as at time of revision: https://zenodo.org/record/1477474 [9] Software license: GPL-2 Really nice update to the article! I have read this submission. I believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard. This article describes a new R package, which allows easy plotting of discrete and continuous measurements onto human and mouse anatomy. This is a really valuable R package contribution, as it fills a real void in the current infrastructure. I found the code examples in the manuscript intuitive and easy to run. It is great that the author adopts the popular ggplot2 grammar as well as a tidy data structures. Minor comments: Thank you for making all code (even for processing) publicly available. It would be useful to know how many tissues (and which) can be plotted using this package. An example of changing the order of the data frame to change the layering should be added. I encountered the following error when trying to install the package through neuroconductor: Error in latest_neuroc_release(release = "stable") : unused argument (release = "stable") I have read this submission. I believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard. The author describes an R package that displays discrete and continuous data onto anatomical structures. The structures are based on mouse and human anatograms from the Expression Atlas project and the grammar from ggplot2 R library. The code example was easy to run and the necessary input data was intuitive and simple. The author can increase its usage by providing a webtool (even one based on shiny) that takes as input a csv or tsv table with predefined columns. This would allow physicians and scientists with no background in bioinformatics to easily display their data. Also, it would be useful to create an anatogram for the human brain and one for the different compartments of a cell (nucleus, mitochondria, etc). I have read this submission. I believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard.
  5 in total

1.  Semantic Body Browser: graphical exploration of an organism and spatially resolved expression data visualization.

Authors:  Fritz Lekschas; Harald Stachelscheid; Stefanie Seltmann; Andreas Kurtz
Journal:  Bioinformatics       Date:  2014-10-24       Impact factor: 6.937

2.  Neuroconductor: an R platform for medical imaging analysis.

Authors:  John Muschelli; Adrian Gherman; Jean-Philippe Fortin; Brian Avants; Brandon Whitcher; Jonathan D Clayden; Brian S Caffo; Ciprian M Crainiceanu
Journal:  Biostatistics       Date:  2019-04-01       Impact factor: 5.899

3.  Expression Atlas update--an integrated database of gene and protein expression in humans, animals and plants.

Authors:  Robert Petryszak; Maria Keays; Y Amy Tang; Nuno A Fonseca; Elisabet Barrera; Tony Burdett; Anja Füllgrabe; Alfonso Muñoz-Pomer Fuentes; Simon Jupp; Satu Koskinen; Oliver Mannion; Laura Huerta; Karine Megy; Catherine Snow; Eleanor Williams; Mitra Barzine; Emma Hastings; Hendrik Weisser; James Wright; Pankaj Jaiswal; Wolfgang Huber; Jyoti Choudhary; Helen E Parkinson; Alvis Brazma
Journal:  Nucleic Acids Res       Date:  2015-10-19       Impact factor: 16.971

4.  Expression Atlas: gene and protein expression across multiple studies and organisms.

Authors:  Irene Papatheodorou; Nuno A Fonseca; Maria Keays; Y Amy Tang; Elisabet Barrera; Wojciech Bazant; Melissa Burke; Anja Füllgrabe; Alfonso Muñoz-Pomer Fuentes; Nancy George; Laura Huerta; Satu Koskinen; Suhaib Mohammed; Matthew Geniza; Justin Preece; Pankaj Jaiswal; Andrew F Jarnuczak; Wolfgang Huber; Oliver Stegle; Juan Antonio Vizcaino; Alvis Brazma; Robert Petryszak
Journal:  Nucleic Acids Res       Date:  2018-01-04       Impact factor: 16.971

5.  TISSUES 2.0: an integrative web resource on mammalian tissue expression.

Authors:  Oana Palasca; Alberto Santos; Christian Stolte; Jan Gorodkin; Lars Juhl Jensen
Journal:  Database (Oxford)       Date:  2018-01-01       Impact factor: 3.451

  5 in total
  52 in total

1.  Identification of hub genes related to the progression of type 1 diabetes by computational analysis.

Authors:  G Prashanth; Basavaraj Vastrad; Anandkumar Tengli; Chanabasayya Vastrad; Iranna Kotturshetti
Journal:  BMC Endocr Disord       Date:  2021-04-07       Impact factor: 2.763

2.  Eukaryotic Extension Factor 2 Kinase may Affect the Occurrence and Development of Glioblastoma Through Immune Cell Infiltration.

Authors:  Lilan Cen; Qian Gu; Xinhong Zhou; Haishan Lu; Qian Yang
Journal:  Neurochem Res       Date:  2022-07-18       Impact factor: 4.414

3.  A novel ferroptosis-related gene signature to predict overall survival in patients with osteosarcoma.

Authors:  Junqing Li; Feiran Wu; Xing Xiao; Li Su; Xinjun Guo; Jie Yao; Huimin Zhu
Journal:  Am J Transl Res       Date:  2022-09-15       Impact factor: 3.940

4.  TMED2/9/10 Serve as Biomarkers for Poor Prognosis in Head and Neck Squamous Carcinoma.

Authors:  Wen Gao; Zhe-Wen Zhang; Hong-Yi Wang; Xin-Di Li; Wei-Ting Peng; Hao-Yu Guan; Yu-Xuan Liao; An Liu
Journal:  Front Genet       Date:  2022-06-08       Impact factor: 4.772

5.  Association of Pathogenic Variants in Hereditary Cancer Genes With Multiple Diseases.

Authors:  Chenjie Zeng; Lisa A Bastarache; Ran Tao; Eric Venner; Scott Hebbring; Justin D Andujar; Sarah T Bland; David R Crosslin; Siddharth Pratap; Ayorinde Cooley; Jennifer A Pacheco; Kurt D Christensen; Emma Perez; Carrie L Blout Zawatsky; Leora Witkowski; Hana Zouk; Chunhua Weng; Kathleen A Leppig; Patrick M A Sleiman; Hakon Hakonarson; Marc S Williams; Yuan Luo; Gail P Jarvik; Robert C Green; Wendy K Chung; Ali G Gharavi; Niall J Lennon; Heidi L Rehm; Richard A Gibbs; Josh F Peterson; Dan M Roden; Georgia L Wiesner; Joshua C Denny
Journal:  JAMA Oncol       Date:  2022-06-01       Impact factor: 33.006

6.  Genetic mapping of etiologic brain cell types for obesity.

Authors:  Pascal N Timshel; Jonatan J Thompson; Tune H Pers
Journal:  Elife       Date:  2020-09-21       Impact factor: 8.140

7.  An immune-related gene signature for determining Ewing sarcoma prognosis based on machine learning.

Authors:  En-Hui Ren; Ya-Jun Deng; Wen-Hua Yuan; Zuo-Long Wu; Guang-Zhi Zhang; Qi-Qi Xie
Journal:  J Cancer Res Clin Oncol       Date:  2020-09-23       Impact factor: 4.553

8.  Identification of G-protein signaling modulator 2 as a diagnostic and prognostic biomarker of pancreatic adenocarcinoma: an exploration of its regulatory mechanisms.

Authors:  Xintong Zhou; Shengchun Dang; Huaji Jiang; Min Gu
Journal:  J Gastrointest Oncol       Date:  2021-06

9.  The FLI portion of EWS/FLI contributes a transcriptional regulatory function that is distinct and separable from its DNA-binding function in Ewing sarcoma.

Authors:  Megann A Boone; Cenny Taslim; Jesse C Crow; Julia Selich-Anderson; Andrea K Byrum; Iftekhar A Showpnil; Benjamin D Sunkel; Meng Wang; Benjamin Z Stanton; Emily R Theisen; Stephen L Lessnick
Journal:  Oncogene       Date:  2021-06-18       Impact factor: 9.867

10.  Photon Versus Proton Beam Therapy for T1-3 Squamous Cell Carcinoma of the Thoracic Esophagus Without Lymph Node Metastasis.

Authors:  Yang-Gun Suh; Unurjargal Bayasgalan; Heung Tae Kim; Jong Mog Lee; Moon Soo Kim; Youngjoo Lee; Doo Yeul Lee; Sung Uk Lee; Tae Hyun Kim; Sung Ho Moon
Journal:  Front Oncol       Date:  2021-06-21       Impact factor: 6.244

View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.