[hg] galaxy 1634: (no commit message)
details: http://www.bx.psu.edu/hg/galaxy/rev/ad26fd305881 changeset: 1634:ad26fd305881 user: wychung date: Tue Nov 18 11:23:09 2008 -0500 description: (no commit message) 3 file(s) affected in this change: lib/galaxy/datatypes/converters/fasta_to_tabular_converter.py tools/fasta_tools/fasta_compute_length.py tools/fasta_tools/fasta_to_tabular.py diffs (36 lines): diff -r 950a71339420 -r ad26fd305881 lib/galaxy/datatypes/converters/fasta_to_tabular_converter.py --- a/lib/galaxy/datatypes/converters/fasta_to_tabular_converter.py Fri Nov 14 13:21:02 2008 -0500 +++ b/lib/galaxy/datatypes/converters/fasta_to_tabular_converter.py Tue Nov 18 11:23:09 2008 -0500 @@ -27,7 +27,7 @@ else: if line: sequence += line - if line.split()[0].isdigit(): + if line.split() and line.split()[0].isdigit(): sequence += ' ' if sequence: seq_hash[( sequence_count, title )] = sequence diff -r 950a71339420 -r ad26fd305881 tools/fasta_tools/fasta_compute_length.py --- a/tools/fasta_tools/fasta_compute_length.py Fri Nov 14 13:21:02 2008 -0500 +++ b/tools/fasta_tools/fasta_compute_length.py Tue Nov 18 11:23:09 2008 -0500 @@ -34,7 +34,7 @@ tmp_seq = '' else: tmp_seq = "%s%s" % ( tmp_seq, line ) - if line.split()[0].isdigit(): + if line.split() and line.split()[0].isdigit(): tmp_seq = "%s " % tmp_seq if len( tmp_seq ) > 0: seq_hash[ ( tmp_seq_count, tmp_title ) ] = tmp_seq diff -r 950a71339420 -r ad26fd305881 tools/fasta_tools/fasta_to_tabular.py --- a/tools/fasta_tools/fasta_to_tabular.py Fri Nov 14 13:21:02 2008 -0500 +++ b/tools/fasta_tools/fasta_to_tabular.py Tue Nov 18 11:23:09 2008 -0500 @@ -35,7 +35,7 @@ sequence = '' else: sequence = "%s%s" % ( sequence, line ) - if line.split()[0].isdigit(): + if line.split() and line.split()[0].isdigit(): sequence += ' ' if sequence: seq_hash[( sequence_count, title )] = sequence
participants (1)
-
Greg Von Kuster