本文整理汇总了Python中process.sequence.AlignmentList.characters_proportion方法的典型用法代码示例。如果您正苦于以下问题:Python AlignmentList.characters_proportion方法的具体用法?Python AlignmentList.characters_proportion怎么用?Python AlignmentList.characters_proportion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类process.sequence.AlignmentList
的用法示例。
在下文中一共展示了AlignmentList.characters_proportion方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: SeconaryOpsTest
# 需要导入模块: from process.sequence import AlignmentList [as 别名]
# 或者: from process.sequence.AlignmentList import characters_proportion [as 别名]
#.........这里部分代码省略.........
self.aln_obj = AlignmentList([], sql_db=sql_db)
self.assertEqual(self.aln_obj.gene_occupancy(),
{'exception': "empty_data"})
def test_gene_occupancy(self):
self.assertTrue(self.aln_obj.gene_occupancy())
def test_missing_data_distribution(self):
self.assertTrue(self.aln_obj.missing_data_distribution())
def test_missing_data_per_species(self):
self.assertTrue(self.aln_obj.missing_data_per_species())
def test_missing_genes_per_species(self):
self.assertTrue(self.aln_obj.missing_genes_per_species())
def test_missing_genes_average(self):
self.assertTrue(self.aln_obj.missing_genes_average())
def test_average_seqsize_per_species(self):
self.assertTrue(self.aln_obj.average_seqsize_per_species())
def test_average_seqsize(self):
self.assertTrue(self.aln_obj.average_seqsize())
def test_characters_proportion(self):
self.assertTrue(self.aln_obj.characters_proportion())
def test_characters_proportion_per_species(self):
self.assertTrue(self.aln_obj.characters_proportion_per_species())
def test_characters_proportion_gene(self):
self.assertTrue(self.aln_obj.characters_proportion_gene(
join(data_path, "BaseConc1.fas"), 10
))
def test_sequence_similarity(self):
self.assertTrue(self.aln_obj.sequence_similarity())
def test_sequence_similarity_per_species(self):
self.assertTrue(self.aln_obj.sequence_similarity_per_species())
def test_sequence_similarity_gene(self):
self.assertTrue(self.aln_obj.sequence_similarity_gene(
join(data_path, "BaseConc1.fas"), 10))
def test_sequence_conservation(self):
self.assertTrue(self.aln_obj.sequence_conservation_gnp(
join(data_path, "BaseConc1.fas"), 10
))