Overview of pyfaidx
masterpyfaidx is a Python module designed for fast random access to subsequences in FASTA files. It implements pure Python classes for indexing, retrieval, and in-place modification of FASTA files using a .fai index format that is compatible with Samtools' faidx function.
Key features include:
- Fast Random Access: Uses a small flat index file (
.fai) to load minimal amounts of data into memory. - API Compatibility: Compatible with the
pygrseqdbmodule. - CLI Tool: Includes a
faidxcommand-line script for complex FASTA file manipulation without writing code.