Skip to content
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

Create Repository For Applying Mappings to KGX Files #227

Open
putmantime opened this issue Apr 15, 2022 · 3 comments
Open

Create Repository For Applying Mappings to KGX Files #227

putmantime opened this issue Apr 15, 2022 · 3 comments
Labels

Comments

@putmantime
Copy link
Contributor

putmantime commented Apr 15, 2022

This is currently done in cat-merge.

@putmantime
Copy link
Contributor Author

This potentially could be a feature of KGX tooling or SSOM.
Applying SSOM mapping to KGX edge files is not a problem specific to Monarch and an abstracted tool could be a KGX command.

@cmungall @matentzn

@putmantime putmantime removed their assignment Feb 9, 2023
@matentzn
Copy link
Member

I agree this would be great. People keep asking me how to do "rewiring with SSSOM mappingsets" and I keep telling them to ask Monarch Devs, but the better answer would be kgx rewire --mappings mappings.sssom.tsv --kg kg.kgx.tsv.

@kevinschaper
Copy link
Member

I think we could approach this as a Koza operation.

Koza has a solid implementation of sssom rewiring now, so with no changes to Koza, we could write a config yaml and a transform script that just passed an entity through and rewiring would be applied in the koza writer.

We could easily improve Koza for this by adding a pass-through mode that would just send whatever comes out of the reader into the writer, which eliminates the need for a transform.py. I think we could also improve the ability to specify command line args in place of koza config yaml enough that a koza command line alone would be enough to rewire a file.

Koza's limitation of only knowing how to write kgx files might be something we'd also have to solve for this, depending on what else we might want to apply rewiring to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Todo
Development

No branches or pull requests

3 participants