https://github.com/kamilsjaron/conjunction
Simulator of secondary CONtact using Fisher's JUNCTION representation of genome admixture.
https://github.com/kamilsjaron/conjunction
admixture biology genome-admixture hybrid-zone population-genetics secondary-contact simulator
Last synced: 2 months ago
JSON representation
Simulator of secondary CONtact using Fisher's JUNCTION representation of genome admixture.
- Host: GitHub
- URL: https://github.com/kamilsjaron/conjunction
- Owner: KamilSJaron
- License: gpl-3.0
- Created: 2014-11-09T12:09:13.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-05-31T21:04:57.000Z (about 8 years ago)
- Last Synced: 2024-12-06T21:50:46.142Z (over 1 year ago)
- Topics: admixture, biology, genome-admixture, hybrid-zone, population-genetics, secondary-contact, simulator
- Language: C++
- Homepage:
- Size: 468 KB
- Stars: 1
- Watchers: 6
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

the simulator of secondaty CONtact using Fisher's JUNCTION model of genome admixture. It is a direct descendant of forsim, simulator writen for my [Master thesis](http://is.muni.cz/th/376090/prif_m/thesis_jaron_zadani.pdf).
## Build
The software was developed and tested on OS X and Linux and it has not been tested for windows.
#### Quick
Open a terminal, download repository
```
git clone https://github.com/KamilSJaron/Conjunction
```
enter the folder and build Conjunction by
```
cd Conjunction && make
```
The fully operational executable `conjunction` should be created and prepared for use. You can install `conjunction` to by
```
make install
```
which will copy the binary to `/usr/local/bin`. If you wist to install `conjunction` to an alternative place you can type
```
make install INSTAL_PREFIX=/home/slim/
```
and it will be installed in provided path/bin. In my example `/home/slim/bin`.
#### Testing
Travis build & unit test of `master` branch : [](https://travis-ci.org/KamilSJaron/Conjunction/branches)
Travis build & unit test of `dev` branch : [](https://travis-ci.org/KamilSJaron/Conjunction/branches)
Several unit tests are implemented in separated binary. To execute the unit test on your computer
```
make test
```
will compile testing binary, execute tests and delete testing binary if tests passed.
## Usage
The software reads a setting file (`setting.txt` by default), the specification of the simulation is read from there. The template is delivered with the software, therefore simple `conjunction` should perform a set of sumulations. For details of check [setting file](setting.txt) or wikipage [setting](https://github.com/KamilSJaron/Conjunction/wiki/setting).
```{bash}
conjunction [--version] [--help] [setting.txt] 1> summary.out 2> simulation_log.err
```
The log of the simulation is streamed to standard error stream. The basic output of simulation is streamed to standard output stream. If other type of output is desired it has to be set in setting, details can be found at corresponding wikipage describing [output](https://github.com/KamilSJaron/Conjunction/wiki/output).
## Mechanisms of simulations
The simulator is restricted to secondary contact hybrid zones where reduced fitness of hybrids is caused purely by genetic background. The representation of individuals currently does not allow new mutations in simulation. The only information for every loci is if it originated in population on one or the other side of the hybrid zone (population A or B). All details can be found in [wiki](https://github.com/KamilSJaron/Conjunction/wiki#principles).
If there is anything unclear or you encounter a bug, please open an issue!