No project description provided
Project description
lshmm
lshmm is a Python library for prototyping, experimenting, and testing implementations of algorithms using the Li & Stephens (2003) Hidden Markov Model.
Usage
Inputs
Data
- Sample and/or ancestral haplotypes comprising a reference panel.
- Query haplotypes.
In the haploid mode, the alleles in haplotypes can be represented by any integer value (besides -1
and -2
, which are special values). In the diploid mode, the genotypes (encoded as allele dosages) can be 0
(homozygous for the reference allele), 1
(heterozygous for the alternative allele), or 2
(homozygous for the alternative allele). Currently, multiallelic sites are supported in the haploid mode, but not the diploid mode.
Note that there are two special values NONCOPY
and MISSING
. NONCOPY
(or -2
) represent non-copiable states, and can only be found in partial ancestral haplotypes in the reference panel. MISSING
(or -1
) representing missing data, and can be found only in query haplotypes.
Parameters
- Recombination probabilities.
- Mutation probabilities.
Models and algorithms
- Haploid LS HMM
- Forward-backward algorithm
- Viterbi algorithm
- Diploid LS HMM
- Forward-backward algorithm
- Viterbi algorithm
Features
- Scaling of mutation rate by the number of distinct alleles per site.
- Non-copiable state in the reference panel (
NONCOPY
). - Missing state in the query (
MISSING
). - Multiallelic sites (haploid only).
Project details
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
File details
Details for the file lshmm-0.0.6.tar.gz
.
File metadata
- Download URL: lshmm-0.0.6.tar.gz
- Upload date:
- Size: 26.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f68aeb773da4c361ea9ed11a4f56789f7e06655d4e53c94f6c4eaaeb1344bcb7 |
|
MD5 | b400ba706778c88d1dcdf7804ccbf136 |
|
BLAKE2b-256 | a82356015ccb070a18f64036438192660b4e86afce34d4d7f55d35d0d62347bf |
File details
Details for the file lshmm-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: lshmm-0.0.6-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61ba928372bac65707031c6262cfdc1406f32c22945f4c9122166aace48e9215 |
|
MD5 | 86571fd14bcf106f089af849453c7fc9 |
|
BLAKE2b-256 | 415e205927e0022241b9876ee499419d9b074fb48bede63cbb7625910d1ed63e |