mdshw5 / pyfaidx

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

Make line endings survive round-trip #170

Open mdshw5 opened 3 years ago

mdshw5 commented 3 years ago

I just noticed that the pyfaidx.wrap_sequence function always makes unix newline characters. https://github.com/mdshw5/pyfaidx/blob/master/pyfaidx/__init__.py#L1182

It might be more respectful to keep carriage returns or whatever the original file is using.