Overview of pyfastx features and capabilities
masterpyfastx is a lightweight Python C extension designed for efficient, random access to sequences in both plain and gzipped FASTA/Q files. It uses a sqlite3 database to store indexes, allowing for fast random access without high memory consumption.
Key Features:
- Random Access: Quickly extract sequences from FASTA or reads from FASTQ files by identifier or index number.
- Gzip Support: Fast random access even within compressed gzipped files.
- Memory Efficiency: Lightweight parsing suitable for large genomic datasets.
- Flexible Parsing: Supports both standard (fixed-length lines) and nonstandard (variable-length lines) FASTA formats.
- Sequence Analysis:
- Calculate assembly N50 and L50.
- Calculate GC content and nucleotide composition.
- Extract reverse, complement, and antisense sequences.
- Iteration: Read FASTA sequences line by line.