MotifQu
MotifQu is a quantum motif search and discovery tool using Grover's algorithm. It provides two main functions:
- Motif Search: Find occurrences of a known motif pattern in a genome
- Motif Discovery: Discover all significant motifs (k-mers) in a genome using quantum amplitude amplification
Install
pip install MotifQu
Usage
Discover Motifs (New!)
Find all significant k-mers in a genome:
# Discover 6-mers appearing at least 3 times
motifqu discover --fasta genome.fa -k 6 --min-count 3
# Discover 8-mers, show top 20 results
motifqu discover --fasta genome.fa -k 8 --min-count 2 --topk 20
# Ignore reverse complement
motifqu discover --fasta genome.fa -k 6 --min-count 3 --no-revcomp
Search for Specific Motif
# Exact match
motifqu search --fasta genome.fa --motif GTTGTTGGAGAAG --mismatches 0
# Allow 1 mismatch
motifqu search --fasta genome.fa --motif TATAAA --mismatches 1
List Known Biological Motifs
motifqu list-motifs
Expand IUPAC Pattern
# Expand E-box pattern (CANNTG)
motifqu expand CANNTG
Coordinate Output
MotifQu prints both:
- 1-based inclusive coordinates: contig:start-end
- 0-based half-open interval: [start,end)
These coordinates are relative to the FASTA sequence provided.
Biological Context
The quantum motif discovery tool is designed for:
- Transcription Factor Binding Sites (TFBS) - identifying regulatory sequences
- Repeat elements - finding tandem repeats and microsatellites
- Conserved sequences - detecting evolutionarily preserved patterns
The algorithm uses Grover's search to amplify the probability of significant k-mers (those appearing >= threshold times), providing a quadratic speedup over classical enumeration for the 4^k k-mer search space.
Notes
- For discovery, k-mer lengths 4-10bp are recommended (4^k states require 2k qubits)
- The oracle is built from classical pre-computation of k-mer counts
- Reverse complement is counted as the same motif by default (biological DNA is double-stranded)
Metadata
Release files for MotifQu 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 |
|---|---|---|---|---|
| motifqu-1.0.1.tar.gz | 15.7 kB | Without provenance | Details for motifqu-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| motifqu-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for motifqu-1.0.1-py3-none-any.whl |
Total release size: 33.6 kB
Release files / motifqu-1.0.1.tar.gz
| Download URL | motifqu-1.0.1.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1e5c4cb4a73c87eee737369d30e45ade213d54550de212cbfbac801ce701ed5
|
|
BLAKE2b-256 checksum How to use checksums |
36700c4c4f1c3b7dc2ae787be1fb15cb12da20ca447b9a832bd18b6e5176d58a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / motifqu-1.0.1-py3-none-any.whl
| Download URL | motifqu-1.0.1-py3-none-any.whl |
|---|---|
| Size | 17.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66e0f5242ddc55bea942582b3833366fe127b8957d6a65460e610e0fbb9f3999
|
|
BLAKE2b-256 checksum How to use checksums |
58b61b10939344980c69b20f54768e64c677639123f88eed88f1c33c06a589a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for MotifQu 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.