def test_get_biopython_pepstats(self, seqprop_with_i):
"""Test storing Biopython pepstats and consistency of results"""
seqprop_with_i.get_biopython_pepstats()
results = {'instability_index': 27.172727272727272, 'aromaticity': 0.022727272727272728,
'percent_turn_naive': 0.022727272727272728, 'percent_strand_naive': 0.2954545454545454,
'monoisotopic': False, 'isoelectric_point': 8.84234619140625, 'molecular_weight': 4820.8507,
'percent_helix_naive': 0.38636363636363635}
for k, v in results.items():
assert seqprop_with_i.annotations[k] == pytest.approx(v)
评论列表
文章目录