Skip to content

Hickerlab/ERCS-Pipeline

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inference under a spatially-continuous coalescent model (in progress)

Simulation code used for data generation in Inference under a spatially-continuous coalescent model. This is a work in progress.

Dependencies

Overview and Setup

The main simulation code is run from simulate.py. Parameter settings are specified in settings.py.

python simulate.py

The script runs simulations as follows:

  1. Generate gene trees from Discsim
  2. Simulate the corresponding DNA sequences with Seq-Gen
  3. Convert the DNA sequences into the appropriate format for Arlequin

Simulation parameters are specified in settings.py. Output sequences are retained use to use with other analytical methods.

The simulation code sets up files for analysis in Arlequin, however Arlequin is not called directly. Instead Arlequin is run as a standalone through their provided scripts. For detailed instruction see the Arlequin manual.

The simulation code expects the compiled program Seq-Gen (named "seq-gen") in the seqgen folder. First download and compile the program from the link above. Rename the compiled program "seq-gen" and place in the folder named "seqgen."

Simulation parameters and random seeds used to run approximate Bayesian computation analysis are saved in the parameters.txt file. The seed used to run the simulation correspond to the names of the files generated for Arlequin.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%