From d584fee04c96f16d20fab6167e836a9360d3cc39 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Mon, 4 Mar 2019 21:36:59 -0500 Subject: [PATCH] Ensure metadata.properties entry exists for fastg --- lib/galaxy/datatypes/sequence.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/galaxy/datatypes/sequence.py b/lib/galaxy/datatypes/sequence.py index 4aacb73e5822..82977e96b25a 100644 --- a/lib/galaxy/datatypes/sequence.py +++ b/lib/galaxy/datatypes/sequence.py @@ -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']