Machine Learning Applications for Diffusion Approximation of Demographic Inference
Introduction
Diffusion Approximation of Demographic Inference (dadi) is a powerful software tool for simulating the joint frequency spectrum (FS) of genetic variation among multiple populations and employing the FS for population-genetic inference. Here we introduce machine learning-based tools for easier application of dadi's underlying demographic models. These machine learning models were trained on dadi-simulated data and can be used to make quick predictions on dadi demographic model parameters given FS input data from user and specified demographic model. The pipeline we used to train the machine learning models are also available here for users interested in using the same framework to train a new predictor for their customized demographic models.
Installation
Get the dadi-ml repo
Clone this repo to your local directory and cd into the dadi-ml dir
$ git clone https://github.com/lntran26/dadi-ml.git
$ cd dadi-ml/
Set up your python environment to run the dadi-ml pipeline
We recommend you start by creating a new conda environment. This can be done using the command below, which will create a new conda env called dadi-ml and installed the required packages to this env. The env can then be activated for each subsequent use.
$ conda env create -f environment.yml
$ conda activate dadi-ml
Requirements
- Python 3.9+
- dadi
- scikit-learn 1.0.2
- MAPIE 0.3.1
References
Metadata
Release files for project-ml-AB3NzaC1yc-hatch 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| project_ml_ab3nzac1yc_hatch-1.0.1.tar.gz | 27.6 kB | Without provenance | Details for project_ml_ab3nzac1yc_hatch-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| project_ml_ab3nzac1yc_hatch-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for project_ml_ab3nzac1yc_hatch-1.0.1-py3-none-any.whl |
Total release size: 61.0 kB
Release files / project_ml_ab3nzac1yc_hatch-1.0.1.tar.gz
| Download URL | project_ml_ab3nzac1yc_hatch-1.0.1.tar.gz |
|---|---|
| Size | 27.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e1cc10a4992b90cf5a887c9c13dc3d7b51d42ee7bed02283d6aaecc57936bfa
|
|
BLAKE2b-256 checksum How to use checksums |
c682c5d7159d5f221d094fc1d294f21848c9eace6fdf1cf34a92aacb041227e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.15
|
Release files / project_ml_ab3nzac1yc_hatch-1.0.1-py3-none-any.whl
| Download URL | project_ml_ab3nzac1yc_hatch-1.0.1-py3-none-any.whl |
|---|---|
| Size | 33.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30311a49c3cac42f654e88d34595df56863fb7998eb6fefdcb0c4d7c5e5e61ac
|
|
BLAKE2b-256 checksum How to use checksums |
32586c16fcb09c6f4d38b936591b51b02a47ea37595c3015fb98045c7d6114df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.15
|
Security for project-ml-AB3NzaC1yc-hatch 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.