-
Figures346
- this directory contains the code for Fig. 3, Fig. 4 and Fig. 6 of the manuscript
/codeDiscreteModels_Fig3.Rmd- Rmarkdown file to generate Fig. 3ContiouseModels_Fig4.Rmd- Rmarkdown file to generate Fig. 4JointDiscreteContiouseModels_Fig6.Rmd- Rmarkdown file to generate Fig. 6HelperFunctions.R- A set of functions for plotting and simulating. Note many of the function are limited to plotting/ simulated the data in this paper, in otherwords they are not generaliziable to other data types (e.g., tree of different sizes.
/simulated_data- All Rmakdown scripts simulate some data. The data used to generate plots in the figured have been saved and store in this directory
- Below we briefly described what each data is used for
stochastic_map_tree.newick- 5 tip phylogeny used in Fig. 3.threeTaxonTree.nwk- 3 tip phylogeny used in Fig. 3, Fig. 4, Fig. 5.SYM_stochasticMap.rds- Rdata for Fig 3AOrderedstochasticMap.rds- Rdata for Fig 3Bp94_stochasticMap.rds- Rdata for Fig 3CThreshold_model_Simulation.csv- Simulated Brownion motion data used in Fig. 3DBM_model_simulation.csv- Simulated Brownion motion data used in Fig. 4AOU_model_simulation.csv- Simulated OU data used in Fig. 4BRAT_model_simulation.csv- Siulated data for Fig. 6A
- this directory contains the code for Fig. 3, Fig. 4 and Fig. 6 of the manuscript
-
SSEanalyses for section State-dependent speciation and extinction models and the importance of cladogenetic change- this directory contains code and data for the SSE simulations we did to compare two-step and joint analysis.
- the directory is structure as follows:
/datatree.tre: the true tree simulated under the two-state Yule modeldata.nex: binary data for the tips of the simulated treeseq.nex: molecular data simulated on the simulated treemcc_tree.tre: the MCC tree estimated from the first step of the two-step analysismcc_tree_2type.tre: the MCC tree estimated under the joint modelmcc_tree_alt.treandmcc_tree_2type_alt.tre: MCC trees estimated in the two-step and joint analyses with clock hyperparameter fixed to true values
- data simulation:
scripts/simulated_tree.R: script to simulate the true tree under the two-state Yule modelscripts/sim_seq_data.Rev: script to simulate sequence data on the true tree
- true-tree analysis
scripts/mcmc_true_tree_2type.Rev: script to estimate speciation rates under the two-state Yule model from the true tree
- two-step analysis:
scripts/mcmc_div_times.Rev: script to estimate chronogram under a constant-rate Yule model (first step)scripts/summarize_div_times.Rev: script to compute MCC tree from first stepscripts/mcmc_mcmc_est_tree_2type.Rev: script to estimate speciation rates under the two-state Yule model from the MCC tree (second step)
- joint analysis:
scripts/mcmc_div_times_2type.Rev: script to estimate chronogram and speciation rates for two-state Yule modelscripts/summarize_div_times_2type.Rev: script to compute MCC tree from previous analysis
- two-step analysis with fixed hyperparameters:
scripts/mcmc_div_times_alt.Rev: script to estimate chronogram under a constant-rate Yule model (first step)scripts/summarize_div_times_alt.Rev: script to compute MCC tree from first stepscripts/mcmc_mcmc_est_tree_2type_alt.Rev: script to estimate speciation rates under the two-state Yule model from the MCC tree (second step)
- joint analysis with fixed hyperparameters:
scripts/mcmc_div_times_2type_alt.Rev: script to estimate chronogram and speciation rates for two-state Yule modelscripts/summarize_div_times_2type_alt.Rev: script to compute MCC tree from previous analysis
cmt2/SysBio_EvolvingViews_CharacterEvolution
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|