feature_summary
Per-feature summaries of an AnnData response matrix.
FeatureSummary
dataclass
Feature means and (optional) maxima of the response.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mean
|
ndarray of shape (n_features,)
|
|
required |
maximum
|
ndarray of shape (n_features,)
|
|
required |
Source code in scdesigner/src/scdesigner/data/feature_summary.py
10 11 12 13 14 15 16 17 18 19 20 | |
summarize_features(adata, *, include_max=False, chunk_size=None)
:class:FeatureSummary of `adata.X
This computes the mean over columns, one chunk at a time, so that it scales to large backed anndata objects.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
adata
|
AnnData
|
In memory or backed. |
required |
include_max
|
bool
|
Whether to compute |
False
|
chunk_size
|
int
|
Rows per read; see :func: |
None
|
Source code in scdesigner/src/scdesigner/data/feature_summary.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |