Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
content badge
swh:1:cnt:5353a7e6d49ce276d83f07117dfa19c03908795e

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
(requires biblatex-software package)
Generating citation ...
# vanni_et_al-figures
Code for the figures included in the manuscript [*Light into the darkness: Unifying the known and unknown coding sequence space in microbiome analyses*](https://www.biorxiv.org/content/10.1101/2020.06.30.180448v1)

To recreate the figures follow the instructions below:

> This has been tested on R 3.6.3

Clone the repo with:

```bash
git clone https://github.com/functional-dark-side/vanni_et_al-figures.git
cd vanni_et_al-figures
```

Then get the data we used from [here](https://doi.org/10.6084/m9.figshare.12738476.v1). The data is stored in [SQlite](https://www.sqlite.org/index.html) dbs, one DB for each figure.

```bash
curl -JLO https://ndownloader.figshare.com/files/24109856
tar xvfz vanni_et_al-data.tar.gz
```

Then let's install the packages we used to plot the figures. First start R to get renv installed:

```
R
```

> If you open the project file `vanni_et_al-figures.Rproj` in Rstudio it will perform the same steps.

If everything went well, [renv](https://rstudio.github.io/renv/articles/renv.html) will be installed and you will get a message like:

```
* Installing renv 0.11.0 ... Done!
Successfully installed and loaded renv 0.11.0.
* Project '/vol/cloud/SANDBOX/vanni_et_al-figures' loaded. [renv 0.11.0]
```

And restore the environment:

```r
renv::restore()
q()
```

Now you can recreate the basic figures with:

```bash
./scripts/Figure1.R
```

> Figures will be saved in figures/

Or you can play with the code and recreate the figures in your favorite IDE. 

In the folder `figures-manuscipt` you can find the final figures used in the manuscript after some beautifying.

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API