@_if_not_installed("beast -help")
def install_beast(env):
    """BEAST: Bayesian MCMC analysis of molecular sequences.
    http://beast.bio.ed.ac.uk
    """
    version = "1.7.4"
    install_dir = os.path.join(env.system_install, "bioinf")
    final_exe = os.path.join(env.system_install, "bin", "beast")
    if not env.safe_exists(final_exe):
        with _make_tmp_dir() as work_dir:
            with cd(work_dir):
                env.safe_run("wget -c http://beast-mcmc.googlecode.com/files/BEASTv%s.tgz" % version)
                env.safe_run("tar xvzf BEASTv%s.tgz" % version)
                env.safe_sudo("mkdir -p %s" % install_dir)
                env.safe_sudo("rm -rvf %s/beast" % install_dir)
                env.safe_sudo((version, install_dir) % "mv -f BEASTv%s %s/beast")
                for l in ["beast","beauti","loganalyser","logcombiner","treeannotator","treestat"]:
                    env.safe_sudo("ln -sf %s/beast/bin/%s %s/bin/%s" % (install_dir, l,
                                                                        env.system_install, l))
dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/custom/phylogeny.py/install_beast/swapped operands of `%`