Realistic synthetic pedigree generation, visualization, and file export.
Project description
Pedigree Generation Package
PedGen is a python package that can be used to generate genetically realistic pedigrees. Generated pedigrees can be visualized as directed acyclic graphs and exported in PED file format.
Prerequisites
Some functionality included in PedGen relies on system-level dependencies, namely in instalation of Graphviz. Please ensure Graphviz is installed before using the pedigree visualization functionality:
Unix
sudo apt install graphviz libgraphviz-dev
macOS(Homebrew)
brew install graphviz
Installation
All required Python dependencies will be installed automatically with this package using pip.
pip install PedGen
Usage
The primary function included in this package, pedigree_generator, works to contruct a realistic pedigree based on mendelian inheritance patterns and alternate allele frequencies in accordance with Hardy-Weinberg equilibrium. The generated pedigree is represented as Pandas dataframe object followign PED file formatting. 'pedigree_generator(FamilyID, max_children, mode, generation_count, SpouseLikelihood = 0.6, AffectedSpouse = True, backpropLikelihood = 0.25, alt_freq = 0.1)' - returns a dataframe with familial relation, sex, and phenotype information for individuals in the generated pedigree. Parameters
FamilyID (string): the ID to be assigned to the family
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pedgen-0.1.2.tar.gz.
File metadata
- Download URL: pedgen-0.1.2.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e85957161af9dca559259ac484696b3ddd85e60673f62c57c190dd69a362c095
|
|
| MD5 |
aa03c414eb3241bee7d2cd7ce05be9ec
|
|
| BLAKE2b-256 |
5bd10875d54cd7ed23ecff5d9edce0a3ba07caa6f72a921ba9bee3983e41da55
|
File details
Details for the file pedgen-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pedgen-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8117cf8df1f1c3da22a7ee3abd50681e25b2d83b3be6fe8df143080eaf57fa49
|
|
| MD5 |
b356b2c16c920f9bdf15087313215c4c
|
|
| BLAKE2b-256 |
272d738d8095d157edd2e0116473703fd2941c8134f8b5f104ea6893a84d4bca
|