.. lightmotif documentation master file, created by sphinx-quickstart on Tue Jul 18 16:36:58 2023. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. LightMotif |Stars| ================== .. |Stars| image:: https://img.shields.io/github/stars/althonos/lightmotif.svg?style=social&maxAge=3600&label=Star :target: https://github.com/althonos/lightmotif/stargazers *A lightweight* `platform-accelerated `_ *library for* `biological motif `_ *scanning using* `position weight matrices `_. |Actions| |Coverage| |License| |Docs| |Crate| |PyPI| |Wheel| |Bioconda| |Python Versions| |Python Impls| |Source| |Mirror| |Issues| |Changelog| |Downloads| .. |Actions| image:: https://img.shields.io/github/actions/workflow/status/althonos/lightmotif/python.yml?branch=main&logo=github&style=flat-square&maxAge=300 :target: https://github.com/althonos/lightmotif/actions .. |Coverage| image:: https://img.shields.io/codecov/c/gh/althonos/lightmotif?logo=codecov&style=flat-square&maxAge=3600 :target: https://codecov.io/gh/althonos/lightmotif/ .. |License| image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square&maxAge=2678400 :target: https://choosealicense.com/licenses/mit/ .. |Docs| image:: https://img.shields.io/readthedocs/lightmotif/latest?style=flat-square&maxAge=600 :target: https://lightmotif.readthedocs.io .. |Crate| image:: https://img.shields.io/crates/v/lightmotif-py.svg?maxAge=600&style=flat-square :target: https://crates.io/crates/lightmotif-py .. |PyPI| image:: https://img.shields.io/pypi/v/lightmotif.svg?style=flat-square&maxAge=600 :target: https://pypi.org/project/lightmotif .. |Wheel| image:: https://img.shields.io/pypi/wheel/lightmotif.svg?style=flat-square&maxAge=2678400 :target: https://pypi.org/project/lightmotif/#files .. |Bioconda| image:: https://img.shields.io/conda/vn/bioconda/lightmotif?style=flat-square&maxAge=3600 :target: https://anaconda.org/bioconda/lightmotif .. |Python Versions| image:: https://img.shields.io/pypi/pyversions/lightmotif.svg?style=flat-square&maxAge=600 :target: https://pypi.org/project/lightmotif/#files .. |Python Impls| image:: https://img.shields.io/pypi/implementation/lightmotif.svg?style=flat-square&maxAge=600 :target: https://pypi.org/project/lightmotif/#files .. |Source| image:: https://img.shields.io/badge/source-GitHub-303030.svg?maxAge=2678400&style=flat-square :target: https://github.com/althonos/lightmotif/tree/main/lightmotif-py .. |Mirror| image:: https://img.shields.io/badge/mirror-EMBL-009f4d?style=flat-square&maxAge=2678400 :target: https://git.embl.de/larralde/lightmotif/ .. |Issues| image:: https://img.shields.io/github/issues/althonos/lightmotif.svg?style=flat-square&maxAge=600 :target: https://github.com/althonos/lightmotif/issues .. |Changelog| image:: https://img.shields.io/badge/keep%20a-changelog-8A0707.svg?maxAge=2678400&style=flat-square :target: https://github.com/althonos/lightmotif/blob/master/CHANGELOG.md .. |Downloads| image:: https://img.shields.io/pypi/dm/lightmotif?style=flat-square&color=303f9f&maxAge=86400&label=downloads :target: https://pepy.tech/project/lightmotif Overview -------- `Motif `_ scanning with `position weight matrices `_ (also known as position-specific scoring matrices) is a robust method for identifying motifs of fixed length inside a `biological sequence `_. They can be used to identify `transcription factor `_ `binding sites in DNA `_, or `protease `_ `cleavage `_ site in `polypeptides `_. Position weight matrices are often viewed as `sequence logos `_: .. image:: https://raw.githubusercontent.com/althonos/lightmotif/main/docs/_static/prodoric_logo_mx000274.svg :target: https://www.prodoric.de/matrix/MX000274.html The ``lightmotif`` library provides a Python module to run very efficient searches for a motif encoded in a position weight matrix. The position scanning combines several techniques to allow high-throughput processing of sequences: - Compile-time definition of alphabets and matrix dimensions. - Sequence symbol encoding for fast table look-ups, as implemented in HMMER or MEME - Striped sequence matrices to process several positions in parallel, inspired by Michael Farrar. - Vectorized matrix row look-up using ``permute`` instructions of `AVX2 `_. *This is the Python version, there is a* `Rust crate `_ *available as well.* Setup ----- Run ``pip install lightmotif`` in a shell to download the latest release and all its dependencies from PyPi, or have a look at the :doc:`Installation page ` to find other ways to install the ``lightmotif`` Python package. Library ------- .. toctree:: :maxdepth: 2 Installation API Reference Changelog License ------- This library is provided under the open-source `MIT license `_. *This project was developed by* `Martin Larralde `_ *during his PhD project at the* `European Molecular Biology Laboratory `_ *in the* `Zeller team `_.