Research indexJournal article
Efficient "pythonic" access to FASTA files using pyfaidx
Shirley, Ma, Pedersen and 1 other
8 Apr 2015Open access
NobleIDark:/48914/w1/20260515/AE0B652ADOI10.7287/peerj.preprints.970v1
Efficient "pythonic" access to FASTA files using pyfaidx
Shirley, Ma, Pedersen and 1 other · 2015
NobleIDark:/48914/w1/20260515/AE0B652ADOI10.7287/peerj.preprints.970v1
Free to read at the publisher
You can read the abstract here, or the full text at the publisher.
Abstract
The pyfaidx Python module provides memory and time-efficient indexing, subsetting, and in-place modification of subsequences of FASTA files. pyfaidx provides Python classes that expose a dictionary interface where sequences from an indexed FASTA can be accessed by their header name and then sliced by position without reading the full file into memory. pyfaidx includes an extensive test suite to ensure correct and reproducible behavior. A command-line program (faidx) is also provided as an alternative interface, with significant enhancements to functionality, while maintaining full index file compatibility with samtools. The pyfaidx module is installable from PyPI (https://pypi.python.org/pypi/pyfaidx), and development versions can be found at Github (https://github.com/mdshw5/pyfaidx).