details: http://www.bx.psu.edu/hg/galaxy/rev/9f32d8c55e30 changeset: 3586:9f32d8c55e30 user: Dan Blankenberg <dan@bx.psu.edu> date: Wed Mar 31 12:36:05 2010 -0400 description: Fix old style display viewport generation when stop column is last column on a line. diffstat: lib/galaxy/datatypes/interval.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (20 lines): diff -r 56f4041ca926 -r 9f32d8c55e30 lib/galaxy/datatypes/interval.py --- a/lib/galaxy/datatypes/interval.py Wed Mar 31 10:59:20 2010 -0400 +++ b/lib/galaxy/datatypes/interval.py Wed Mar 31 12:36:05 2010 -0400 @@ -150,7 +150,7 @@ peek = [] for idx, line in enumerate(file(dataset.file_name)): if line[0] != '#': - peek.append( line.split() ) + peek.append( line.rstrip( '\n\r' ).split() ) if idx > 10: break @@ -975,6 +975,7 @@ wiggle_format = False for line in open(dataset.file_name): if (line.startswith("chr") or line.startswith("scaffold")): + line = line.rstrip( '\n\r' ) start = line.split("\t")[1].replace(",","") end = line.split("\t")[2].replace(",","")