nilesh-iiita / pysam

Automatically exported from code.google.com/p/pysam
0 stars 0 forks source link

Integer tag gets changed after using pysam #101

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If a read tag has an integer value greater than 65535, after reading and 
writing by pysam, it will turn into a float.

For example, 'CP:i:55605534' will become 'CP:f:5.56055e+07'.

Should line 2355 in csamtools.pyx be the following?
value = <int32_t>bam_aux2i(s)

Original issue reported on code.google.com by mark.sph...@gmail.com on 11 Oct 2012 at 4:08

GoogleCodeExporter commented 9 years ago
Indeed it should!

Many thanks, fixed!
Best wishes,
Andreas

Original comment by andreas....@gmail.com on 20 Nov 2012 at 10:21