Mercurial > repos > peterjc > mira_assembler
comparison tools/mira3/mira.py @ 27:85b86f31327c draft
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira3/ commit 206259620376b322fc8ed99a6efdd3712f38764b
| author | peterjc |
|---|---|
| date | Wed, 11 Jul 2018 12:34:58 -0400 |
| parents | ad14a345f1b0 |
| children | e28d6015fc56 |
comparison
equal
deleted
inserted
replaced
| 26:2e7e2bc0d718 | 27:85b86f31327c |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 """A simple wrapper script to call MIRA and collect its output. | 2 """A simple wrapper script to call MIRA and collect its output.""" |
| 3 """ | |
| 4 | 3 |
| 5 from __future__ import print_function | 4 from __future__ import print_function |
| 6 | 5 |
| 7 import os | 6 import os |
| 8 import shutil | 7 import shutil |
| 12 | 11 |
| 13 WRAPPER_VER = "0.0.12" # Keep in sync with the XML file | 12 WRAPPER_VER = "0.0.12" # Keep in sync with the XML file |
| 14 | 13 |
| 15 | 14 |
| 16 def get_version(): | 15 def get_version(): |
| 17 """Run MIRA to find its version number""" | 16 """Run MIRA to find its version number.""" |
| 18 # At the commend line I would use: mira -v | head -n 1 | 17 # At the commend line I would use: mira -v | head -n 1 |
| 19 # however there is some pipe error when doing that here. | 18 # however there is some pipe error when doing that here. |
| 20 cmd = ["mira", "-v"] | 19 cmd = ["mira", "-v"] |
| 21 try: | 20 try: |
| 22 child = subprocess.Popen(cmd, universal_newlines=True, | 21 child = subprocess.Popen(cmd, universal_newlines=True, |
