Closed simon-anders closed 7 years ago
started working on this in my branch samflag_B, it should be easy at least to ignore the flag, maybe a bit more serious to treat it properly (because it introduces a whole array of numbers so some logic might change).
it should work now as implemented by commits 73e3b50 (python2) and 6bb42ff84ca5520c05e30a5fd093b309aab2a20a (python3)
Guillermo Parada from Sanger reported on 1 Feb 2016:
[...] I writing to you to kindly inform that dexseq_count.py is currently incompatible with the SAM output of STAR (probably the most widely used mapping tool nowadays). This is the error that I get:
I figured out that this error is due to two optional field of the STAR SAM output that are not currently supported by the HTSeq library. This is how STAR SAM format looks like:
The two last optional fields are the responsible of this incompatibility issue. Fortunately, I can continue my work by manually removing those flags (jM:B:c,-1 and jI:B:i,-1) But I thought that was nice to report this to your group as probably other users are experiencing similar difficulties. In my experience the usage of pysam library instead of HTSeq can make your script more robust to this odd optional fields.