Mercurial > repos > peterjc > mira4_assembler
comparison tools/mira4_0/mira4.py @ 34:0785a6537f3e draft
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit 6405ba93fcec7ea93452bf54d559c7507ee7a57c
| author | peterjc |
|---|---|
| date | Wed, 07 Jun 2017 12:33:39 -0400 |
| parents | 56b421d59805 |
| children | 259891fce7fd |
comparison
equal
deleted
inserted
replaced
| 33:1291ed21789f | 34:0785a6537f3e |
|---|---|
| 23 """Run MIRA to find its version number.""" | 23 """Run MIRA to find its version number.""" |
| 24 # At the commend line I would use: mira -v | head -n 1 | 24 # At the commend line I would use: mira -v | head -n 1 |
| 25 # however there is some pipe error when doing that here. | 25 # however there is some pipe error when doing that here. |
| 26 cmd = [mira_binary, "-v"] | 26 cmd = [mira_binary, "-v"] |
| 27 try: | 27 try: |
| 28 child = subprocess.Popen(cmd, | 28 child = subprocess.Popen(cmd, universal_newlines=True, |
| 29 stdout=subprocess.PIPE, | 29 stdout=subprocess.PIPE, |
| 30 stderr=subprocess.STDOUT) | 30 stderr=subprocess.STDOUT) |
| 31 except Exception as err: | 31 except Exception as err: |
| 32 sys.stderr.write("Error invoking command:\n%s\n\n%s\n" % (" ".join(cmd), err)) | 32 sys.stderr.write("Error invoking command:\n%s\n\n%s\n" % (" ".join(cmd), err)) |
| 33 sys.exit(1) | 33 sys.exit(1) |
