spoligotyper
In silico spoligotyping of Mycobacterium tuberculosis complex (MTBC) samples, from sequencing reads (fastq) or genome assemblies (fasta). spoligotyper finds the 43 spacers of the direct repeat (DR) locus with Seal from BBTools and reports the spoligotype as binary, octal and hexadecimal codes, and as an SB number from the Mbovis.org database.
Sample SpacerCount Binary Octal Hexadecimal Spoligotype
AF2122_97 56:47:0:58:63:0:... 1101101000001110111111111111111111111100000 664073777777600 6D-03-5F-7F-FF-60 SB0140
Features
- Reads or assemblies: single-end or paired-end fastq, or fasta, gzipped or not. Illumina and nanopore reads.
- Fast: a few seconds per sample, with 1 GB of memory.
- All the standard codes: binary, octal, hexadecimal, and SB number for M. bovis and other animal-adapted lineages.
- Transparent: the number of reads supporting each spacer is reported, and borderline calls are flagged.
Installation
conda install -c conda-forge -c bioconda spoligotyper
Or with pip, if BBTools is already installed (conda install -c bioconda bbmap): pip install spoligotyper.
See Installation for other options.
Quick start
spoligotyper -r1 sample_R1.fastq.gz -r2 sample_R2.fastq.gz -o results/ # Paired-end reads
spoligotyper -r1 sample.fastq.gz -o results/ # Single-end or nanopore reads
spoligotyper -r1 assembly.fasta -o results/ # Assembly
The report is printed and saved as results/<sample>_spoligotyping.txt. New to the tool? The
tutorial types three public genomes in a few minutes.
Documentation
The wiki covers usage and options, output files, how it works, troubleshooting and the FAQ.
Citing
If you use spoligotyper, please cite this repository (GitHub's "Cite this repository" button gives APA and BibTeX formats), and BBTools: Bushnell B. BBTools. https://sourceforge.net/projects/bbmap/
Contributing
Bug reports, questions and pull requests are welcome: see CONTRIBUTING.md.
Author
Marc-Olivier Duceppe, Canadian Food Inspection Agency (CFIA): marc-olivier.duceppe@inspection.gc.ca
License
Release files for spoligotyper 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spoligotyper-0.2.0.tar.gz | 41.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spoligotyper-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 78.0 kB
Release files / spoligotyper-0.2.0.tar.gz
| Download URL | spoligotyper-0.2.0.tar.gz |
|---|---|
| Size | 41.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aecbc1ce27b9b2762e25ba0d0d9a814dbb34feab52c7a6b1899a00ad09e957b3
|
|
BLAKE2b-256 checksum How to use checksums |
724c716de595e8915a0989502a3a19d23c6aa42c9eeb3698736f285a4d15e36d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logRelease files / spoligotyper-0.2.0-py3-none-any.whl
| Download URL | spoligotyper-0.2.0-py3-none-any.whl |
|---|---|
| Size | 36.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36c7881c62749d5b96026d7d29401d92754f2315dcbb9264371f41fc2e009eb9
|
|
BLAKE2b-256 checksum How to use checksums |
05407c51852a7c9b1f569577a1223333b1c839ca22bb5c9a724d523e3c2cf97f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency log