Changeset 1458:aa61df21f5ec

Show
Ignore:
Timestamp:
07/29/08 11:24:28 (5 months ago)
Author:
dan@scofield.bx.psu.edu
branch:
default
Message:

Bug fix for Concatenate FASTA alignment by species tool.
Also added a warning stating that this tool will only work on Galaxy style FASTA headers.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/galaxy/tools/util/maf_utilities.py

    r1356 r1458  
    356356    if len( fields ) > 2: 
    357357        for i in xrange( 1, len( fields ) - 1 ): 
    358             prop = fields[i].split( '=' ) 
    359             attributes[ prop[0] ] = prop[1] 
     358            prop = fields[i].split( '=', 1 ) 
     359            if len( prop ) == 2: 
     360                attributes[ prop[0] ] = prop[1] 
    360361    if len( fields ) > 1: 
    361362        attributes['__suffix__'] = fields[-1] 
  • tools/fasta_tools/fasta_concatenate_by_species.xml

    r1356 r1458  
    6464  GTGT 
    6565 
     66 
     67.. class:: warningmark  
     68 
     69 This tool will only work properly on files with Galaxy style FASTA headers. 
     70 
    6671</help> 
    6772</tool>