Skip to content

Improve atomic coverage calculation #116

@aozalevsky

Description

@aozalevsky

The function:

def get_atomic_coverage(self) -> str:
"""Measure amount of atomic residues"""
for _ in self.system.orphan_representations:
if self.check_sphere() == 1:
flex = sum([(x.asym_unit.seq_id_range[1]) -
(x.asym_unit.seq_id_range[0])+1 for x in _ if not x.rigid])
rigid = sum([(x.asym_unit.seq_id_range[1]) -
(x.asym_unit.seq_id_range[0])+1 for x in _ if x.rigid])
if rigid > 0 or flex > 0:
percentage = str(round(rigid/(rigid+flex)*100))+'%'
else:
percentage = '0%'
else:
percentage = '100%'
return percentage

requires improved logic and description.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions