google-code-export / segtools

Automatically exported from code.google.com/p/segtools
1 stars 1 forks source link

Parsing failure for blank lines in a BED file #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If provided with a segmentation containing a blank line, segtools dies with 
this error message:

    if words[0] == "track":  # Ignore any track lines
IndexError: list index out of range

It should instead say something like "Input file foo.bed is misformatted at 
line 478.  The line is blank."

Original issue reported on code.google.com by thaba...@gmail.com on 3 Sep 2010 at 3:56