GithubHelp home page GithubHelp logo

pysam_issue's Introduction

htslib problem in version bundled with pysam-0.8.0

This is a problem with htslib, not pysam. The problem a bug in bgzf_tell or bgzf_seek, apparently fixed here:

https://github.com/samtools/htslib/commit/c99ed6aa47b5af768053bc6de895d284a440638f

The bug is apparent on running the following command and looking at the first output, the result of tell following a seek.

$ pysam_example.py bam_mapping.bam

pysam 0.8.0 “off the shelf” (incorrect output, note result of first tell):

$ ./pysam_example.py bam_mapping.bam
0x25700000000      m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/47698/10378_10609
0x2570709          m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/47698/9675_10333
0x2571951          m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/47698/9482_9628
0x2571e03          m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/49194/845_1541
0x25731dc          m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/49194/0_798
0x25748c6          m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/32328/387_1134
0x2575e1b          m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/32328/0_344
0x2576822          m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/49050/48_1132
0x2578695          m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/15641/3452_3567

pysam 0.8.0, linked against htslib 1.1: (correct output):

$ ./pysam_example.py bam_mapping.bam
0x2570000          m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/47698/10378_10609
0x2570709          m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/47698/9675_10333
0x2571951          m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/47698/9482_9628
0x2571e03          m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/49194/845_1541
0x25731dc          m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/49194/0_798
0x25748c6          m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/32328/387_1134
0x2575e1b          m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/32328/0_344
0x2576822          m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/49050/48_1132
0x2578695          m140905_042212_sidney_c100564852550000001823085912221377_s1_X0/15641/3452_3567

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.