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


Python PipelineIDR.getIDRStatement方法代码示例

本文整理汇总了Python中CGATPipelines.PipelineIDR.getIDRStatement方法的典型用法代码示例。如果您正苦于以下问题:Python PipelineIDR.getIDRStatement方法的具体用法?Python PipelineIDR.getIDRStatement怎么用?Python PipelineIDR.getIDRStatement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CGATPipelines.PipelineIDR的用法示例。


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

示例1: runIDROnIndividualReplicates

# 需要导入模块: from CGATPipelines import PipelineIDR [as 别名]
# 或者: from CGATPipelines.PipelineIDR import getIDRStatement [as 别名]
def runIDROnIndividualReplicates(infiles, outfile):
    """
    Run IDR consecutively for each pairwise combination of a particular
    EXPERIMENT
    """
    # set IDR parameters (HACK!) WrapperIDR is in /ifs/devel/CGAT
    chr_table = os.path.join(PARAMS["annotations_dir"],
                             PARAMS_ANNOTATIONS["interface_contigs"])
    idr_script = os.path.join(os.path.dirname(P.__file__), "WrapperIDR.py")

    # iterate through pairwise combinations of infiles
    for infile1, infile2 in itertools.combinations(infiles, 2):
        # get statement
        statement = IDR.getIDRStatement(infile1,
                                        infile2,
                                        outfile,
                                        PARAMS["idr_options_overlap_ratio"],
                                        PARAMS["idr_options_ranking_measure"],
                                        chr_table,
                                        idr_script)

        # run
        E.info("applyIDR: processing %s and %s" % (infile1, infile2))
        job_options = "-l mem_free=5G"
        P.run()
开发者ID:jmadzo,项目名称:cgat,代码行数:27,代码来源:pipeline_idr.py

示例2: runIDROnPooledPseudoreplicates

# 需要导入模块: from CGATPipelines import PipelineIDR [as 别名]
# 或者: from CGATPipelines.PipelineIDR import getIDRStatement [as 别名]
def runIDROnPooledPseudoreplicates(infiles, outfile):
    """
    Run IDR analysis on pooled pseudoreplicates for each EXPERIMENT
    """
    # set IDR parameters
    chr_table = os.path.join(PARAMS["annotations_dir"],
                             PARAMS["annotations_interface_contigs"])

    # get statement
    statement = IDR.getIDRStatement(infiles[0],
                                    infiles[1],
                                    outfile,
                                    PARAMS["idr_options_overlap_ratio"],
                                    PARAMS["idr_options_ranking_measure"],
                                    chr_table)

    # run
    E.info("applyIDR: processing %s and %s" % (infiles[0], infiles[1]))
    job_memory = "5G"
    P.run()
开发者ID:CGATOxford,项目名称:CGATPipelines,代码行数:22,代码来源:pipeline_idr.py

示例3: runIDROnPooledPseudoreplicates

# 需要导入模块: from CGATPipelines import PipelineIDR [as 别名]
# 或者: from CGATPipelines.PipelineIDR import getIDRStatement [as 别名]
def runIDROnPooledPseudoreplicates(infiles, outfile):
    """
    Run IDR analysis on pooled pseudoreplicates for each EXPERIMENT
    """
    # set IDR parameters
    chr_table = os.path.join(PARAMS["annotations_dir"],
                             PARAMS_ANNOTATIONS["interface_contigs"])
    idr_script = os.path.join(os.path.dirname(P.__file__), "WrapperIDR.py")

    # get statement
    statement = IDR.getIDRStatement(infiles[0],
                                    infiles[1],
                                    outfile,
                                    PARAMS["idr_options_overlap_ratio"],
                                    PARAMS["idr_options_ranking_measure"],
                                    chr_table,
                                    idr_script)

    # run
    E.info("applyIDR: processing %s and %s" % (infiles[0], infiles[1]))
    job_options = "-l mem_free=5G"
    P.run()
开发者ID:jmadzo,项目名称:cgat,代码行数:24,代码来源:pipeline_idr.py


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