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

Providing a custom interaction_types_mapping.csv #61

Open
zedomel opened this issue Oct 7, 2024 · 1 comment
Open

Providing a custom interaction_types_mapping.csv #61

zedomel opened this issue Oct 7, 2024 · 1 comment

Comments

@zedomel
Copy link
Member

zedomel commented Oct 7, 2024

Hi @jhpoelen

The idea is to have how to execute elton passing the interaction_types_mapping.csv file location.
It can be included in the globi.json, for example:

awk -F '\t' -v version_anchor="${VERSION_ANCHOR}" '{ print "{ \"namespace\": \"" $1 "\", \"citation\": \"<" $1 "> <http://www.w3.org/ns/prov#wasDerivedFrom> <" version_anchor "> .\", \"format\": \"dwca\", \"url\": \"https://linker.bio/" $1 "\", \"interaction_types_mapping_location\": \"/home/john/interaction_types_mapping.csv\" }" }' 

Or as elton parameter:
elton stream --interaction-types-mapping=/home/john/interaction_types_mapping.csv

I like the first option, since the usage of a custom interaction types mapping can be preserved in the metadata (globi.json).

What do you think?

best.
josé.

@jhpoelen
Copy link
Member

jhpoelen commented Oct 7, 2024

Thanks for your suggestion! Perhaps we can do both support for globi.json as well as the command-line option, so that you can run elton with or without globi.json .

Also, I'd be curious to hear your ideas on how to combine the Preston idea of recording associations with locations (e.g., /home/john/interaction_types_mapping.csv) and their content signatures (e.g., hash://sha256/abc...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants