Created
May 18, 2017 18:11
-
-
Save jmchilton/6a9dee80fb676db8029c49a3578d9c7b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import galaxy.tools.parser | |
>>> import galaxy.tools.parser.factory | |
>>> tool_source = galaxy.tools.parser.factory.get_tool_source("bwa.xml") | |
>>> reqs, _ = tool_source.parse_requirements_and_containers() | |
>>> from galaxy.tools.deps.conda_util import CondaTarget | |
>>> from galaxy.tools.deps.conda_util import hash_conda_packages | |
>>> hash_conda_packages([CondaTarget(req.name, req.version) for req in reqs]) | |
'28bd91abdde0d474ee5121c1db757e2fe25984a7b393b5288912c68b29b67e02' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment