README.md

Global gut content data synthesis and phylogeny delineate reef fish trophic guilds

This repository contains code and data needed to reproduce the figures and results of the manuscript: “Global gut content data synthesis and phylogeny delineate reef fish trophic guilds” (ADD REF)

Instructions

All analyses were done in R. First you need to open an R session with working directory set to the root of the project.

We use a number of packages as listed in the DESCRIPTION, missing packages can be easily installed by devtools: devtools::install_deps() (run install.packages("devtools") to install devtools if needed.)

Then the entire project can be reproduced by running the file make.R or scripts can be run seperately. :exclamation: :boom: CAUTION: The script depends on parallel computation and uses up to 50 cores and 250G of memory, and thus should be run on a supercomputer. It takes about one week to reproduce the entire project.

Content

The directory contains: - :page_facing_up: DESCRIPTION: Contains all packages needed to reproduce the analyses. - :page_facing_up: make.R: Script to reproduce all parts of the project. - :file_folder: data: Folder containing all data. - :file_folder: scripts: Folder containing scripts to perform multiple parts of the analysis to produce results and figures. - :file_folder: R: Folder containing custom functions used to perform phylogenetic regression. - :file_folder: output: Folder containing all results and figures.

data

scripts

Beckett, S.J. 2016 Improved community detection in weighted bipartite networks. Royal Society open science 3, 140536.

How to download this project for people not familiar with GitHub:

On the project main page on GitHub, click on the green button clone or download and then click on Download ZIP.

Working environment

sessionInfo()
#> R version 3.6.3 (2020-02-29)
#> Platform: x86_64-pc-linux-gnu (64-bit)
#> Running under: Ubuntu 18.04.5 LTS
#> 
#> Matrix products: default
#> BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
#> LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1
#> 
#> locale:
#>  [1] LC_CTYPE=fr_FR.UTF-8       LC_NUMERIC=C              
#>  [3] LC_TIME=fr_FR.UTF-8        LC_COLLATE=fr_FR.UTF-8    
#>  [5] LC_MONETARY=fr_FR.UTF-8    LC_MESSAGES=fr_FR.UTF-8   
#>  [7] LC_PAPER=fr_FR.UTF-8       LC_NAME=C                 
#>  [9] LC_ADDRESS=C               LC_TELEPHONE=C            
#> [11] LC_MEASUREMENT=fr_FR.UTF-8 LC_IDENTIFICATION=C       
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> loaded via a namespace (and not attached):
#>  [1] compiler_3.6.3  magrittr_1.5    tools_3.6.3     htmltools_0.4.0
#>  [5] yaml_2.2.0      Rcpp_1.0.5      stringi_1.4.3   rmarkdown_2.1  
#>  [9] knitr_1.25      stringr_1.4.0   xfun_0.10       digest_0.6.22  
#> [13] rlang_0.4.7     evaluate_0.14


valerianoparravicini/Trophic_Fish_2020 documentation built on Dec. 31, 2020, 9:42 a.m.