Skip to content

Commit 29ff649

Browse files
authored
Merge pull request #1 from benjaminmoon/code-upload
Code upload
2 parents 1089211 + ccc3d52 commit 29ff649

534 files changed

Lines changed: 49166 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.rds filter=lfs diff=lfs merge=lfs -text

README.md

Lines changed: 69 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,73 @@ author:
1010
date: 2019-09-27
1111
...
1212

13-
# ichthyosaur-macroevolution
13+
# ichthyosaur-macroevolution #
1414

15-
Data and code used in our study ‘Early high rates and disparity in the evolution of fish-shaped reptiles’.
15+
Data and code used in our study ‘Early high rates and disparity in the evolution of fish-shaped reptiles’, published as
16+
17+
> Moon BC & Stubbs TL Early high rates and disparity in the evolution of fish-shaped reptiles. <Journal> doi:
18+
19+
# Contents #
20+
21+
1. supplement-ichthyosaur_macroevolution: supplementary document PDF file with supplementary methods, results, figures, tables, and references.
22+
2. supp_figures: folder of supplementary figures included in the supplementary document.
23+
3. supp_tables: folder of supplementary tables included in the supplementary document.
24+
4. supp_code: supplementary R code to run most analyses.
25+
5. supp_BayesTraits: supplementary code to run the continuous rates analyses in BayesTraits.
26+
27+
## Repository layout ##
28+
29+
ichthyosaur-macroevolution
30+
├ LICENSE
31+
├ README.md
32+
├ supplement-ichthyosaur_macroevolution.tex
33+
├ supplement-ichthyosaur_macroevolution.pdf
34+
├ supplement-ichthyosaur_macroevolution.bib
35+
├ version.dat
36+
├ supp_figures/
37+
├ supp_tables/
38+
├ supp_code/
39+
│ ├ 0-Moon_Stubbs-run_analyses.R
40+
│ ├ 1A-disparity_analyses.R
41+
│ ├ 1B-disparity_stats.R
42+
│ ├ 2-time_scaling.R
43+
│ ├ 3-rates_analyses.R
44+
│ ├ data/
45+
│ ├ fig/
46+
│ ├ functions/
47+
│ ├ output/
48+
│ └ tbl/
49+
└ supp_BayesTraits/
50+
├ ichthyosaur_data_BAYESTRAITS.csv
51+
├ Moon_Plot_Functions.R
52+
├ traitgram.code.R
53+
├ BayesTraits/
54+
└ PostProc/
55+
56+
# Running the code #
57+
58+
## Compiling the supplement ##
59+
60+
This uses recent versions of `lualatex` (compiled with version 1.10.0) and `latexmk` (version 4.65). Run the following line to compile
61+
62+
> latexmk supplement-ichthyosaur_macroevolution
63+
64+
## R code analyses ##
65+
66+
Most of the analyses are run in the R statistical environment; these were tested using R version 3.6.0. Scripts are contained in the folder `supp_code/` All analyses will proceed continuously from the first script from the shell
67+
68+
> Rscript 0-Moon_Stubbs-run_analyses.R
69+
70+
or within R
71+
72+
r$> source("0-Moon_Stubbs-run_analyses.R")
73+
74+
This includes installation of the required packages at the beginning of the first script. Refactoring of Claddis took place during the analyses, so we use a previous version (commit 4f7f1bf); the original version of this code will not function with a later commit. Email notifications are sent using the packages `mailR` and password storage with `keyringr`. Vignettes for the set-up of these can be found at <https://github.com/rpremraj/mailR> and <https://bit.ly/2AHUj0A> (accessed 2019-09-27).
75+
76+
## BayesTraits analyses ##
77+
78+
Individual command scripts and associated trees for 100 runs are included as `.cmd` and `.nex` files respectively in the subfolder `supp_BayesTraits/BayesTraits`. Run these in BayesTraits (version 2.0.2) from <http://www.evolution.rdg.ac.uk/BayesTraitsV2.0.2.html> for automated analyses
79+
80+
> BayesTraits BayesTraits/ichthyosaur.pca.scores.pruned.singletree.1.nex ichthyosaur_data_BAYESTRAITS.csv < BayesTraits/BayesTraits_hetRates_Script.1.cmd
81+
82+
Homogeneous and heterogeneous scripts are separated as `homRates` or `hetRates`. Results tables are included in the folder `supp_BayesTraits/PostProc`. Additional plot are created using the scripts `traitgram.code.R` and `Moon_plot_Funtions.R`.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
7
2+
2
3+
VarRates
4+
iterations 220000000
5+
sample 10000
6+
burnin 20000000
7+
stones 100 1000
8+
Logfile ichthyosaur.pca.scores.pruned.txt.1.log.txt
9+
Info
10+
Run
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
7
2+
2
3+
VarRates
4+
iterations 220000000
5+
sample 10000
6+
burnin 20000000
7+
stones 100 1000
8+
Logfile ichthyosaur.pca.scores.pruned.txt.10.log.txt
9+
Info
10+
Run
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
7
2+
2
3+
VarRates
4+
iterations 220000000
5+
sample 10000
6+
burnin 20000000
7+
stones 100 1000
8+
Logfile ichthyosaur.pca.scores.pruned.txt.100.log.txt
9+
Info
10+
Run
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
7
2+
2
3+
VarRates
4+
iterations 220000000
5+
sample 10000
6+
burnin 20000000
7+
stones 100 1000
8+
Logfile ichthyosaur.pca.scores.pruned.txt.11.log.txt
9+
Info
10+
Run
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
7
2+
2
3+
VarRates
4+
iterations 220000000
5+
sample 10000
6+
burnin 20000000
7+
stones 100 1000
8+
Logfile ichthyosaur.pca.scores.pruned.txt.12.log.txt
9+
Info
10+
Run
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
7
2+
2
3+
VarRates
4+
iterations 220000000
5+
sample 10000
6+
burnin 20000000
7+
stones 100 1000
8+
Logfile ichthyosaur.pca.scores.pruned.txt.13.log.txt
9+
Info
10+
Run
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
7
2+
2
3+
VarRates
4+
iterations 220000000
5+
sample 10000
6+
burnin 20000000
7+
stones 100 1000
8+
Logfile ichthyosaur.pca.scores.pruned.txt.14.log.txt
9+
Info
10+
Run
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
7
2+
2
3+
VarRates
4+
iterations 220000000
5+
sample 10000
6+
burnin 20000000
7+
stones 100 1000
8+
Logfile ichthyosaur.pca.scores.pruned.txt.15.log.txt
9+
Info
10+
Run

0 commit comments

Comments
 (0)