Skip to content

Commit

Permalink
Merge branch 'release_17.01' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo committed Feb 13, 2017
2 parents b4b75b2 + 5db0b76 commit 9f9d0cb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/galaxy/datatypes/interval.py
Expand Up @@ -1521,6 +1521,14 @@ def sniff(self, filename):
fh = open(filename, "r")
while True:
line = fh.readline()
if not line:
# EOF
if count > 1:
# The second line is always the labels:
# chrom index forward reverse value
# We need at least the column labels and a data line.
return True
return False
line = line.strip()
# The first line is always a comment like this:
# 2015-11-23 20:18:56.51;input.bam;READ1
Expand All @@ -1530,14 +1538,6 @@ def sniff(self, filename):
continue
else:
return False
if not line:
# EOF
if count > 1:
# The second line is always the labels:
# chrom index forward reverse value
# We need at least the column labels and a data line.
return True
return False
# Skip first line.
if count > 1:
items = line.split('\t')
Expand Down

0 comments on commit 9f9d0cb

Please sign in to comment.