neurosnap.structure.interaction_report module#
Data models and reports for structural interactions and coordination centers.
- class neurosnap.structure.interaction_report.AtomReference(atom_index, chain_id, res_id, ins_code, res_name, atom_name, element)[source]#
Bases:
objectA reference to a specific atom in a Structure with copied metadata.
- class neurosnap.structure.interaction_report.CoordinationCenterRecord(center_id, metal_atom_index, entity, chain, res_id, ins_code, res_name, atom_name, element, coordination_number, donor_atom_indices, donor_elements, geometry=None, geometry_deviation_deg=None, evidence='distance_cutoff', rule_set='default', rule_version='1', model_id=1)[source]#
Bases:
objectThe exact fields representing a metal coordination center.
- class neurosnap.structure.interaction_report.InteractionEntity(name, atom_indices, rdkit_mol=None)[source]#
Bases:
objectRepresentation of a molecular entity participating in interactions.
- class neurosnap.structure.interaction_report.InteractionRecord(interaction_id, interaction_type, evidence, entity1, atom_index1, chain1, res_id1, ins_code1, res_name1, atom_name1, element1, role1, entity2, atom_index2, chain2, res_id2, ins_code2, res_name2, atom_name2, element2, role2, distance_a=None, angle_deg=None, vdw_gap_a=None, source='geometric_rules', rule_set='default', rule_version='1', model_id=1, details=None)[source]#
Bases:
objectThe exact fields representing a detected structural interaction.
- class neurosnap.structure.interaction_report.InteractionReport(records, coordination_centers, metadata=None)[source]#
Bases:
objectImmutable collection of structural interaction records and coordination centers.
- coordination_centers_dataframe()[source]#
Convert coordination centers to a pandas DataFrame with the expected columns.
- Return type:
DataFrame
- filter(*, interaction_types=None, entities=None, chains=None, record_indices=None, predicate=None)[source]#
Filter interactions and return a new InteractionReport with relevant coordination centers.
- Return type: