biomol.core.NodeFeature#

class NodeFeature(value)[source]#

Bases: Feature

A feature associated with nodes in a structure.

Parameters:

value (np.ndarray) – A numpy array where the first dimension corresponds to the nodes.

Attributes

value

The underlying numpy array representing the feature data.

dtype

Return the data type of the feature.

ndim

Return the number of dimensions of the feature.

shape

Return the shape of the feature.

size

Return the total number of elements in the feature.

Methods

copy

Return a deep copy of the feature.

crop

Crop the feature to only include the specified indices.

max

Return the maximum of the feature along the specified axis.

mean

Return the mean of the feature along the specified axis.

min

Return the minimum of the feature along the specified axis.

sum

Return the sum of the feature along the specified axis.