Abstract
Functional enrichment analysis is an analytical method to extract biological insights from gene expression data, popularized by the ever-growing application of high-throughput techniques. Typically, expression profiles are generated for hundreds to thousands of genes/proteins from samples belonging to two experimental groups, and after ad-hoc statistical tests, researchers are left with lists of statistically significant entities, possibly lacking any unifying biological theme. Functional enrichment tackles the problem of putting overall gene expression changes into a broader biological context, based on pre-existing knowledge bases of reference: database collections of known expression regulation, relationships and molecular interactions. STRING is among the most popular tools, providing both protein–protein interaction networks and functional enrichment analysis for any given set of identifiers. For complex experimental designs, manually retrieving, interpreting, analyzing and abridging functional enrichment results is a daunting task, usually performed by hand by the average wet-biology researcher. We have developed reString, a cross-platform software that seamlessly retrieves from STRING functional enrichments from multiple user-supplied gene sets, with just a few clicks, without any need for specific bioinformatics skills. Further, it aggregates all findings into human-readable table summaries, with built-in features to easily produce user-customizable publication-grade clustermaps and bubble plots. Herein, we outline a complete reString protocol, showcasing its features on a real use-case.
Similar content being viewed by others
Introduction
In the recent years, -omics techniques—which allow the analysis of samples “as a whole”, including genomics and epigenomics, transcriptomics, proteomics, metabolomics and lipidomics—have rapidly transitioned from niche commodities to widespread tools1. Array- or next generation sequencing-based methods allow for the simultaneous analysis of the expression profile of tens of thousands of genes2, and mass-spec based methods can quantitatively resolve hundreds of different proteins within a sample3,4.
In a typical experimental workflow, the abundance of mRNA transcripts or proteins are obtained for hundreds to thousands of analytes at the same time, and their increased or decreased abundance with respect to a reference experimental group is evaluated with ad-hoc statistical tools. The analytes that survive the false discovery rate (FDR) threshold face researchers with the challenge of extracting biologically relevant information from them.
Usually, genes with the most extreme fold change between experimental groups (likely mirrored by lower FDR) are investigated to a deeper level in search of a biological mechanism, yet often the vast majority of leftover genes are so numerous, showing only moderated fold changes, that the challenge of extracting more information requires more advanced tools. Noteworthily, a meager ~ 20% difference in the expression levels of genes all members of the same pathway may hold more clues than a 20-fold change in the expression of a single gene5.
To put all the changes in the abundance of analytes into a wider biological context, these are arranged into sets on the basis of pre-existing knowledge about their biological function, including—but not limited to—functional properties, known interactions, shared regulation, phenotype associations and molecular products. An incredible variety of different methods has been generated to analyze these sets as a whole6. Further, there is a broad choice of knowledge bases, including the famed Kyoto Encyclopedia of Genes and Genomes (KEGG)7,8,9,10, Gene Ontology (GO) terms11 and Reactome pathways12. By tapping these knowledge bases, functional enrichment analysis can really extract biological insights from -omics data, in their literal meaning of “as a whole”.
Many websites offer friendly frontends to provide users with the possibility of upload custom lists of identifiers and retrieve functional enrichment info, such as DAVID13,14 (https://david.ncifcrf.gov/), Enrichr15,16 (https://maayanlab.cloud/Enrichr/), WebGIVI17 (http://raven.anr.udel.edu/webgivi/), g:Profiler18 (https://biit.cs.ut.ee/gprofiler/gost) and STRING19 (https://string-db.org/). While this approach might be handy for a few searches, this manual approach rapidly becomes extensively tiring and time-consuming. While it is possible to automatize the process by interacting with most of these services via custom APIs (application programming interface), this approach is viable only to those researchers with specific bioinformatics skills.
We have developed reString, a software that leverages STRING APIs to automatically perform functional enrichment analysis on multiple user-provided gene/protein lists, rendering the handling of even the most complicate experimental layout a lightweight task. One key feature of reString is the ability of aggregating the results from functional enrichment of different experimental comparisons, and produce human-readable summaries that can be furthermore tailored to the user’s needs, visualized and saved as publication-grade clustermaps and bubble plots. reString is cross-platform and all its features can be easily accessed via a graphical user interface (GUI).
Herein, we outline reString features by outlining a detailed step-by-step protocol that can be easily practiced with included sample files. Further, we process differentially expressed gene lists from an own, real-world dataset to further showcase the reString application.
Materials and methods
Software
Data was processed with SciPy (version 1.3.1)20, Numpy (version 1.15.4)21, and Pandas (version 0.23.4)22. Tabular data images were made with LibreOffice’s Calc (https://www.libreoffice.org/). Data visualization was performed with matplotlib (version 3.0.2)23 and seaborn (version 0.9.0)24 libraries for the Python programming language. reString can be automatically installed via pip, the Python package installer (as detailed in “Procedure”), downloaded from GitHub (https://github.com/Stemanz/restring) or from the Python package Index, PyPI (https://pypi.org/project/restring/).
Software setup
reString is a Python program that needs a working Python 3.6 + environment. In its GUI form it leverages tkinter25, the Python binding to the Tk GUI toolkit, which is included in most distributions. reString will work out of the box (when installed via pip, see below) within a standard Python installation that can be obtained at https://www.python.org/ for Windows, macOS, GNU/linux distributions and other platforms.
Statistical and analyses
Statistical analyses are detailed for each individual analysis in the appropriate figure or table caption, and were performed with GraphPad Prism software version 9.1.1 (223).
Procedure
The following protocol illustrates how to prepare an environment to use reString, as well as how to analyze sample RNAseq results. An active internet connection is required to download software and data. Further detailed and up-to-date information on additional features of reString can be found at the project’s repository (https://github.com/Stemanz/restring).
Procedure–installation
The following describes a general protocol to set up Python 3.x in the system as well as to install reString.
For a more specific protocol, please refer to the online documentation or Supplementary Materials and Methods at “Installation in depth” to watch YouTube videos with step-by-step instructions tailored for Windows 10, Ubuntu GNU/linux, Raspberry Pi OS and Mac OS fresh installs, or search YouTube for “How to install reString in” followed by your OS name. A following section, “Installation troubleshooting”, will cover and provide solutions to most common hiccups that might happen during the installation.
Some commands need to be executed from the UNIX shell (the Terminal app) and are prefixed by the “$” symbol, which shall not be inputted with the commands. The same commands can be inputted in the Windows Command Prompt (Users would see a “>” symbol at the end instead of a “$” symbol).
-
1.
Download and install Python. Head over to https://www.python.org/downloads/ and get the latest Python release for your operating system. Windows users can also install Python through the Microsoft store. Please note that Python might already be installed in your system; check whether this is the case and also whether its version is 3.8 or greater (open a terminal—see below—and type ‘python --version’; inspect the output. Windows users should alternatively search for Python in the Start Menu, or type ‘py’ in a terminal). Install the software by following on screen instructions.
An alternative easy way to obtain an up-to-date Python distribution, packed with pre-installed scientific libraries, is installing the free and open source Individual Edition of Anaconda, available for Windows, Linux and Mac (https://www.anaconda.com/), as outlined here26.
-
1.a
Optional for GNU/linux: While all libraries needed by reString are included by default (or being installed) in MacOS and Windows, GNU/Linux distros vary greatly in this respect.We can assume that the average GNU/Linux user will be able to address any installation/dependency issue that may incur. A few tips: many distros may bundle both Python 2.x and 3.x: in this case, python3 and pip3 should be used instead of python and pip commands. Additionally, not all Debian-based distro include tkinter, a library which reString rely upon. This can be fixed with this terminal command (please otherwise refer to updated or specific distros documentation for any issue):
-
$ sudo apt-get install python3-tk
-
-
2.
Open a terminal. On macOS, this is done by running the Terminal app from the Utilities (to access Utilities, from Finder ⌘ + ⇧ + U, or Go > Utilities). On Windows, bring up the Start menu and type ‘cmd’ in the search field, then run it.
-
3.
Install reString. reString and its dependencies can be automatically installed from the command line. Type:
-
$ pip install restring
-
-
3.a
Optional troubleshooting for Windows: it is possible that after the installation the system does not know where to find pip, the Python package manager. Should this occur, locate the folder containing it by typing in a terminal:
-
> cd\
> dir pip.exe /a /s
The folder containing it (for example: C:\Users\username\AppData\Local\Programs\Python39\Scripts) needs to be added to the environment PATH variable. Start typing “environment variables” in the Windows search box, and click on “Edit the system environment variables”. Open a dialog by clicking on “Environment variables”, then double-click on PATH. Add the folder to the list, OK and exit. Close and reopen the terminal.
-
-
4.
Run reString. The installation takes care of creating a script that automatically runs the graphical user interface (GUI), that can be invoked directly from the terminal:
-
$ restring-gui
reString should launch and the User should see the program’s main window (Supplementary Fig. S1). Steps 1 and 3 will not be needed anymore to run reString.
If the program fails to start (this might happen on some GNU/linux systems and Windows), alternatively type:
-
$ python -c "import restring; restring.restring_gui()"
Please note that on some Windows setups the antivirus might scan restring-gui.exe for threats. This is normal and should not take longer than a few seconds. Also on Windows, if the system fonts are scaled to 125% or above, reString fonts might be displayed too large. Reduce system fonts scaling to 100% to solve the issue.
Update reString. To periodically ensure that reString is up to date, type in the terminal:
-
$ pip install restring --upgrade
-
Procedure–analysis
The protocol is illustrated through an example experiment which makes use of sample files, that Users can analyze to familiarize themselves with the file format accepted by reString. Ideally, each file should have a name that serves as the label for the experimental condition. The file structure is detailed in Supplementary Fig. S2.
-
1.
Download sample files: in the program’s main app, choose “File > Download sample data”. Alternatively, download them from https://github.com/Stemanz/restring/raw/main/data/restring_sample_tables.zip.
-
2.
Prep sample files: After downloading sample data (the file is called restring_sample_tables.zip and is found in the default browser’s download folder, usually Downloads), unzip the folder and copy it over to any desired location. In our example, we will be using the home directory (on the Mac, Finder > Go > Home, or ⌘ + ⇧ + H).
-
3.
Create the output folder. Create a folder of choice to store the results. In this example, we will create the folder output within the sample data folder.
-
4.
Choose the input files. Tell reString what input files to process, choose “File > Open...” or click “Open files..”. The file choosing dialog will open (Supplementary Fig. S3). Select all of them and click “Open”. For each file successfully opened, reString prints a message on the textual output frame (Supplementary Fig. S4). The frame is scrollable so that Users can always inspect each step of the analysis. When working with your files, put all input files you want to process together, in one or more analyses, in the same folder. Input files can be individually selected from any one folder, but each time input files are added, the input files list is reset.
-
5.
Choose the output folder. Choose a previously created folder to store the analysis results. Choose “File > Set output folder” or click “Set folder” to open the dialog (Supplementary Fig. S5).
-
6.
Run the analysis with defaults settings. Choose “Analysis > New analysis” or click the “New analysis” button to start retrieving and aggregating results automatically. Please note that the computer must be connected to the internet. Refer to “Procedure–analysis parameters” to learn about all settings.
reString will automatically retrieve from String functional enrichment information for statistically significant terms from KEGG Pathways, Gene Ontology (Biological Processes, Molecular Function and Cellular Component), and Reactome Pathways knowledge bases. These will be stored in a subfolder of the output folder with the same name as the input file and are equivalent to those that Users can manually download from STRING (Supplementary Fig. S6). Depending which genes were selected in the analysis, file names are prepended with “UP_”, “DOWN_” or “ALL_” (upregulated, downregulated and all genes simultaneously, see “Procedure–analysis parameters”). reString details all steps it takes to retrieve functional enrichment analysis information automatically from STRING (Supplementary Fig. S7). reString will then aggregate retrieved results (Supplementary Fig. S8) and, for each functional enrichment searched (KEGG, Function, Component, Process and RCTM), produce two tables that contain the abridged version of the whole analysis: results and summary (Fig. 1).
Procedure–analysis parameters
The retrieval of functional enrichment information and the following aggregation is performed by reString with default settings, that can be adjusted.
Species
reString defaults to Mus musculus, but a different species can be selected: “Analysis > Set species” will open the species selection dialog (Supplementary Fig. S9). For species that are not listed, a taxonomy identifier can be manually set.
Upregulated and/or downregulated genes
reString knows from the input files whether genes/proteins are up- or downregulated in any given comparison between two conditions (Supplementary Figs. S2 and S10). This allows four types of different analyses to be selected via “Analysis > DE genes settings”: (i) “Upregulated genes only”: Functional enrichment info is searched for upregulated genes only; (ii) “Downregulated genes only”: Functional enrichment info is searched for downregulated genes only; (iii) “Upregulated and Downregulated, separately”: This is the default option. For every comparison, both upregulated and downregulated genes are considered, but separately. This means that functional enrichment info is retrieved for upregulated and downregulated genes separately, but the terms are aggregated from both. If a term shows up in both UP and DOWN gene lists, then the lowest P-value is recorded; (iv) “All genes together”: Functional enrichment info is searched for all genes together, and the resulting aggregation will reflect the functional enrichment analysis retrieved with all genes combined.
STRING API version
reString defaults to using the latest STRING version. To maintain compatibility with previous versions, it is possible to choose a specific version via “Analysis > Choose STRING version”.
Setting a statistical background
The enrichment analysis on the input is performed by STRING, which will list any term observed more frequently than expected against a background19. This defaults to the entire genome of the selected organism, but it can otherwise be set to a user-specified list of identifiers. A headerless, one-column table or plain textfile with one identifier per line can be set via “Analysis > Custom background”. To clear the custom background and revert to the default setting, “Analysis > Clear custom background”.
Procedure–data visualization
reString integrates a flexible data visualization tool that aids Researchers to visualize the aggregated results and produce publication-quality heatmaps and clustermaps with a few clicks. The window can be opened via “Analysis > Draw clustermap” (Supplementary Fig. S11), and it is intended to work with reString results-type tables (Fig. 1). The tool produces customizable heatmaps or clustermaps for each enriched term across selected experimental conditions.
Another built-in tool has been designed to work with reString summary-type tables (Fig. 1), accessed through “Analysis > Draw bubble plot” (Supplementary Fig. S12). This produces a bubble plot, where for all enriched terms three stats are graphically displayed: the number of all genes annotated for that term in all experimental conditions (x axis), the number of common genes across all experimental conditions (bubble size) and the lower FDR score of the term in all experimental condition (color).
Detailed information on each tool and option can be found in the Supplementary Materials and Methods or in the online documentation (https://github.com/Stemanz/restring/blob/main/README.md).
Animals and experimental procedures
Procedures involving animals and their care were conducted in accordance with institutional guidelines, in compliance with national (D.L. No. 26, March 4, 2014, G.U. No. 61 March 14, 2014), international (EEC Council Directive 2010/63, September 22, 2010: Guide for the Care and Use of Laboratory Animals, United States National Research Council, 2011) laws and policies and the ARRIVE guidelines27. The experimental protocol was approved by the Italian Ministry of Health (Protocollo 2012/4).
Apoe knockout (EKO) mice (https://www.jax.org/strain/002052) in the C57BL/6J background were purchased from Charles River Laboratories (Calco, Italy); double Apoe and Apoa1 knockouts (DKO) were generated as previously described28,29.
Eight weeks old male mice were randomly divided, genotype-wise, into 8 groups and fed either a normal laboratory diet (NLD, 4RF21, Mucedola, Italy) or a Western-type diet (WD, TD.88137, Envigo, Italy) for 6 or 22 weeks, and sacrificed as described30. Briefly, mice were euthanized by exsanguination under general anesthesia with 2% isoflurane (Merial Animal Health, Woking, UK), where blood was removed by perfusion with 1 × PBS. Aortas were then snap-frozen in liquid nitrogen for RNA-seq analyses (n = 3) or longitudinally opened, pinned flat on a black wax surface in ice-cold PBS and photographed unstained for en face analysis (n = 6–7)30,31,32,33,34,35,36.
RNA extraction
Total RNA was isolated from mouse aorta and extracted as previously described36. RNA was quantified and purity was checked, and 1 μg RNA was retrotranscribed to cDNA, as described37. Possible gDNA contamination was ruled out by running a PCR on 20 ng of cDNA/RNA with a primer pair producing two amplicons of different size on cDNA (193 bp) and gDNA (677 bp), see Supplementary Table S1 and Supplementary Fig. S13.
Quantitative PCR
Twenty ng of cDNA were used as template for each qPCR reaction, performed on a CFX Connect thermal cycler with iTAQ Universal Sybr Green Supermix (Bio-Rad, Segrate, Italy). Conditions and primers are detailed in Supplementary Table S1. A final melting curve analysis was always performed. Fold changes relative to the control group were calculated with the ΔΔCt method38. The gene cyclophilin A (Ppia) was used as reference gene39.
RNA-seq analyses
The quality of the mRNA was tested using the Agilent 2100 Bioanalyzer (Agilent Technologies, Santa Clara, CA, USA) prior to RNAseq; samples with RIN < 7.0 were discarded. RNA samples were processed using the RNA-Seq Sample Prep kit from Illumina (Illumina, Inc., CA, USA). Clusters of tagged libraries (8–9 per single Illumina flowcell, created using the Illumina Cluster Station) were sequenced on a Genome Analyzer IIx (Illumina, Inc., CA, USA) to produce 50 nt-long, unpaired reads. Reads were mapped on the UCSC genome assembly mm10 (reference strain C57BL6/J) using the classic tuxedo suite bowtie and tophat programs40. Estimation of gene expression levels was performed using cufflinks40. Genes with an adjusted P value lower than 0.05 were considered differentially expressed (DE). All data and materials have been made publicly available at NCBI GEO. Data sets can be accessed at (https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE173974).
Data processing and visualization
Gene ontology analyses were performed with reString by querying STRING41 as thoroughly described in this manuscript; and terms with adjusted P-values lower than 0.05 were considered significant. Principal Component Analysis was performed with Scikit-learn42. Data visualization was performed with reString, as well as SciPy43, matplotlib23 and seaborn24 libraries for the Python programming language.
Results and discussion
We have developed reString as a tool to help Researchers without prior bioinformatics knowledge tackle the issue of retrieving, analyzing, and summarizing functional enrichment results from complex experimental layouts.
A typical, moderately sized experimental layout is shown in Fig. 2. Therein, three different sample types (in our example, identified with different colors: red, blue and green) are subjected to two different treatments, whose impact is assayed at two different time points by RNAseq. This translates to 12 different comparisons, if the focus of the experiment is prioritizing the differences among the genotypes, as schematized in Fig. 3. The task of manually retrieving, inspecting and analyzing functional enrichment results from all these analyses looks daunting, yet that is how it is managed in a sizeable number of research groups.
reString was designed to work with input tables that are only required to contain the desired genes and the fold change information of each gene (Supplementary Fig. S2). To obtain a list of genes or proteins to work with, a conventional approach is filtering the full list of entries, that can comprise hundreds to thousands of identifiers, by means of P-value, false discovery rate or desired fold change threshold. RNAseq or proteomics services provide tabular data that contain this information which can be easily handled by simple spreadsheets, such as Microsoft Office’s Excel or LibreOffice’s Calc.
With reString, retrieving functional enrichment data and producing summaries from the 12 sample data tables takes no longer than ~ 5 min. With a few further clicks, results can be visualized and saved as clustermaps and bubble plots.
reString leverages STRING APIs to automatically retrieve functional enrichment information from KEGG7, GO11 (Biological Processes, Molecular Function, Cellular Component), and Reactome12 pathways knowledge bases. For each User-supplied file, reString (depending on the analysis settings) either splits the gene list into up- or downregulated genes, or takes all genes, and queries the remote server retrieving functional annotation information, if the gene lists contain sufficient elements to produce statistically significant results. The five knowledge bases considered produce tab-delimited text files that are each saved in a folder bearing the same name of the input file from which it was generated, and are available to the Researcher for further inspection. These files are analogous to the ones that would be downloaded by hand from the STRING website (Supplementary Fig. S6). File names are prepended by reString with either “UP_, “DOWN_” or “ALL_” as a way to identify whether they were produced with upregulated, downregulated or all genes of each input file, respectively. After fetching functional enrichment data, for each knowledge base (internally referred to as kind within the application code and documentation), reString produces two types of abridged summaries by aggregating information from files of all comparisons (Fig. 1). The whole procedure is summarized in Fig. 4.
Summary-type tables contain, for each term (the nature of the term depends on the type of knowledge base queried, for instance KEGG pathways or Reactome pathways), the lower P-value score ever observed across all comparisons, the number of comparisons where the term has been found enriched in a statistically significant way (indicated with “occurrence” in the table), a list of unique identifiers gathered from all comparisons (“all_genes” column), and a list of identifiers that is shared between all comparisons where the term is statistically significant (“common_genes” column). In the case there are no shared genes, even though the term is found across multiple comparisons, reString marks the condition as “No common gene”. Conversely, if the term shows up in only one comparison, reString marks the condition as “n/a: just one condition”, and the gene identifiers of that one condition can be found under “all_genes” (Fig. 1A). This summary is useful to rapidly identify the strongest (by statistical significance) terms with respect to all comparisons simultaneously—or a subset thereof, as well as to readily identify the underlying genes.
Results-type tables contain, for each term, the genes that were found common among all comparisons, as well as the corresponding FDR-value of that term in every comparison (one column per comparison, Fig. 1B). In the case a comparison failed to enrich in a statistically significant way for the term being considered, a P value of 1 is assigned by default. In case the aggregation is set to consider upregulated and downregulated genes separately (see “Procedure–analysis parameters” in Materials and methods), in the unlikely case the term is enriched in both, the lowest P-value is taken into account. This summary is especially useful to map the distribution of the statistical significance of each term across all comparisons, and to present this result graphically with the reString built-in clustermap drawing tool (Supplementary Fig. S11).
An example of a clustermap drawn from aggregated results of Reactome pathways from sample data is shown in Fig. 5. In addition to rapidly conveying the message of which terms are enriched in a particular comparison, with respect to the entirety of experimental conditions, the way reString organizes the functional enrichment files makes it easy to retrieve which genes are contained in a clustermap block. For instance, to investigate the genes related to Immune System term in the Reactome Pathways, it is sufficient to open the corresponding folder of the desired experimental condition (for instance, treatment_t1_red_VS_treatment_t1_blue_FC), and pick the corresponding RCTM tables (Supplementary Fig. S14). Furthermore, if the analysis was run with up- and downregulated genes separately (as per default), it is easy to determine what list the term is contained in.
An example of a bubble plot drawn from aggregated results of KEGG pathways is shown in Fig. 6. This kind of visualization helps identifying, at a glance, the terms that contain the highest number of enriched genes, the number of shared genes across considered experimental conditions and the corresponding FDR. This tool, smoothly integrating with the clustermap tool, helps providing a clearclut graphical visualization of relevant information of common elements of the functional enrichment of a large number of experimental conditions.
The software tool described in the present manuscript has already been employed previously30. To further demonstrate the usefulness of reString in the handling of functional enrichment results from complex experimental layouts in just a few clicks, we used it to process RNAseq data generated in our laboratory. To this aim, we performed RNAseq on mouse aortas of two different mouse strains, knockout for Apoe (EKO), the gene encoding for apolipoprotein E, and double knockout for Apoe and Apoa1, the gene encoding for apolipoprotein A-I (DKO). Both genotypes are severely dyslipidemic (EKO mice are strongly hyperlipidemic, DKO almost completely lack high-density lipoproteins) and are prone to atherosclerosis development. For each mouse line, the experimental plan envisaged two different time points, and two different dietary treatments, a standard laboratory diet (NLD), extremely low in dietary fats and without cholesterol, or a Western-type diet, enriched in fats and cholesterol (WD—Supplementary Fig. S15).
Atherosclerosis development was evaluated in the whole aorta. After 6 weeks on NLD, no atherosclerotic plaques were visible in any genotype, whereas on WD both EKO and DKO mice showed initial atherosclerosis development. A comparable plaque development was observed in mice of both genotypes even after 22 weeks at NLD. Twenty-two weeks on WD worsened atherosclerotic plaques, dramatically increasing lesion size in both DKO and EKO mice (Fig. 7 and Supplementary Fig. S16).
After the necessary bioinformatic analyses (reads QC, trimming, mapping, transcript abundance estimation, etc.), we produced reString-compliant lists of DE genes for twelve comparisons. As an example, aggregated results for KEGG Pathways are shown in Fig. 8. Transcript abundance estimation was validated by quantitative polymerase chain reaction on 6 randomly picked genes and was found to closely match RNA-seq results (Supplementary Fig. S17).
Although there was a comparable plaque development in the two genotypes, the transcriptome analysis revealed different gene expression signatures.
The comparison between genotypes (Fig. 8A–D), in accordance with the absence of plaque development after 6 weeks on NLD, did not reveal significantly enriched pathways between EKO and DKO (Fig. 8A), and showed the greatest differences after 22 weeks of dietary treatments (Fig. 8C,D). The comparison between diets (Fig. 8E–H) clearly showed that DKO had a more pronounced response to dietary treatment after 6 weeks (Fig. 8F), whereas EKO had a massive increase in enriched pathways after 22 weeks on WD (Fig. 8G).
The intra-genotype comparison between time points (Fig. 8I–L) strikingly shows how, albeit with different contributions of the different dietary treatments, there are profound changes in the gene expression profile that are still ongoing in EKO in the transition between 6 and 22 weeks (Fig. 8I,K) that are mostly absent in DKO (Fig. 8J,L). We hypothesize that DKO mice might reach a transcriptional steady state earlier than EKO.
By scrutinizing reString aggregated results (Supplemental Data Sets) we could readily observe interesting trends in some of the pathways that were modulated across all experimental conditions:
Hematopoietic cell lineage (mmu04640). The aggregated results showed that the “Hematopoietic cell lineage” was the most influenced pathway, the expression level of its constituent genes being impacted in 8 out of 12 experimental conditions. Compared to DKO, EKO had this pathway enriched at the longest time point, regardless of the diet administered. In EKO, WD administration and the passing of time synergistically enriched this pathway. Conversely, in DKO, WD only increased the expression of these genes mainly after 6 weeks.
Lysosome (mmu04142) and Phagosome (mmu04145). These pathways were also among the ones mostly affected, being significantly enriched in 6 comparisons. EKO fed WD for the longest time had the highest enrichment of the Lysosome pathway, compared to DKO. Yet, six weeks at WD were already sufficient to change the expression of these genes in both genotypes, although only in EKO the passing of time further enriched it.
Similarly, EKO fed WD for the longest time showed the highest enrichment of the Phagosome pathway, compared to DKO (Fig. 8D). In the diet comparisons, DKO had this pathway enriched at both time points (Fig. 8F,H)—only at the latest for EKO (Fig. 8G); in the time point comparisons, this pathway was enriched only in EKO in both dietary treatments (Fig. 8I,K), with the highest enrichment at WD.
PPAR signaling pathway (mmu03320) and Fatty acid metabolism (mmu01212). These pathways were enriched in 5 out of 12 comparisons and showed no difference between the two genotypes, when fed the same diet for the same time.
The most striking visual impact of the reString output heatmap is the block containing Metabolic pathways (mmu 01100), Oxidative phosphorylation (mmu 00190) and Thermogenesis (mmu 04714) in the time comparison. At NLD, the enrichment of those pathways in EKO is paramount (Fig. 8I). These pathways are also enriched at WD (Fig. 8K), but their enrichment is lower than at NLD, suggesting that the feeding at WD initiates earlier to modulate the expression of the genes annotated in those pathways, and that the transcriptional equilibrium that is reached at 22 weeks at WD is more similar to the one already established at 6 weeks at WD, than what happens at NLD at later stages. Interestingly, no such thing happens in DKO mice. This finding is further supported by the “immune-metabolic” block of pathways enriched at 22 weeks in EKO in the diet comparison (Fig. 8G), but again not in DKO (Fig. 8H).
In conclusion, we developed reString, a cross-platform software with a graphical user interface, written in Python, to enable all Researchers—especially including those without specific bioinformatics skills—the possibility of broadening the exploration of their RNAseq or high-throughput proteomics datasets, effortlessly automating a series of tasks that would be otherwise daunting if performed by hand. Furthermore, reString is actively maintained. While the tool is feature-complete, we plan to expand its features with new styling/charting options, broaden its support to STRING APIs—especially focusing on the Users’ feedback—and releasing bugfixes. Users can give feedback for troubles they may experience (“Help > Give feedback/Report an Issue” or “Help > Report a Bug”), or actively steer the app’s development by requesting new features (“Help > “Request a new feature”). We will also ensure compatibility with future STRING API versions. Last, reString is an open-source project and anyone with the adequate skill is welcome to peek into, exploit, contribute to and fork the project in order to expand and adapt it.
We detailed and showcased a full reString workflow by using sample data, and further demonstrated its applicability with a new RNAseq dataset.
Data availability
The datasets generated and analysed during the current study are available in the Ncbi GEO repository, and can be accessed at: https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?&acc=GSE173974.
References
Fröhlich, E. Role of omics techniques in the toxicity testing of nanoparticles. J. Nanobiotechnology 15, 84 (2017).
Levy, S. E. & Myers, R. M. Advancements in next-generation sequencing. Annu. Rev. Genomics Hum. Genet. 17, 95–115 (2016).
Jylhä, A. et al. Comparison of iTRAQ and SWATH in a clinical study with multiple time points. Clin. Proteomics 15, 24 (2018).
Ong, S.-E. et al. Stable isotope labeling by amino acids in cell culture, SILAC, as a simple and accurate approach to expression proteomics. Mol. Cell. Proteomics 1, 376–386 (2002).
Subramanian, A. et al. Gene set enrichment analysis: A knowledge-based approach for interpreting genome-wide expression profiles. Proc. Natl. Acad. Sci. 102, 15545–15550 (2005).
Mathur, R., Rotroff, D., Ma, J., Shojaie, A. & Motsinger-Reif, A. Gene set analysis methods: A systematic comparison. BioData Min. 11, 8 (2018).
Kanehisa, M. et al. Data, information, knowledge and principle: Back to metabolism in KEGG. Nucleic Acids Res. 42, D199–D205 (2014).
Kanehisa, M. & Goto, S. KEGG: kyoto encyclopedia of genes and genomes. Nucleic Acids Res. 28, 27–30 (2000).
Kanehisa, M. Toward understanding the origin and evolution of cellular organisms. Protein Sci. 28, 1947–1951 (2019).
Kanehisa, M., Furumichi, M., Sato, Y., Ishiguro-Watanabe, M. & Tanabe, M. KEGG: integrating viruses and cellular organisms. Nucleic Acids Res. 49, D545–D551 (2021).
Ashburner, M. et al. Gene Ontology: Tool for the unification of biology. Nat. Genet. 25, 25–29 (2000).
Jassal, B. et al. The reactome pathway knowledgebase. Nucleic Acids Res. https://doi.org/10.1093/nar/gkz1031 (2019).
Huang, D. W., Sherman, B. T. & Lempicki, R. A. Systematic and integrative analysis of large gene lists using DAVID bioinformatics resources. Nat. Protoc. 4, 44–57 (2009).
Huang, D. W., Sherman, B. T. & Lempicki, R. A. Bioinformatics enrichment tools: Paths toward the comprehensive functional analysis of large gene lists. Nucleic Acids Res. 37, 1–13 (2009).
Chen, E. Y. et al. Enrichr: Interactive and collaborative HTML5 gene list enrichment analysis tool. BMC Bioinform. 14, 128 (2013).
Kuleshov, M. V. et al. Enrichr: A comprehensive gene set enrichment analysis web server 2016 update. Nucleic Acids Res. 44, W90–W97 (2016).
Sun, L. et al. WebGIVI: A web-based gene enrichment analysis and visualization tool. BMC Bioinform. 18, 237 (2017).
Raudvere, U. et al. g:Profiler: A web server for functional enrichment analysis and conversions of gene lists (2019 update). Nucleic Acids Res. 47, W191–W198 (2019).
Szklarczyk, D. et al. The STRING database in 2021: Customizable protein-protein networks, and functional characterization of user-uploaded gene/measurement sets. Nucleic Acids Res. 49, D605–D612 (2021).
Virtanen, P. et al. SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nat. Methods 17, 261–272 (2020).
van der Walt, S., Colbert, S. C. & Varoquaux, G. The NumPy array: A structure for efficient numerical computation. Comput. Sci. Eng. 13, 22–30 (2011).
McKinney, W. Data Structures for Statistical Computing in Python. in Proceedings of the 9th Python in Science Conference (eds. van der Walt, S. & Millman, J.) 56–61 (2010). https://doi.org/10.25080/Majora-92bf1922-00a
Hunter, J. D. Matplotlib: A 2D graphics environment. Comput. Sci. Eng. 9, 90–95 (2007).
Waskom, M. et al. seaborn. https://doi.org/10.5281/zenodo.592845
Lundh, F. An introduction to tkinter. www.pythonware.com/library/tkinter/introduction/index.htm (1999).
Manzini, S., Busnelli, M., Colombo, A., Kiamehr, M. & Chiesa, G. liputils: a Python module to manage individual fatty acid moieties from complex lipids. Sci. Rep. 10, 13368 (2020).
Kilkenny, C., Browne, W. J., Cuthill, I. C., Emerson, M. & Altman, D. G. Improving bioscience research reporting: The ARRIVE guidelines for reporting animal research. PLoS Biol. 8, e1000412 (2010).
Marchesi, M. et al. Rosuvastatin does not affect human apolipoprotein A-I expression in genetically modified mice: A clue to the disputed effect of statins on HDL. Br. J. Pharmacol. 164, 1460–1468 (2011).
Arnaboldi, F. et al. High-density lipoprotein deficiency in genetically modified mice deeply affects skin morphology: A structural and ultrastructural study. Exp. Cell Res. 338, 105–112 (2015).
Busnelli, M. et al. Aortic gene expression profiles show how ApoA-I levels modulate inflammation, lysosomal activity, and sphingolipid metabolism in murine atherosclerosis. Arterioscler. Thromb. Vasc. Biol. 41, 651–667 (2021).
Parolini, C. et al. Effect of dietary components from antarctic krill on atherosclerosis in apoE-deficient mice. Mol. Nutr. Food Res. 61, 1700098 (2017).
Busnelli, M. et al. Liver-specific deletion of the Plpp3 gene alters plasma lipid composition and worsens atherosclerosis in apoE-/- mice. Sci. Rep. 7, 44503 (2017).
Parolini, C. et al. A salmon protein hydrolysate exerts lipid-independent anti-atherosclerotic activity in ApoE-deficient mice. PLoS One 9, e97598 (2014).
Busnelli, M. et al. Fenretinide treatment accelerates atherosclerosis development in apoE-deficient mice in spite of beneficial metabolic effects. Br. J. Pharmacol. 177, 328–345 (2020).
Busnelli, M. et al. Liver-specific deletion of the Plpp3 gene alters plasma lipid composition and worsens atherosclerosis in apoE-/- mice. Sci. Rep. 7, 44503 (2017).
Manzini, S. et al. Topiramate protects apoE-deficient mice from kidney damage without affecting plasma lipids. Pharmacol. Res. 141, 189–200 (2018).
Manzini, S. et al. Beta2-adrenergic activity modulates vascular tone regulation in lecithin:cholesterol acyltransferase knockout mice. Vascul. Pharmacol. 74, 114–121 (2015).
Livak, K. J. & Schmittgen, T. D. Analysis of relative gene expression data using real-time quantitative PCR and the 2(−Delta Delta C(T)) method. Methods 25, 402–408 (2001).
Parolini, C. et al. Reduced biliary sterol output with no change in total faecal excretion in mice expressing a human apolipoprotein A–I variant. Liver Int. 32, 1363–1371 (2012).
Trapnell, C. et al. Differential analysis of gene regulation at transcript resolution with RNA-seq. Nat. Biotechnol. 31, 46–53 (2013).
Szklarczyk, D. et al. The STRING database in 2017: Quality-controlled protein–protein association networks, made broadly accessible. Nucleic Acids Res. 45, D362–D368 (2017).
Pedregosa, F. et al. Scikit-learn: Machine learning in Python. J. Mach. Learn. Res. 12, 2825–2830 (2011).
Virtanen, P. et al. SciPy 1.0—Fundamental algorithms for scientific computing in Python. arXiv e-prints arXiv: 1907.10121 (2019).
Acknowledgements
The authors are grateful for funding resources provided by the European Community's Seventh Framework Programme (FP7/2012–2017) RiskyCAD, Grant 305739 (G.C.), by Fondazione CARIPLO (2011-0645) (G.C.), European Union’s Horizon 2020 research and innovation programme under the ERA-Net Cofund Action No. 727565 (Octopus Consortium; G.C.), the Italian Ministry of University and Research (G.C.) and by Grants from MIUR Progetto Eccellenza. M.S. would like to thank Giorgio Salluzzo for all the helpful discussion about the writing and debugging of code. The Authors would like to thank Elda Desiderio Pinto for administrative assistance.
Funding
Funding was provided by Seventh Framework Programme (Grant No. 305739), Fondazione Cariplo (Grant No. 2011-0645), European Union’s Horizon 2020 research and innovation programme under the ERA-Net Cofund (Grant No. 727565), Ministero dell’Istruzione, dell’Università e della Ricerca (Grant No. Progetto Eccellenza).
Author information
Authors and Affiliations
Contributions
S.M. conceived, designed and wrote reString, made the figures, produced the YouTube installation videos and wrote several portions of the manuscript. M.B. drafted the paper, interpreted RNAseq results and performed all histological analyses, helped finding use cases and wrote several portions of the manuscript. A.C. and E.F. beta-tested the protocol and reString on Apple and Windows machines, and critically revised the manuscript. P.G. contributed to the codebase, tested the installation protocol on a variety of GNU/linux systems and contributed to the making of YouTube installation videos. G.C. critically revised the manuscript and provided the funds.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Manzini, S., Busnelli, M., Colombo, A. et al. reString: an open-source Python software to perform automatic functional enrichment retrieval, results aggregation and data visualization. Sci Rep 11, 23458 (2021). https://doi.org/10.1038/s41598-021-02528-0
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-021-02528-0
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.