Mercurial > repos > peterjc > mira4_assembler
diff tools/mira4_0/mira4_convert.py @ 35:259891fce7fd draft
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit e4c56df75150c82d3e9c4ac487c4209108e52412
author | peterjc |
---|---|
date | Wed, 09 Aug 2017 13:32:11 -0400 |
parents | 0785a6537f3e |
children | cee8f9005e43 |
line wrap: on
line diff
--- a/tools/mira4_0/mira4_convert.py Wed Jun 07 12:33:39 2017 -0400 +++ b/tools/mira4_0/mira4_convert.py Wed Aug 09 13:32:11 2017 -0400 @@ -22,7 +22,7 @@ # Do we need any PYTHONPATH magic? from mira4_make_bam import depad -WRAPPER_VER = "0.0.10" # Keep in sync with the XML file +WRAPPER_VER = "0.0.11" # Keep in sync with the XML file def run(cmd): @@ -110,14 +110,16 @@ out_ace = options.ace out_cstats = options.cstats -try: +if "MIRA4" in os.environ: mira_path = os.environ["MIRA4"] -except KeyError: - sys.exit("Environment variable $MIRA4 not set") -mira_convert = os.path.join(mira_path, "miraconvert") -if not os.path.isfile(mira_convert): - sys.exit("Missing miraconvert under $MIRA4, %r\nFolder contained: %s" - % (mira_convert, ", ".join(os.listdir(mira_path)))) + mira_convert = os.path.join(mira_path, "miraconvert") + if not os.path.isfile(mira_convert): + sys.exit("Missing miraconvert under $MIRA4, %r\nFolder contained: %s" + % (mira_convert, ", ".join(os.listdir(mira_path)))) +else: + sys.stderr.write("DEBUG: Since $MIRA4 is not set, assuming mira binaries are on $PATH.\n") + mira_path = None + mira_convert = "miraconvert" mira_convert_ver = get_version(mira_convert) if not mira_convert_ver.strip().startswith("4.0"):