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

Command line wrapper #22

Merged
merged 11 commits into from
May 2, 2018
Merged

Command line wrapper #22

merged 11 commits into from
May 2, 2018

Conversation

lhannest
Copy link
Contributor

@lhannest lhannest commented May 1, 2018

- PandasTransformer save method now saves both edge set and node set,
  and collects the files into a tar file.
- Updated README.md to show examples from tests
- Made kgx command line wrapper print the name of the directory upon
  success, since the output filename is not necessarily what the user
  requested.
@lhannest lhannest changed the title Resolve issue #10 Resolve #10 May 1, 2018
@lhannest lhannest requested a review from cmungall May 1, 2018 14:33
@lhannest lhannest removed the request for review from cmungall May 1, 2018 17:51
@lhannest lhannest changed the title Resolve #10 Command line wrapper May 1, 2018
Copy link
Contributor

@cmungall cmungall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

Why is pymongo required?

https://github.com/NCATS-Tangerine/kgx/pull/22/files#diff-b4ef698db8ca845e5845c4618278f29aR11

should click not be in requirements.txt?

- Added click to requirements.txt
- Fix mistaken error message in kgx.py
- Fix ziptype file extention bug in pandas_transformer.py
@lhannest
Copy link
Contributor Author

lhannest commented May 1, 2018

@cmungall I added pymongo just to get rid of the warning:

/home/lance/git/2018/summer/kgx/venv/lib/python3.4/site-packages/cachier/mongo_core.py:24: UserWarning: Cachier warning: pymongo was not found. MongoDB cores will not work.
  "Cachier warning: pymongo was not found. MongoDB cores will not work.")

Alternatively, we could export PYTHONWARNINGS="ignore" to our environment. I have removed pymongo and added click to requirements.txt.

- Now calling report method to print cardinality of edges and nodes
@cmungall
Copy link
Contributor

cmungall commented May 2, 2018

ah, I guess prefixcommons i bringing in cachier, and cachier brings in mongo_core, and that has the warning.

we should fix prefixcommons (our code), when we fix ontobio to go from cachier to diskcache biolink/ontobio#140 cc @deepakunni3

@cmungall cmungall merged commit 09750a2 into master May 2, 2018
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

Successfully merging this pull request may close these issues.

command line wrapper
2 participants