From f6d38b53e693f9d134614c90f1031bdc0e712097 Mon Sep 17 00:00:00 2001 From: Vasu Jaganath Date: Tue, 20 Aug 2024 15:41:15 -0400 Subject: [PATCH] remove metags from inline cwl in runtag --- src/sophios/plugins.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sophios/plugins.py b/src/sophios/plugins.py index 8206aa63..91a33c46 100644 --- a/src/sophios/plugins.py +++ b/src/sophios/plugins.py @@ -189,6 +189,9 @@ def cwl_update_inline_runtag(cwl: Cwl, path: Path, relative_run_path: bool) -> C yml_path = Path(runtag_orig) # Assume absolute path in the runtag with open(yml_path, mode='r', encoding='utf-8') as f: runtag_raw = yaml.safe_load(f.read()) + # local $namespace and $schema tag shouldn't be in inline cwl steps + runtag_raw.pop('$namespaces', None) + runtag_raw.pop('$schemas', None) step['run'] = runtag_raw else: pass # We only care if the runtag is a cwl filepath