mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Quick fix for Wiggle.set_meta(). No longer scans the entire file when using floating point data values or when contents are BED or variableStep.
This commit is contained in:
@@ -715,12 +715,16 @@ class Wiggle( Tabular ):
|
||||
if line and not line.startswith( '#' ):
|
||||
elems = line.split( '\t' )
|
||||
try:
|
||||
int( elems[0] )
|
||||
float( elems[0] ) #"Wiggle track data values can be integer or real, positive or negative values"
|
||||
break
|
||||
except:
|
||||
do_break = False
|
||||
for str in data.col1_startswith:
|
||||
if elems[0].lower().startswith(str):
|
||||
do_break = True
|
||||
break
|
||||
if do_break:
|
||||
break
|
||||
Tabular.set_meta( self, dataset, overwrite = overwrite, skip = i )
|
||||
|
||||
def sniff( self, filename ):
|
||||
|
||||
Reference in New Issue
Block a user