本文整理匯總了Python中pyicoteolib.core.Cluster._recalculate_end方法的典型用法代碼示例。如果您正苦於以下問題:Python Cluster._recalculate_end方法的具體用法?Python Cluster._recalculate_end怎麽用?Python Cluster._recalculate_end使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pyicoteolib.core.Cluster
的用法示例。
在下文中一共展示了Cluster._recalculate_end方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_is_artifact
# 需要導入模塊: from pyicoteolib.core import Cluster [as 別名]
# 或者: from pyicoteolib.core.Cluster import _recalculate_end [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())