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.
PDF report of the tutorial: summary, and the evidence for each sample.
Features
- Reads or assemblies: single-end or paired-end fastq, or fasta, gzipped or not. Illumina and nanopore reads.
- Batch mode: point it at a folder; fastq and fasta files are detected and R1/R2 files paired automatically.
- All the standard codes: binary, octal, hexadecimal, and SB number for M. bovis and other animal-adapted lineages.
- PDF report for QA: results, reads supporting each spacer, input files with checksums, software versions, parameters, operator, date, and a review box. Plus a tab-separated table for pipelines.
- Transparent: borderline calls, low depth and failed samples are flagged, never hidden.
- Fast: a few seconds per sample, with 1 GB of memory.
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
spoligotyper -i folder/ -o results/ # All the samples in a folder
The results are printed and saved in results/ as a table and a PDF report. 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 it and BBTools, which finds the spacers:
Duceppe M-O. spoligotyper: in silico spoligotyping of Mycobacterium tuberculosis complex genomes. Zenodo. https://doi.org/10.5281/zenodo.22926160
This DOI always points to the latest version; each release also has its own DOI, listed on Zenodo. GitHub's "Cite this repository" button gives the same citation in APA and BibTeX formats.
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.3.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.3.0.tar.gz | 110.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spoligotyper-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 212.7 kB
Release files / spoligotyper-0.3.0.tar.gz
| Download URL | spoligotyper-0.3.0.tar.gz |
|---|---|
| Size | 110.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f79828b6a9d06d49d0846e4418d078e0647eaf613657ffa13c5ed6245e935b6
|
|
BLAKE2b-256 checksum How to use checksums |
03684f3ca74281ccd9c33382dd80a534e5666307c7acc3f9a1ded2bcf70ae241
|
| 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.3.0-py3-none-any.whl
| Download URL | spoligotyper-0.3.0-py3-none-any.whl |
|---|---|
| Size | 102.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74ed99dfe11ad6e3bf9f3523accc60e0f7665a024eb0ccdc2f7f441339d3b5b5
|
|
BLAKE2b-256 checksum How to use checksums |
69e17de722ae99778b8390f7afc00bd636813054cac521d5f0d71d7631177cef
|
| 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