dark-matter¶
(Pure) Python scripts and libraries for bioinformatics.
Source code: github.com/acorg/dark-matter
Overview¶
Utility scripts¶
The bin directory contains over 100 utility scripts. See
Scripts for the full list, grouped into categories such as:
- 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)
Library functions¶
The dark library, under src/dark, is documented in Library
for developers who want to write their own code against it, grouped into
categories such as:
- 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
See Reads for a dedicated explanation of the central Read
class hierarchy that underlies most of the above.
Installation¶
pip install dark-matter
or, using uv:
uv add dark-matter
dark-matter supports Python 3.10 through 3.15.
License¶
MIT. See LICENSE.