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


Python Cluster.normalize_factor方法代码示例

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


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

示例1: test_subtraction_and_split

# 需要导入模块: from pyicoteolib.core import Cluster [as 别名]
# 或者: from pyicoteolib.core.Cluster import normalize_factor [as 别名]
    def test_subtraction_and_split(self):

        r5_cluster = Cluster(read=BED, read_half_open=True)
        t0_cluster1 = Cluster(read=BED, read_half_open=True)
        t0_cluster2 = Cluster(read=BED, read_half_open=True)
        t0_cluster3 = Cluster(read=BED, read_half_open=True)
        r5_cluster.normalize_factor = 0.839874264736
        r5_cluster.read_line('chr1    74953355        74953485        id:3920202      1000    +')
        r5_cluster.read_line('chr1    74953361        74953491        id:10182740     1000    +')
        r5_cluster.read_line('chr1    74953455        74953585        id:9188423      1000    +')
        r5_cluster.read_line('chr1    74953455        74953585        id:9188423      1000    +')
        r5_cluster.read_line('chr1    74953558        74953688        id:386762       1000    -')
        r5_cluster.read_line('chr1    74953558        74953688        id:6854318      1000    -')
        r5_cluster.read_line('chr1    74953600        74953730        id:2599120      1000    -')
        r5_cluster.read_line('chr1    74953619        74953749        id:5380695      1000    -')

        t0_cluster1.read_line('chr1    74953283        74953413        id:8980785      1000    +')
        t0_cluster2.read_line('chr1    74953440        74953570        id:9844290      1000    -')
        t0_cluster3.read_line('chr1    74953785        74953915        id:1331588      1000    +')
        """
        TO no extendido

        chr1    283        319        id:8980785      1000    +
        chr1    534        570        id:9844290      1000    -
        chr1    785        821        id:1331588      1000    +
        """
        r5_cluster -= t0_cluster1
        r5_cluster -= t0_cluster2
        r5_cluster -= t0_cluster3
        #print 'AQUI:', r5_cluster.write_line()


        """r5_cluster.read_line('chr1    74953302        74953432        id:8971336      1000    -')
        r5_cluster.read_line('chr1    74953340        74953470        id:7068001      1000    -')
        r5_cluster.read_line('chr1    74953345        74953475        id:5184564      1000    -')
        r5_cluster.read_line('chr1    74953355        74953485        id:3920202      1000    +')"""

        """r5_cluster.read_line('chr1    74953648        74953778        id:994315       1000    +')
开发者ID:23Skidoo,项目名称:genomizer-server,代码行数:40,代码来源:testCore.py


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