lmdu / pyfastx

a python package for fast random access to sequences from plain and gzipped FASTA/Q files
https://pyfastx.readthedocs.io
MIT License
262 stars 23 forks source link

Support FASTA headers without whitespace #58

Closed kkchau closed 10 months ago

kkchau commented 1 year ago

Allow support for indexing FASTA files with identifiers that don't contain whitespace while full_name=False.

Index creation iterates through the header line until a whitespace character is found, but if the iteration doesn't encounter a whitespace character, the string is terminated at a position one-too-far. If this happens, just reset the index back to the original length.

Also bumps zlib to 1.3

kkchau commented 11 months ago

@lmdu wondering if you could take a look at this PR?

kkchau commented 10 months ago

Addressed by https://github.com/lmdu/pyfastx/commit/465bac0677d78b76d5a350e2f255d7b7d3d9264b, closing