biomol.core.FeatureContainer#
- class FeatureContainer(features)[source]#
Bases:
objectContainer for holding either node or edge features.
- Parameters:
features (Mapping[str, Feature]) – A mapping of feature keys to Feature objects. Features can be either NodeFeature or EdgeFeature.
Notes
features must contain at least one NodeFeature. All NodeFeatures must have the same length.
Methods
Concatenate multiple FeatureContainer instances.
Create a deep copy of the FeatureContainer.
Crop all features to only include the specified indices.
Create a FeatureContainer from a dictionary.
List of all features keys in the container.
Remove features by their keys.
Convert the container to a dictionary.
Update the container with new or modified features.