monarch-initiative/koza

Add a tutorial for using Koza from python rather than command line

Closed this issue · 3 comments

aka, a friendly doc for using Koza from a kg-hub

  • Link to config reference
  • How to execute from python
  • Where to get translation table?

I would find this very helpful!

@caufieldjh I think this might be the main thing you need:

from koza.cli_runner import transform_source

transform_source("./examples/string/protein-links-detailed.yaml",
                 "output", "tsv", "./examples/translation_table.yaml", None)

I added the small example above to the docs as a part of #44