本文整理汇总了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()
示例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()
示例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()