Python Collections & Regex for Bioinformatics
When to Use
| Type | Use case | |---|---| | list | ordered sequences, sliding windows, k-mer extraction | | tuple | fixed records: gene coords (name, chr, start, end), SNP (chr, pos, ref, alt) | | namedtuple | readable fixed records with field names; dict keys | | dict | codon table, gene lengths, annotations; O(1) access | | defaultdict(list/set/int) | grouping by chromosome, reverse codon table | | Counter | k-mer frequencies
[Description truncada. Veja o README completo no GitHub.]