本文整理汇总了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 +')