Mercurial > repos > peterjc > mira4_assembler
comparison tools/mira4_0/mira4_bait.py @ 38:cee8f9005e43 draft
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit 206259620376b322fc8ed99a6efdd3712f38764b
author | peterjc |
---|---|
date | Wed, 11 Jul 2018 12:35:35 -0400 |
parents | 259891fce7fd |
children | bbf14bb9607b |
comparison
equal
deleted
inserted
replaced
37:eeeb21870a73 | 38:cee8f9005e43 |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 """A simple wrapper script to call MIRA4's mirabait and collect its output. | 2 """A simple wrapper script to call MIRA4's mirabait 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.11" # Keep in sync with the XML file | 12 WRAPPER_VER = "0.0.11" # Keep in sync with the XML file |
14 | 13 |
15 | 14 |
16 def get_version(mira_binary): | 15 def get_version(mira_binary): |
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_binary, "-v"] | 19 cmd = [mira_binary, "-v"] |
21 try: | 20 try: |
22 child = subprocess.Popen(cmd, universal_newlines=True, | 21 child = subprocess.Popen(cmd, universal_newlines=True, |