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


Python PipelineIDR.filterBadLibraries方法代码示例

本文整理汇总了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)
开发者ID:jmadzo,项目名称:cgat,代码行数:11,代码来源:pipeline_idr.py

示例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)
开发者ID:lesheng,项目名称:cgat,代码行数:15,代码来源:pipeline_idr.py

示例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)
开发者ID:gjaime,项目名称:CGATPipelines,代码行数:19,代码来源:pipeline_idr.py


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