(Pure) Python scripts and libraries for bioinformatics.
The bin directory contains over 100 utility scripts. These fall into
the following categories:
- FASTA/FASTQ: general sequence inspection, filtering, and manipulation
- DNA/amino-acid translation and codon tools
- Pairwise sequence comparison
- Multiple-sequence-alignment (MSA) and alignment-position analysis
- Consensus-sequence building
- Read mapping and SAM/BAM analysis
- BLAST/DIAMOND hit processing and alignment panels
- Protein/genome SQLite databases and GenBank data
- Taxonomy
- Phylogenetic trees (Newick)
- Core reads & sequence I/O
- DNA & amino-acid biology
- Sequence alignment & comparison
- Alignment-result containers, filtering & summarization
- BLAST
- DIAMOND
- SAM/BAM, read mapping & consensus building
- Protein/genome databases, GenBank & taxonomy
- Phylogenetic trees
- Visualization: plotting & HTML
- General utilities
pip install dark-matteror, using uv:
uv add dark-matterdark-matter supports Python 3.10 through 3.15.
The full documentation is at acorg.github.io/dark-matter, built from the Markdown files below:
doc/scripts.md— the command-line scripts inbin, for people who just want to run existing tools.doc/library.md— thedarkPython library undersrc/dark, for developers who want to write their own code against it.doc/reads.md— the centralReadclass hierarchy.
git clone https://github.com/acorg/dark-matter.git
cd dark-matter
uv syncRun the tests with
make pytestor directly via
uv run pytestMIT. See LICENSE.