-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test failures in TestTruncatedBAM #1128
Comments
The ex2_truncated.bam test file is constructed (in tests/pysam_data/Makefile) using this somewhat naive rule: ex2_truncated.bam: ex2.bam
head -c 124000 ex2.bam > ex2_truncated.bam And ex2.bam is constructed via Samtools built without libdeflate produces an ex2.bam file of 124703 bytes, so that 3½ years after that test case was added, HTSlib added support for using libdeflate in place of zlib. Samtools built with libdeflate produces an ex2.bam file of 122804 bytes. So that What does So we'll make the rule that truncates ex2_truncated.bam rather smarter. In the meantime, if it is important to produce a clear test run, you could work around this by using a non-libdeflate samtools to generate pysam's test data files. |
Changing |
On 0.19.1 (python 3.7-3.10 tested), tests fail like this:
Running
samtools index ex2_truncated.bam
gets rid of the "can't retrieve index" issue, but the assertion still happens.The text was updated successfully, but these errors were encountered: