An open API service indexing awesome lists of open source software.

https://github.com/ebedthan/midas-pub-micro

Analysis Code of MIDAS scientific article #1
https://github.com/ebedthan/midas-pub-micro

microbiome-analysis

Last synced: 3 months ago
JSON representation

Analysis Code of MIDAS scientific article #1

Awesome Lists containing this project

README

        

## Analysis Code of MIDAS scientific article #1

### Overview

We used `R` to analyse microbiome data. To facilitate reproducibility, `renv`
package was used to bundle everything needed to reproduce results.

### How to reproduce the results ?

1. Download the data folder

The data folder was not added to GitHub (because of its size) but is publicly
available on Zenodo at this link .

**Important**: Note that the `data` folder in this repo is not complete and should be
replaced by the folder on Zenodo (that contains the CHELSA tiff files) also.

2. Check you have the exact version of R used

We used **R version 4.4.3 (2025-02-28)** on a `x86_64-pc-linux-gnu` PC.

3. Download the repository

Using the CLI you can use:

``` bash
git clone https://github.com/Ebedthan/midas-pub-micro.git
```

or directly download the zipped file from GitHub.

After downloading, decompress the folder if needed and navigate into the folder.

4. Reproduce the results

First open `R` and then install `renv`:

``` r
install.packages("renv")
```

Then restore the project state as defined in the lockfile by using

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

Then you can run the analysis in the `diversity_analysis.R` and get the results.

Enjoy!