Interactions
Feature: protein interaction feature
- class hippo.feature.Feature(id: int, family: str, target: Target, chain_name: str, residue_name: str, residue_number: int, atom_names: str)[source]
Pharmocophoric feature in a protein
- id
Database ID
- Type:
int
- family
Feature family
- Type:
str
- chain_name
Protein chain name/letter
- Type:
str
- residue_name
Protein residue name
- Type:
str
- residue_number
Protein residue number
- Type:
int
- atom_names
Protein atom names (whitespace-delimited)
- Type:
str
- property backbone: bool
Are any of the atoms referenced by this feature on the backbone?
- property chain_res_name_number_str: str
Return a string representation of the feature
- property res_name_number_family_str: str
Return a string representation of the feature
- property res_name_number_str: str
Return a string representation of the feature
- property res_number_name_tuple: str
Return a tuple representation of the feature
- property sidechain: bool
Are any of the atoms referenced by this feature on the sidechain?
Interaction: between atom(s) on a Pose and a Feature
- class hippo.interaction.Interaction(db: Database, id: int, feature_id: int, pose_id: int, type: str, family: str, atom_ids: str, prot_coord: str, lig_coord: str, distance: float, angle: float, energy: float | None, table: str = 'interaction')[source]
A
Interactionrepresents an interaction between an rdkit Feature on aPoseand aFeatureon the proteinTarget.Attention
Interactionobjects should not be created directly. Instead usePose.interactions(), orPoseSet.interactions()methods.Interaction initialisation
- property angle: float | None
Returns the interaction angle (only defined for π-stacking and π-cation interactions)
- property atom_ids: list[int]
Returns the indices of atoms making up the ligand feature
- property description: str
One line description of this interaction
- property distance: float
Returns the euclidian distance of the interaction
- property energy: float | None
Returns the interaction energy, if defined
- property family: str
The Feature family
- property family_str: str
String of the two feature families
- property id: int
Returns the interaction’s database ID
- property lig_coord: list[float]
Returns the cartesian position of the ligand feature
- property type: str
Interaction type string
InteractionTable: All Interactions
- class hippo.iset.InteractionTable(db: Database, table: str = 'interaction')[source]
Class representing all
Interactionobjects in the ‘interaction’ table of theDatabase.Attention
InteractionTableobjects should not be created directly. Instead use theHIPPO.interactions()property.InteractionTable initialisation
- property df: pandas.DataFrame
DataFrame representation of the interactions
- Returns:
a
pandas.Dataframeof the interactions
InteractionSet: Subset of interactions
- class hippo.iset.InteractionSet(db: Database, indices: list = None, table: str = 'interaction')[source]
Class representing a subset of the
Interactionobjects in the ‘interaction’ table of theDatabase.Attention
InteractionSetobjects should not be created directly. Instead usePose.interactions(), orPoseSet.interactions()methods.InteractionSet initialisation
- self[key] Interaction | InteractionSet[source]
Get interaction or subsets thereof from this set
- classmethod all(db: Database, table: str = 'interaction') InteractionSet[source]
Construct a
InteractionSetfor all interactions in the table.- Returns:
- property avg_num_interaction_type_residue_pairs_per_pose: list[tuple]
Get a list of
(residue_number, chain_name)tuples
- property avg_num_interactions_per_feature: float
Average number of interactions formed with each protein
Feature
- property avg_num_interactions_per_pose: list[tuple]
Get a list of
(residue_number, chain_name)tuples
- property avg_num_residues_per_pose: list[tuple]
Get a list of
(residue_number, chain_name)tuples
- property classic_fingerprint: dict
Classic HIPPO fingerprint dictionary, mapping protein
FeatureID’s to the number of corresponding ligand features (from anyPose)
- property df: pandas.DataFrame
DataFrame representation of the interactions
- Returns:
a
pandas.Dataframeof the interactions
- classmethod from_pose(pose: Pose | PoseSet, table: str = 'interaction') InteractionSet[source]
Construct a
InteractionSetfrom one or more poses.- Parameters:
- Returns:
- classmethod from_residue(db: Database, residue_number: int, chain: None | str = None, target: Target | int = 1) InteractionSet[source]
Get the set of interactions for a given residue number (and chain)
- Parameters:
- Returns:
a
InteractionSetobject
- get_classic_fingerprint() dict[source]
Classic HIPPO fingerprint dictionary, mapping protein
FeatureID’s to the number of corresponding ligand features (from anyPose)
- property ids: list[int]
Returns the ids of interactions in this set
- property indices: list[int]
Returns the ids of interactions in this set
- property num_features: int
Count the funmber of protein :class:`.Feature`s with which interactions are formed
- property per_feature_count_hirsch: float
A measure for how evenly protein :class:`.Feature`s are being interacted with
- property residue_number_chain_pairs: list[tuple]
Get a list of
(residue_number, chain_name)tuples
- resolve(debug: bool = False, commit: bool = True) InteractionSet[source]
Resolve into predicted key interactions. In place modification.
- Parameters:
debug – Increased verbosity for debugging (Default value = False)
commit – commit the changes (Default value = True)
- Returns:
a filtered
InteractionSet
- property str_ids: str
Return an SQL formatted tuple string of the
InteractionIDs
- summary(families: bool = False) None[source]
Print a summary of this
InteractionSet
- property table: str
Get the name of the database table
- property type_residue_number_chain_triples: list[tuple]
Get a list of
(interaction_type, residue_number, chain_name)tuples
- property types: list[str]
Returns the ids of interactions in this set