scanpy.datasets.blobs

Contents

scanpy.datasets.blobs#

scanpy.datasets.blobs(*, n_variables=11, n_centers=5, cluster_std=1.0, n_observations=640, random_state=0)[source]#

Gaussian Blobs.

Parameters:
n_variables int (default: 11)

Dimension of feature space.

n_centers int (default: 5)

Number of cluster centers.

cluster_std float (default: 1.0)

Standard deviation of clusters.

n_observations int (default: 640)

Number of observations. By default, this is the same observation number as in scanpy.datasets.krumsiek11().

random_state int | RandomState | None (default: 0)

Determines random number generation for dataset creation.

Return type:

AnnData

Returns:

Annotated data matrix containing a observation annotation ‘blobs’ that indicates cluster identity.

Examples

>>> import scanpy as sc
>>> sc.datasets.blobs()
AnnData object with n_obs × n_vars = 640 × 11
    obs: 'blobs'