# HG changeset patch --
Bitbucket.org
# Project galaxy-dist
# URL
http://bitbucket.org/galaxy/galaxy-dist/overview
# User Dan Blankenberg <dan(a)bx.psu.edu>
# Date 1280371288 14400
# Node ID 9780508ee0c31b132158842afcae6c5ef90028a7
# Parent 75e99661d24caaeda1381b14cd062ffdcf7c3ecd
Allow interval to bedstrict converter to work on bed files that may have e.g. a
'track' line.
--- a/lib/galaxy/datatypes/converters/interval_to_bedstrict_converter.py
+++ b/lib/galaxy/datatypes/converters/interval_to_bedstrict_converter.py
@@ -81,8 +81,8 @@ def __main__():
first_skipped_line = count + 1
continue
fields = line.split('\t')
- assert len( fields ) >= 3, 'A BED file requires at least 3
columns' #we can't fix this
try:
+ assert len( fields ) >= 3, 'A BED file requires at least 3
columns' #we can't fix this
if len(fields) > 12:
strict_bed = False
break