rapids_singlecell.gr.SpatialNeighborsResult#

class rapids_singlecell.gr.SpatialNeighborsResult(connectivities, distances)[source]#

Spatial connectivity and distance matrices returned with copy=True.

Attributes table#

connectivities

SciPy CSR matrix of edge weights, with shape (n_obs, n_obs).

distances

SciPy CSR matrix of Euclidean distances, or shortest directed hop counts for grid graphs, with shape (n_obs, n_obs).

Methods table#

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes#

connectivities: csr_matrix#

SciPy CSR matrix of edge weights, with shape (n_obs, n_obs).

distances: csr_matrix#

SciPy CSR matrix of Euclidean distances, or shortest directed hop counts for grid graphs, with shape (n_obs, n_obs).

Methods#

count(value, /)#

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)#

Return first index of value.

Raises ValueError if the value is not present.