Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/planemo/bioblend.py @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
| author | shellac |
|---|---|
| date | Mon, 22 Mar 2021 18:12:50 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:4f3585e2f14b |
|---|---|
| 1 """Planemo layer for ensuring bioblend available.""" | |
| 2 try: | |
| 3 from bioblend import toolshed | |
| 4 from bioblend import galaxy | |
| 5 except ImportError: | |
| 6 toolshed = None | |
| 7 galaxy = None | |
| 8 | |
| 9 BIOBLEND_UNAVAILABLE = ("This functionality requires the bioblend library " | |
| 10 " which is unavailable, please install `pip install " | |
| 11 "bioblend`") | |
| 12 | |
| 13 | |
| 14 def ensure_module(): | |
| 15 """Throw an exception if bioblend is not available to Planemo.""" | |
| 16 if toolshed is None: | |
| 17 raise Exception(BIOBLEND_UNAVAILABLE) |
