This repository contains all the codes used to generate files and table reported in the work:
Bacci et al. (2021) Defining the resilience of the human salivary microbiota by a 520 days longitudinal study in confined environment: the Mars500 mission Microbiome
If you use code from this repo, please cite our paper as follows:
@article{Bacci2021,
author = {Bacci, Giovanni and Mengoni, Alessio and Emiliani, Giovanni and Chiellini, Carolina and Cipriani, Edoardo Giovanni and Bianconi, Giovanna and Canganella, Francesco and Fani, Renato},
title = {Defining the resilience of the human salivary microbiota by a 520-day longitudinal study in a confined environment: the Mars500 mission},
year = {2021},
month = {Jun},
day = {30},
volume = {9},
number = {1},
pages = {152},
issn = {2049-2618},
doi = {10.1186/s40168-021-01070-5},
publisher = {Cold Spring Harbor Laboratory},
URL = {https://doi.org/10.1186/s40168-021-01070-5},
journal = {Microbiome}}This work is part of the Mars500 mission, the first prolonged isolation experiment involving human volunteers conducted between 2007 and 2011 by three space agencies of different countries: Russia (Roscosmos), Europe (ESA), and China (CNSA). The mission was part of the European Programme for Life and Physical Sciences (ELIPS) with the aim of preparing astronauts for future missions to the Moon and Mars.
Details about the project can be found here
The human microbiota plays several roles in health and disease but is often difficult to determine which part is in intimate relationships with the host vs. the occasional presence. During the Mars500 mission, six crewmembers lived completely isolated from the outer world for 520 days following standardized diet regimes. The mission constitutes the first spaceflight simulation to Mars and was a unique experiment to determine, in a longitudinal study design, the composition and importance of the resident vs. a more variable microbiota—the fraction of the human microbiota that changes in time and according to environmental conditions—in humans. Here we report the characterization of the salivary microbiota from 88 samples taken during and after the mission for a total of 720 days. Amplicon sequencing of the V3-V4 region of 16S rRNA gene was performed and results were analyzed monitoring the diversity of the microbiota while evaluating the effect of the three main variables present in the experimental system: time, diet, and individuality of each subject. Results, though showing statistically significant effects of all three variables, highlighted a main contribution of salivary microbiota personalized features, that is an individual-based resilience of the microbiota. Such findings open the way to consider salivary microbiota under the light of a pronounced personalization even after sharing the same physical space for more than a year.
The two main folders of the repository are called SM and main and refer to supplementary materials and main text, respectively. The content of the folders is organised as follows:
-
imgfolder: images generated duringknitrrendering are saved into this folder inpngformat -
datafolder: contains data that is loaded into the R environment to generate figures and external scripts used for time-consuming tasks -
tabfolder (SM only): supplementary tables are saved into this folder duringknitrrendering of supplementary materials. Tables are embedded in the main text and are not saved when rendering the document. -
main/manuscript.Rmd: R Markdown file for generating figures and table reported in the main manuscript -
SM/supplementary.Rmd: R Markdown file for generating figures and table reported in supplementary materials
R Markdown files can be rendered into html by using the knitr plugin integrated into RStudio. Alternatively, one can directly render documents from terminal by launching this command:
R -e "rmarkdown::render('<RMarkdown_file>',output_file='<output_file>')"by replacing <RMarkdown_file> with the name of the file to render and <output_file> with the name of the output file that will be generated.
It is important to note that the html documents are generated using pandoc package integrated with RStudio. In Debian/Linux systems the library can be found in /usr/lib/rstudio/bin/pandoc/ and could differ from the version installed at system level. If, during the rendering of the document with knitr, you get a message like:
Error: pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
then you probably need to tell R where the pandoc library integrated with RStudio is located in your system. You can do this with the command Sys.setenv(RSTUDIO_PANDOC='/usr/lib/rstudio/bin/pandoc/') or by using the two build scripts provided together with the R Markdown files.