Add MEPRAM and Redlabra schemas/templates to assets, add amr genes json to conf, and improve metadata template formatting#889
Merged
Conversation
ESapenaVentura
requested changes
May 27, 2026
Member
ESapenaVentura
left a comment
There was a problem hiding this comment.
Haven't checked the JSON files, some minor comments in the code 👍
| if not isinstance(values, list): | ||
| return values | ||
| return self._unique_enum_values( | ||
| [self._clean_enum_ontology_annotation(value) for value in values] |
Member
There was a problem hiding this comment.
Suggested change
| [self._clean_enum_ontology_annotation(value) for value in values] | |
| [BuildSchema._clean_enum_ontology_annotation(value) for value in values] |
|
|
||
| @staticmethod | ||
| def _clean_enum_ontology_annotation(value: any) -> any: | ||
| """Remove ontology annotations displayed between brackets from enum labels.""" |
Member
There was a problem hiding this comment.
If possible, I would recommend following this format for code comments:
| [re.sub(r"\s*\[.*?\]", "", item).strip() for item in enums] | ||
| if database_definition: | ||
| required_values = { | ||
| property_id: self._format_template_required_value( |
Member
There was a problem hiding this comment.
Suggested change
| property_id: self._format_template_required_value( | |
| property_id: BuildSchema._format_template_required_value( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds MEPRAM and RedLabRA schemas/templates to assets, adds the AMR genes JSON to conf, and improves metadata template formatting.
Changes
Y if ....Y->YESN->NOY if ...->YES if ...PR Checklist
black and flake8).CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).