Metadata-Version: 2.4
Name: lineagekit
Version: 1.0.19
Summary: A python library with genealogy methods
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: tskit>=0.5.6
Requires-Dist: networkx>=3.2.1
Requires-Dist: matplotlib>=3.8.3
Requires-Dist: pytest>=8.0.2
Requires-Dist: pandas>=2.0.0
Requires-Dist: numpy>=1.26.4
Requires-Dist: pybind11>=2.12.0
Requires-Dist: setuptools>=78.1.1
Requires-Dist: pip>=24.0
Requires-Dist: attrs>=23.2.0
Requires-Dist: pillow>=10.3.0
Requires-Dist: docutils>=0.20.1
Requires-Dist: Sphinx>=7.2.6
Requires-Dist: sphinx-autodoc-typehints>=1.12.0
Requires-Dist: sphinxcontrib-napoleon>=0.7
Requires-Dist: Jinja2>=3.1.3
Requires-Dist: typing_extensions>=4.10.0
Requires-Dist: pytz>=2024.1
Requires-Dist: Cython>=3.0.10
Requires-Dist: numba>=0.59.1
Requires-Dist: svgwrite>=1.4.3
Requires-Dist: jsonschema>=4.21.1
Requires-Dist: MarkupSafe>=2.1.5
Requires-Dist: python-dateutil>=2.9.0.post0
Requires-Dist: six>=1.16.0
Requires-Dist: referencing>=0.33.0
Requires-Dist: idna>=3.6
Requires-Dist: packaging>=23.2
Requires-Dist: zipp>=3.18.0
Requires-Dist: scipy>=1.13.0

# lineagekit
A python library with genealogy methods. We will seek to integrate code or functionality or both from:

## ISGEN (Dominic's code on importance sampling)
https://github.com/DomNelson/ISGen

# Earlier iterations of genealogy alignment project:

Useful data structures built on top of `networkx`:
- `Genealogical`: Generic data structure that includes implementation of useful functions on geneological objects (trees, pedigrees, etc.).
- `Pedigree`
    - Implements Lange's Kinship estimation algorithm with sparse matrices (may need to be optimized)
- `HaplotypeGraph`: Converts from a pedigree to a graph encompassing all potential inheritance paths.
    - Supports `autosomal`, `X`, `Y`, and `mitochondrial` inheritance paths.
    - Has a (non-tested) message passing algorithm for computing kinship.
- `Traversal` (corresponds to trees)

https://github.com/ivan-krukov/aligning-genealogies/tree/master/genealogy_aligner

## genlib (Marie-Hélène Roy-Gagnon's R package). 

## Andrii's aligner

## Luke pedigree simulations

## sgkit

# [Documentation](#documentaion)
You can find the documentation for this project [here](https://lineagekit.github.io/lineagekit/).

# Installation

1. Clone the repository and `cd` into the root of the project.
2. Run `pip install .`

To use this package, you need to have a C++ compiler installed on your machine with support for at least C++17.
# [Development policy](#development-policy)

If you want to contribute to this project, follow these steps:

1. Create an issue with a description of what changes or improvements you would like to add.
2. Create a separate branch for the issue that you have created. Make sure that the branch source is the **dev** branch.
3. On the branch that you have created, introduce the changes or fixes that you want. 
**Important!** Don't forget to add tests for the code that you've added. If you were working on fixing a bug in the
existing code, try to create a test case for which the old version of the code didn't work properly, but the new version does.
4. Clone the repository, checkout into the newly created branch, install all the requirements mentioned in
**requirements.txt**.
5. Push your changes and create a pull request.

If you would like to request a certain change in the code, or if you have found a bug / unexpected behaviour,
you can just create an issue with the corresponding description. 

If you want to build the documentation locally, `cd` into the `docs` directory and run `make html`.


