galaxy-dist commit 29227c9c5992: Relax GTF sniffer ever so slightly so that Ensembl GTF files are sniffed correctly.
# HG changeset patch -- Bitbucket.org # Project galaxy-dist # URL http://bitbucket.org/galaxy/galaxy-dist/overview # User jeremy goecks <jeremy.goecks@emory.edu> # Date 1290019719 18000 # Node ID 29227c9c599292f7608e61cdd4b2be424b7a7bfc # Parent 1ee9e2490e1968957f5f440a9dd08fb75aa3eb70 Relax GTF sniffer ever so slightly so that Ensembl GTF files are sniffed correctly. --- a/lib/galaxy/datatypes/interval.py +++ b/lib/galaxy/datatypes/interval.py @@ -965,7 +965,9 @@ class Gtf( Gff ): if len( attributes ) >= 2: try: # Imprecise: should check for a single space per the spec. - attr_name, attr_value = attributes[0].split(" ") + # strip() needed b/c Ensembl GTF files include an (illegal) + # space before attributes string. + attr_name, attr_value = attributes[0].strip().split(" ") if attr_name != 'gene_id': return False except:
participants (1)
-
commits-noreply@bitbucket.org