diff --git a/lib/galaxy/datatypes/registry.py b/lib/galaxy/datatypes/registry.py index 1c26da81b47..a0ff29cf9b7 100644 --- a/lib/galaxy/datatypes/registry.py +++ b/lib/galaxy/datatypes/registry.py @@ -52,7 +52,6 @@ class Registry( object ): 'qualityscore': qualityscore.QualityScore(), 'scf' : images.Scf(), 'tabular' : tabular.Tabular(), - 'taxonomy' : tabular.Taxonomy(), 'txt' : data.Text(), 'txtseq.zip' : images.Txtseq(), 'wig' : interval.Wiggle() @@ -73,7 +72,6 @@ class Registry( object ): 'qualityscore': 'text/plain', 'scf' : 'application/octet-stream', 'tabular' : 'text/plain', - 'taxonomy' : 'text/plani', 'txt' : 'text/plain', 'txtseq.zip' : 'application/zip', 'wig' : 'text/plain' diff --git a/lib/galaxy/datatypes/tabular.py b/lib/galaxy/datatypes/tabular.py index 1afaf8bf1c8..0e04a289898 100644 --- a/lib/galaxy/datatypes/tabular.py +++ b/lib/galaxy/datatypes/tabular.py @@ -155,17 +155,17 @@ class Taxonomy( Tabular ): continue elems = line.split( '\t' ) - # This data type requires at least 24 columns in the data - int_col_headers = len( elems ) - len( self.column_names ) - if first: #generate header first = False out.append( '' ) - for index, elem in enumerate( elems[0:int_col_headers] ): - out.append( "%s" % ( index+1 ) ) for index, name in enumerate( self.column_names ): - out.append( "%s" % name ) - out.append( '' ) + out.append( "%s.%s" % ( str( index+1 ), name ) ) + # This data type requires at least 24 columns in the data + num_col_headers = len( elems ) - len( self.column_names ) + if num_col_headers > 0: + for index in range( len( self.column_names ), len( elems ) ): + out.append( "%s" % ( index+1 ) ) + out.append( '' ) while len( comments ) > 0: out.append( '' ) diff --git a/scripts/cleanup_datasets.py b/scripts/cleanup_datasets.py index 2b2fc3964f0..24992f38708 100644 --- a/scripts/cleanup_datasets.py +++ b/scripts/cleanup_datasets.py @@ -148,6 +148,7 @@ def purge_histories( h, cutoff_time, remove_from_disk ): start = time.clock() histories = h.query().filter( where ).options( eagerload( 'datasets' ) ) for history in histories: + errors = False for dataset in history.datasets: if not dataset.purged: file_size = dataset.file_size