Skip to content

Commit

Permalink
added support for qc_ruleset
Browse files Browse the repository at this point in the history
  • Loading branch information
B3rse committed Jan 2, 2024
1 parent baa661b commit d1d6e4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pipeline_utils/lib/yaml_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ class YAMLMetaWorkflow(YAMLTemplate):
RULE_SCHEMA = 'rule'
FLAG_SCHEMA = 'flag'
QC_RULE_SCHEMA = 'qc_rule'
QC_RULESET_SCHEMA = 'qc_ruleset'
QC_RULESET_PORTAL_SCHEMA = 'QC ruleset'

def __init__(self, data):
"""Constructor method.
Expand All @@ -362,6 +364,9 @@ def _arguments(self, input, consortia):
self.ARGUMENT_NAME_SCHEMA: name,
self.ARGUMENT_TYPE_SCHEMA: type
}
if type == self.QC_RULESET_SCHEMA: # replacing qc_ruleset
# with portal correspoding key
argument_[self.ARGUMENT_TYPE_SCHEMA] = self.QC_RULESET_PORTAL_SCHEMA
if type == self.PARAMETER_SCHEMA:
argument_[self.VALUE_TYPE_SCHEMA] = format
for k, v in values.items():
Expand Down
2 changes: 1 addition & 1 deletion pipeline_utils/schemas/yaml_metaworkflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
schema.PROPERTIES: {
'argument_type': {
schema.TYPE: schema.STRING,
schema.PATTERN: '^file\\..+|^parameter\\..+'
schema.PATTERN: '^file\\..+|^parameter\\..+|^qc_ruleset\\..+'
},
'dimensionality': {
schema.TYPE: schema.NUMBER
Expand Down

0 comments on commit d1d6e4f

Please sign in to comment.