-
Notifications
You must be signed in to change notification settings - Fork 68
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
Functions to parse YAML output to KGX-compliant CSV #349
Functions to parse YAML output to KGX-compliant CSV #349
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.
Big thanks @serenalotreck !
I'll finish integrating this and add the options to the CLI.
One detail - I'm going to make it such that the root class in the schema doesn't have to be |
OK, basic functionality is all there, though it's a bit rough. |
Added two functions to
src/ontogpt/io/csv_wrapper.py
to convert the YAML output to KGX-compliant CSVs as per #343.I left the original two functions untouched, as I wasn't sure how to integrate my changes into them.This code relies on the assumptions that:
extracted_object
will always have entities as lists of strings and relations as lists of dictionaries.