-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get MSDF from LinkML objects #440
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will have to rely on your own self-critical assessment of any risks involved here.. I checked it line by line, and it looks good to me, but I cannot mentally parse all of the details..
Are there any risks involved?
@matentzn only risks is that there are more convoluted ways people will think of on how they want to provide metadata, besides that and some of the new python idioms, this is pretty straightforward. |
@matentzn I added a round-trip test that demonstrates this works |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks fine to me!
* Improve SSSOM-py usage Relies on mapping-commons/sssom-py#440 * Update pyproject.toml * Update sssom_utils.py * Update sssom_utils.py * Make code independent * Fix typo * Update lexical_indexer.py * Update test_sssom_matcher.py * Update test_sssom_matcher.py * Update pyproject.toml * Update lock * Update lexical_indexer.py * Update test_sssom_matcher.py * Update pyproject.toml * Lock * Lock again * Update reqs
Closes #439
This PR adds three methods to the
MappingSetDataFrame
class that allow instantiation from LinkML objects such asMappingSetDocument
,MappingSet
, or a list ofMapping
.It has the benefit of pre-baking in logic for dealing with default metadata and converters, meaning that nobody has to roll this themselves downstream
This is going to help us address https://github.com/INCATools/ontology-access-kit/blob/75940bfa883001afb0e4aebb339fd62583c13844/src/oaklib/utilities/lexical/lexical_indexer.py#L313-L325, specifically in INCATools/ontology-access-kit#664