Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rybla/genealogymodel3
A reimplementation of GenealogyModel. Meant to be faster and more modular, with API for external experiments, importing, and exporting.
https://github.com/rybla/genealogymodel3
Last synced: about 5 hours ago
JSON representation
A reimplementation of GenealogyModel. Meant to be faster and more modular, with API for external experiments, importing, and exporting.
- Host: GitHub
- URL: https://github.com/rybla/genealogymodel3
- Owner: rybla
- Created: 2018-04-15T21:45:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-08T17:49:42.000Z (about 6 years ago)
- Last Synced: 2024-03-07T06:44:02.441Z (8 months ago)
- Language: Python
- Size: 1.78 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Genealogy Model 3
This is the third version of my simple genealogy modeler. This program creates randomized genealogies with a process influenced by several customizable parameters.
## The `makegen` tool
This tool allows easy customized running of genealogy examinations. The kinds of runs implemented so far are:
- Single Genealogy
- Single-Trait### Dependencies
Make sure your have the following installed:
- [python3](https://www.python.org/download/releases/3.0/)
- [Graphviz](https://www.graphviz.org/) (free download)
- Various python packages listed in `requirements.txt`. These can be installed with `pip install -r requirements.txt`### Downloading
Before running anything, you will need to download this repository. I suggest doing something like the following in terminal (command line):
$ cd ~/Documents/
$ git clone https://github.com/Riib11/GenealogyModel3.gitThis will create a directory named `GenealogyModel3/` in your main documents directory (`~/Document`). To use this method, you will need to have [`git`](https://git-scm.com/download/mac) installed
### Running `makegen`
1. Create a new file `.json` in the `makegen_configs/` directory, where `` is the name of this config file.
2. Customize the settings in the json file, following the template of `template.json`.
3. Open terminal (command line) and execute the following:```
$ cd /path/to/GenealogyModel3/
$ python3 makegen.py makegen_config/.json
```The first line navigates to the GenealogyModel3 directory (wherever it happens to be). The second line runs the `makegen` tool with the `.json` settings as input. The resulting genealogy will be created in the `makegen_output/` directory. It will automatically be named to match the `name` entry in the config file..
## Server
Much of the functionality of `makegen` can be offered on a website. The code for this is in the `server` folder, and the server can bs started with `start_server.py`.