Skip to content

Commit

Permalink
Merge pull request #6 from dannon/UserBasedObjectStore2
Browse files Browse the repository at this point in the history
Ensure metadata.properties entry exists for fastg
  • Loading branch information
VJalili authored Mar 5, 2019
2 parents e714f8f + d584fee commit a54ada7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/galaxy/datatypes/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,8 @@ def set_meta(self, dataset, **kwd):
break
if line.startswith('#FASTG'):
props = {x.split('=')[0][1:]: x.split('=')[1] for x in re.findall(':[a-zA-Z0-9_]+=[a-zA-Z0-9_().,\" ]+', line)}
if not dataset.metadata.properties:
dataset.metadata.properties = {}
dataset.metadata.properties.update(props)
if 'version' in props:
dataset.metadata.version = props['version']
Expand Down

0 comments on commit a54ada7

Please sign in to comment.