当前位置: 首页>>代码示例>>Python>>正文


Python shared._get_install函数代码示例

本文整理汇总了Python中shared._get_install函数的典型用法代码示例。如果您正苦于以下问题:Python _get_install函数的具体用法?Python _get_install怎么用?Python _get_install使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了_get_install函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: install_hydra

def install_hydra(env):
    version = "0.5.3"
    url = "http://hydra-sv.googlecode.com/files/Hydra.v{0}.tar.gz".format(version)
    def clean_libs(env):
        run("make clean")
    _get_install(url, env, _make_copy("ls -1 bin/* scripts/*"),
                 post_unpack_fn=clean_libs)
开发者ID:b97pla,项目名称:cloudbiolinux,代码行数:7,代码来源:bio_nextgen.py

示例2: install_samtools

def install_samtools(env):
    """SAM Tools provide various utilities for manipulating alignments in the SAM format.
    http://samtools.sourceforge.net/
    """
    version = "0.1.18"
    url = "http://downloads.sourceforge.net/project/samtools/samtools/" "%s/samtools-%s.tar.bz2" % (version, version)
    _get_install(url, env, _make_copy("find -perm -100 -type f"))
开发者ID:hmenager,项目名称:cloudbiolinux,代码行数:7,代码来源:bio_nextgen.py

示例3: install_bedtools

def install_bedtools(env):
    """A flexible suite of utilities for comparing genomic features.
    https://code.google.com/p/bedtools/
    """
    version = "github"
    repository = "git clone git://github.com/arq5x/bedtools.git"
    _get_install(repository, env, _make_copy("ls -1 bin/*"))
开发者ID:hmenager,项目名称:cloudbiolinux,代码行数:7,代码来源:bio_nextgen.py

示例4: install_abyss

def install_abyss(env):
    # XXX check for no sparehash on non-ubuntu systems
    version = "1.2.7"
    url = "http://www.bcgsc.ca/downloads/abyss/abyss-%s.tar.gz" % version
    def _remove_werror(env):
        sed("configure", " -Werror", "")
    _get_install(url, env, _configure_make, post_unpack_fn=_remove_werror)
开发者ID:leebryanp,项目名称:gists,代码行数:7,代码来源:bio_nextgen.py

示例5: install_bx_python

def install_bx_python(env):
    """Tools for manipulating biological data, particularly multiple sequence alignments
    https://bitbucket.org/james_taylor/bx-python/wiki/Home
    """
    version = "bitbucket"
    url = "hg clone http://bitbucket.org/james_taylor/bx-python"
    _get_install(url, env, _python_make)
开发者ID:csw,项目名称:cloudbiolinux,代码行数:7,代码来源:python.py

示例6: install_stacks

def install_stacks(env):
    """Stacks: build loci out of a set of short-read sequenced samples.
    http://creskolab.uoregon.edu/stacks/
    """
    version = "0.998"
    url = "http://creskolab.uoregon.edu/stacks/source/" "stacks-{0}.tar.gz".format(version)
    _get_install(url, env, _configure_make)
开发者ID:hmenager,项目名称:cloudbiolinux,代码行数:7,代码来源:bio_nextgen.py

示例7: install_gnu_parallel

def install_gnu_parallel(env):
    """GNU parallel: build and execute command lines from standard input in parallel.
    https://savannah.gnu.org/projects/parallel/
    """
    version = "20130122"
    url = "ftp://ftp.gnu.org/gnu/parallel/parallel-%s.tar.bz2" % version
    _get_install(url, env, _configure_make)
开发者ID:JCVI-Cloud,项目名称:cloudbiolinux,代码行数:7,代码来源:distributed.py

示例8: install_transproteomic_pipeline

def install_transproteomic_pipeline(env):
    """
    """
    ## version should be of form X.X.X-codename
    default_version = "4.6.2-occupy"
    version = env.get("tool_version", default_version)
    version_parts = re.match("(\d\.\d)\.(\d)-(.*)", version)
    major_version = version_parts.group(1)
    revision = version_parts.group(2)
    codename = version_parts.group(3)
    if revision == "0":
        download_rev = ""
    else:
        download_rev = ".%s" % revision
    download_version = ("%s%s" % (major_version, download_rev))
    url_pieces = (major_version, codename, revision, download_version)
    url = 'http://sourceforge.net/projects/sashimi/files/Trans-Proteomic Pipeline (TPP)/TPP v%s (%s) rev %s/TPP-%s.tgz' % url_pieces
    #install_dir = os.path.join(env["system_install"], "bin")

    def _chdir_src(work_cmd):
        def do_work(env):
            with cd("src"):
                append("Makefile.config.incl", "TPP_ROOT=%s/" % env["system_install"])
                append("Makefile.config.incl", "TPP_WEB=/tpp/")
                append("Makefile.config.incl", "XSLT_PROC=/usr/bin/xsltproc")
                append("Makefile.config.incl", "CGI_USERS_DIR=${TPP_ROOT}cgi-bin")
                work_cmd(env)
        return do_work

    def _make(env):
        run("make")
        env.safe_sudo("make install")
    _get_install(url, env, _chdir_src(_make))
开发者ID:janusz005,项目名称:cloudbiolinux,代码行数:33,代码来源:bio_proteomics.py

示例9: install_varianttools

def install_varianttools(env):
    version = "1.0.1"
    version_ext = "a"
    url = "http://downloads.sourceforge.net/project/varianttools/" "{ver}/variant_tools-{ver}{ext}.tar.gz".format(
        ver=version, ext=version_ext
    )
    _get_install(url, env, _python_make)
开发者ID:hjanime,项目名称:cloudbiolinux,代码行数:7,代码来源:bio_nextgen.py

示例10: install_bedtools

def install_bedtools(env):
    """A flexible suite of utilities for comparing genomic features.
    https://code.google.com/p/bedtools/
    """
    version = "2.17.0"
    url = "https://bedtools.googlecode.com/files/" "BEDTools.v%s.tar.gz" % version
    _get_install(url, env, _make_copy("ls -1 bin/*"))
开发者ID:nldowell,项目名称:cloudbiolinux,代码行数:7,代码来源:bio_nextgen.py

示例11: _install_boost

def _install_boost(env):
    version = "1.49.0"
    url = "http://downloads.sourceforge.net/project/boost/boost" "/%s/boost_%s.tar.bz2" % (
        version,
        version.replace(".", "_"),
    )
    check_version = "_".join(version.split(".")[:2])
    boost_dir = os.path.join(env.system_install, "boost")
    boost_version_file = os.path.join(boost_dir, "include", "boost", "version.hpp")

    def _boost_build(env):
        run("./bootstrap.sh --prefix=%s --with-libraries=thread" % boost_dir)
        run("./b2")
        env.safe_sudo("./b2 install")

    thread_lib = "libboost_thread.so.%s" % version
    final_thread_lib = os.path.join(env.system_install, "lib", thread_lib)
    if (
        not exists(boost_version_file)
        or not contains(boost_version_file, check_version)
        or not exists(final_thread_lib)
    ):
        _get_install(url, env, _boost_build)
        orig_lib = os.path.join(boost_dir, "lib", thread_lib)
        if not exists(final_thread_lib):
            env.safe_sudo("ln -s %s %s" % (orig_lib, final_thread_lib))
开发者ID:nldowell,项目名称:cloudbiolinux,代码行数:26,代码来源:bio_nextgen.py

示例12: install_mosaik

def install_mosaik(env):
    """MOSAIK: reference-guided aligner for next-generation sequencing technologies
    http://code.google.com/p/mosaik-aligner/
    """
    version = "2.1.73"
    url = "http://mosaik-aligner.googlecode.com/files/" "MOSAIK-%s-binary.tar" % version
    _get_install(url, env, _make_copy("find -perm -100 -type f", do_make=False))
开发者ID:nldowell,项目名称:cloudbiolinux,代码行数:7,代码来源:bio_nextgen.py

示例13: install_snap

def install_snap(env):
    """Scalable Nucleotide Alignment Program
    http://snap.cs.berkeley.edu/
    """
    version = "0.15"
    url = "http://github.com/downloads/amplab/snap/" "snap-%s-linux.tar.gz" % version
    _get_install(url, env, _make_copy("find -perm -100 -type f", do_make=False))
开发者ID:nldowell,项目名称:cloudbiolinux,代码行数:7,代码来源:bio_nextgen.py

示例14: install_omssa

def install_omssa(env):
    print "Installing OMSSA"
    default_version = "2.1.9"
    version = env.get("tool_version", default_version)
    url = 'ftp://ftp.ncbi.nih.gov/pub/lewisg/omssa/%s/omssa-%s.linux.tar.gz' % (version, version)
    env.safe_sudo("mkdir -p '%s'" % env["system_install"])
    _get_install(url, env, _make_copy(find_cmd="find -perm -100 -name 'omssa*'", do_make=False))
开发者ID:BishuDas,项目名称:cloudbiolinux,代码行数:7,代码来源:bio_proteomics.py

示例15: install_macs

def install_macs(env):
    """Model-based Analysis for ChIP-Seq.
    http://liulab.dfci.harvard.edu/MACS/
    """
    version = "1.4.2"
    url = "https://github.com/downloads/taoliu/MACS/" "MACS-%s.tar.gz" % version
    _get_install(url, env, _python_make)
开发者ID:hmenager,项目名称:cloudbiolinux,代码行数:7,代码来源:bio_nextgen.py


注:本文中的shared._get_install函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。