Skip to main content

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

lshmm-0.0.8.tar.gz (26.8 kB view details)

Uploaded Source

Built Distribution

lshmm-0.0.8-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file lshmm-0.0.8.tar.gz.

File metadata

  • Download URL: lshmm-0.0.8.tar.gz
  • Upload date:
  • Size: 26.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.5

File hashes

Hashes for lshmm-0.0.8.tar.gz
Algorithm Hash digest
SHA256 0d24eb5ad0a79e17532b85e9971d684ec8895828ca26b450cf63f1627ba7645f
MD5 fc806ff4a9b2ede6d799c07e14716cc9
BLAKE2b-256 bcd1627b2dd2572e4ccc615b015121b89993fd9b57948ad5c8b185465f59a856

See more details on using hashes here.

File details

Details for the file lshmm-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: lshmm-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.5

File hashes

Hashes for lshmm-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 74bac9e8abb71dfa7d9b26bc88bca09397d92e3baa045b134ddf3d814c469bc3
MD5 4679cd38b776379adfaacfb07b0851c6
BLAKE2b-256 ef036f0eb918cf7f5367b06554847f3174373e3e8d5582b2b2049172c8aacb24

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page