[hg] galaxy 2842: Fixed bug in bed_to_interval_index converter.
details: http://www.bx.psu.edu/hg/galaxy/rev/31c577c6fd49 changeset: 2842:31c577c6fd49 user: guru date: Wed Oct 07 15:25:16 2009 -0400 description: Fixed bug in bed_to_interval_index converter. 1 file(s) affected in this change: lib/galaxy/datatypes/converters/bed_to_interval_index_converter.py diffs (14 lines): diff -r 6252781aa157 -r 31c577c6fd49 lib/galaxy/datatypes/converters/bed_to_interval_index_converter.py --- a/lib/galaxy/datatypes/converters/bed_to_interval_index_converter.py Wed Oct 07 12:43:15 2009 -0400 +++ b/lib/galaxy/datatypes/converters/bed_to_interval_index_converter.py Wed Oct 07 15:25:16 2009 -0400 @@ -15,8 +15,8 @@ offset = 0 for line in open(input_fname, "r"): - feature = line.split() - if not feature or feature[0] == "track" or feature[0] == "#": + feature = line.strip().split() + if not feature or feature[0].startswith("track") or feature[0].startswith("#"): offset += len(line) continue chrom = feature[0]
participants (1)
-
Greg Von Kuster