lixin6135 / pysam

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

pysam.Samfile(sam_filename, "rU")) not allowed #72

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Try to open a SAM file with universal new line mode ("rU"), for example opening 
a Unix SAM file on Windows or the other way around.

What is the expected output?

Opens the SAM file.

What do you see instead?

Traceback (most recent call last):
  ...
  File "csamtools.pyx", line 459, in csamtools.Samfile.__cinit__ (pysam/csamtools.c:4992)
  File "csamtools.pyx", line 504, in csamtools.Samfile._open (pysam/csamtools.c:5669)
AssertionError: invalid file opening mode `rU`

What version of the product are you using? On what operating system?

pysam 0.5, Mac OS X Snow Leopard.

Please provide any additional information below.

http://docs.python.org/library/functions.html#open

Original issue reported on code.google.com by p.j.a.c...@googlemail.com on 13 Oct 2011 at 3:04

GoogleCodeExporter commented 8 years ago
Thanks, fixed!

Original comment by andreas....@gmail.com on 19 Oct 2011 at 8:22