Metadata
- class hippo.metadata.MetaData(_MetaData__dict: Mapping[str, str] | None)[source]
Metadata dictionary linked to a compound or pose in a HIPPO
DatabaseAttention
Metadataobjects should not be created directly. Instead use the methodsCompound.metadata()andPose.metadata()
- class hippo.tags.TagTable(db: Database)[source]
Object representing the ‘tag’ table in the
Database.Attention
TagTableobjects should not be created directly. Instead use theHIPPO.tags()property.- property unique: set[str]
Returns a set of unique tag names contained in the table
- class hippo.tags.TagSet(parent: Compound | Pose, tags: list | tuple | None = None, immutable: bool = False, commit: bool = True)[source]
Object representing a subset of the ‘tag’ table in the
Databasebelonging to a certainCompoundorPose.Attention
TagSetobjects should not be created directly. Instead use theCompound.tags()orPose.tags()property.- add(tag: str, commit: bool = True) None[source]
Add a tag to the set
- Parameters:
tag – tag to add
commit – commit the change? (Default value = True)
- glob(pattern: str) list[str][source]
Construct a list from tags in the set names that match a given UNIX-style pattern.
- Parameters:
pattern – unix style pattern with shell-style wildcards
- Returns:
list of tags
- property immutable: bool
Is this set is immutable?
- remove(tag: str) None[source]
Remove an element
- Parameters:
tag – tag to remove
- Raises:
ValueError – if tag is not in set
- property tags: list
Returns the elements in this set
- class hippo.target.Target(db: Database, id: int, name: str)[source]
Object representing a protein target
Attention
Targetobjects should not be created directly. Instead useHIPPO.register_target()orPose.target().- calculate_features(protein: mp.System, reference_id: int | None = None, force: bool = False) list[Feature][source]
Calculate features from a protein system
- Parameters:
protein – molparse.System object, likely from
Pose.protein_system()- Returns:
a list of
Featureobjects
- property feature_ids: list[int]
Returns the target’s feature ID’s
- property id: int
Returns the target’s ID
- property name: str
Returns the target’s name