本文整理汇总了Python中CGATPipelines.PipelineIDR.filterBadLibraries方法的典型用法代码示例。如果您正苦于以下问题:Python PipelineIDR.filterBadLibraries方法的具体用法?Python PipelineIDR.filterBadLibraries怎么用?Python PipelineIDR.filterBadLibraries使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGATPipelines.PipelineIDR
的用法示例。
在下文中一共展示了PipelineIDR.filterBadLibraries方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: reMergeBamfiles
# 需要导入模块: from CGATPipelines import PipelineIDR [as 别名]
# 或者: from CGATPipelines.PipelineIDR import filterBadLibraries [as 别名]
def reMergeBamfiles(infiles, sentinal):
infiles = [P.snip(x, ".sentinal") + ".bam" for x in infiles]
outfile = P.snip(sentinal, ".sentinal") + ".bam"
bad_samples = PARAMS["options_to_remove"].split(",")
to_merge = IDR.filterBadLibraries(infiles, bad_samples)
IDR.mergeBams(to_merge, outfile)
P.touch(sentinal)
示例2: poolInputBamfiles
# 需要导入模块: from CGATPipelines import PipelineIDR [as 别名]
# 或者: from CGATPipelines.PipelineIDR import filterBadLibraries [as 别名]
def poolInputBamfiles(infiles, sentinal):
"""
Merge filtered input files for each tissue, with the option of excluding
undesirable libraries.
"""
infiles = [P.snip(x, ".sentinal") + ".bam" for x in infiles]
outfile = P.snip(sentinal, ".sentinal") + ".bam"
bad_samples = PARAMS["filter_remove_inputs"].split(",")
to_merge = IDR.filterBadLibraries(infiles, bad_samples)
IDR.mergeBams(to_merge, outfile)
P.touch(sentinal)
示例3: poolInputBamfiles
# 需要导入模块: from CGATPipelines import PipelineIDR [as 别名]
# 或者: from CGATPipelines.PipelineIDR import filterBadLibraries [as 别名]
def poolInputBamfiles(infiles, sentinel):
"""
Merge filtered input files for each tissue, with the option of excluding
undesirable libraries.
"""
infiles = [P.snip(x, ".sentinel") + ".bam" for x in infiles]
outfile = P.snip(sentinel, ".sentinel") + ".bam"
bad_samples = PARAMS["filter_remove_inputs"].split(",")
if len(infiles) > 1:
to_merge = IDR.filterBadLibraries(infiles, bad_samples)
IDR.mergeBams(to_merge, outfile)
else:
os.symlink(os.path.abspath(infiles[0]), outfile)
os.symlink(os.path.abspath(infiles[0]) + ".bai", outfile + ".bai")
P.touch(sentinel)