Programatic access / Python API
jpiper opened this issue · comments
It would be great if users had programmatic access to TransVar rather than having to use the command line tool and
At the moment I've modified TransVar so that we can use it from within an analytics system written in Python (rather than calling it through the command line and reading the data back again), but this is a dirty hack so I'm not really comfortable opening a PR for this - I had to make Record.formats
return information as a python dictionary rather than print to stdout, and then pass this object back through the call stack to _main_one_
, but I'm not sure if this is the best way to do this.
Thanks for the suggestion. I understand the problem and can't think of a better way to do that with the current code now. I plan to have transvar return records to the main call stack and decide there whether to print.