biomol.core.EdgeFeature#

class EdgeFeature(value, src_indices, dst_indices)[source]#

Bases: Feature

A feature associated with edges (pairs of nodes) in a structure.

Parameters:
  • value (np.ndarray) – A numpy array where the first dimension corresponds to the edges.

  • src_indices (NDArray[np.integer]) – A 1D numpy array of source node indices for each edge.

  • dst_indices (NDArray[np.integer]) – A 1D numpy array of destination node indices for each edge.

Attributes

value

The underlying numpy array representing the feature data.

src_indices

Source node indices of the edges.

dst_indices

Destination node indices of the edges.

dst

Return the destination node indices of the edges.

dtype

Return the data type of the feature.

ndim

Return the number of dimensions of the feature.

nodes

Return the unique node indices involved in the edges.

shape

Return the shape of the feature.

size

Return the total number of elements in the feature.

src

Return the source node indices of the edges.

Methods

copy

Return a deep copy of the edge 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.