Closed sfbrunner closed 7 years ago
This is expected behavior for the current version, since writes are not immediately flushed to disk and instead may be buffered. There shouldn't be much of a performance penalty to change this and make MutableFastaRecord
flush writes. I'll make the change and release 0.4.8.4 shortly.
Thanks for reporting this, by the way!
The new version is available and hopefully meets your needs: https://pypi.python.org/pypi/pyfaidx
Thanks for the rapid response, I'll give the new version a try!
Btw: are you going to attend the Abcam Mutational Signatures conference in Boston this week?
No, but that looks like a worthwhile conference. I'll have to check it out for next year!
Hi there, First of, thanks for writing pyfaidx, it's really useful to my work. I am currently experiencing an issue where I try to replace a sequence fragment of a FASTA file and the replacement only takes place sporadically. Ie. I do the following:
Now if I check the file on disk, it does not contain the 'N's. If I then execute the same command again, it now does. Just appears as if the changes do not always take effect. Have you ever seen a similar error? Do you know a fix for this? I am using bioconda pyfaidx version 0.4.8.1 py27_0.
Thanks!