Mercurial > repos > peterjc > mira4_assembler
comparison tools/mira4/mira4.py @ 5:ffefb87bd414 draft
Uploaded v0.0.1 preview 5, using MIRA 4.0 RC4, supports segment_placement (pairing type)
| author | peterjc |
|---|---|
| date | Tue, 15 Oct 2013 12:07:34 -0400 |
| parents | df86ed992a1b |
| children | 902f01c1084b |
comparison
equal
deleted
inserted
replaced
| 4:df86ed992a1b | 5:ffefb87bd414 |
|---|---|
| 29 ver, tmp = child.communicate() | 29 ver, tmp = child.communicate() |
| 30 del child | 30 del child |
| 31 return ver.split("\n", 1)[0] | 31 return ver.split("\n", 1)[0] |
| 32 | 32 |
| 33 | 33 |
| 34 os.environ["PATH"] = "/mnt/galaxy/downloads/mira_4.0rc3_linux-gnu_x86_64_static/bin/:%s" % os.environ["PATH"] | 34 os.environ["PATH"] = "/mnt/galaxy/downloads/mira_4.0rc4_linux-gnu_x86_64_static/bin/:%s" % os.environ["PATH"] |
| 35 mira_binary = "mira" | 35 mira_binary = "mira" |
| 36 mira_ver = get_version(mira_binary) | 36 mira_ver = get_version(mira_binary) |
| 37 if not mira_ver.strip().startswith("4.0"): | 37 if not mira_ver.strip().startswith("4.0"): |
| 38 stop_err("This wrapper is for MIRA V4.0, not:\n%s" % mira_ver) | 38 stop_err("This wrapper is for MIRA V4.0, not:\n%s" % mira_ver) |
| 39 if "-v" in sys.argv: | 39 if "-v" in sys.argv or "--version" in sys.argv: |
| 40 print "MIRA wrapper version %s," % WRAPPER_VER | 40 print "%s, MIRA wrapper version %s" % (mira_ver, WRAPPER_VER) |
| 41 print mira_ver | |
| 42 sys.exit(0) | 41 sys.exit(0) |
| 43 | 42 |
| 44 | 43 |
| 45 def log_manifest(manifest): | 44 def log_manifest(manifest): |
| 46 """Write the manifest file to stderr.""" | 45 """Write the manifest file to stderr.""" |
