mdshw5 / pyfaidx

Efficient pythonic random access to fasta subsequences
https://pypi.python.org/pypi/pyfaidx
Other
449 stars 75 forks source link

Make FASTA index creation atomic #175

Closed mdshw5 closed 3 years ago

mdshw5 commented 3 years ago

This addresses the comment in #174 and mitigates incomplete .fai file creation by first creating a temporary file, and then moving this file after successful creation.