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


Python Cluster.is_artifact方法代码示例

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


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

示例1: test_is_artifact

# 需要导入模块: from pyicoteolib.core import Cluster [as 别名]
# 或者: from pyicoteolib.core.Cluster import is_artifact [as 别名]
 def test_is_artifact(self):
     artifact = Cluster(read=PK, write=PK, rounding=True)
     artifact.read_line('chr1        1        111        5:1|100:4|6:2')
     almost_not_artifact = Cluster(read=PK, write=PK, rounding=True)
     almost_not_artifact.read_line('chr1        1        100        35:1|30:4|35:1')
     almost_artifact = Cluster(read=PK, write=PK, rounding=True)
     almost_artifact.read_line('chr1        1        99        45:1|25:4|30:1')
     almost_artifact._recalculate_end()
     self.assertTrue(artifact.is_artifact())
     self.assertFalse(almost_not_artifact.is_artifact()) #with the changes for version 0.6.1, this line IS an artifact
     self.assertFalse(almost_artifact.is_artifact())
开发者ID:23Skidoo,项目名称:genomizer-server,代码行数:13,代码来源:testCore.py

示例2: test_bug_is_artifact

# 需要导入模块: from pyicoteolib.core import Cluster [as 别名]
# 或者: from pyicoteolib.core.Cluster import is_artifact [as 别名]
 def test_bug_is_artifact(self):
     cluster = Cluster(rounding=True)
     cluster.read_line('chr1  10505760  10505928   8:4|3:5|5:6|8:8|2:10|1:11|5:12|3:15|2:16|2:16|3:18|7:20|3:19|57:20|21:19|8:15|3:14|5:13|8:11|2:9|1:8|5:7|3:4|2:3|2:3')
     self.assertTrue(cluster.is_artifact(0.3))
开发者ID:23Skidoo,项目名称:genomizer-server,代码行数:6,代码来源:testCore.py


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