def install_tracer(env):
    """A program for analysing results from Bayesian MCMC programs such as BEAST & MrBayes.
    http://tree.bio.ed.ac.uk/software/tracer/
    """
    version = "1.5"
    install_dir = os.path.join(env.system_install, "bioinf")
    final_exe = os.path.join(env.system_install, "bin", "tracer")
    if env.safe_exists(final_exe):
        return
    if not env.safe_exists(final_exe):
        with _make_tmp_dir() as work_dir:
            with cd(work_dir):
                env.safe_run("wget -O Tracer_v{0}.tgz 'http://tree.bio.ed.ac.uk/download.php?id=80&num=3'".format(
                    version))
                env.safe_run("tar xvzf Tracer_v{0}.tgz".format(version))
                env.safe_run("chmod a+x Tracer_v{0}/bin/tracer".format(version))
                env.safe_sudo("mkdir -p %s" % install_dir)
                env.safe_sudo("rm -rvf %s/tracer" % install_dir)
                env.safe_sudo("mv -f Tracer_v%s %s/tracer" % (version, install_dir))
                env.safe_sudo("ln -sf %s/tracer/bin/tracer %s" % (install_dir, final_exe))
dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/custom/phylogeny.py/install_tracer/original