omicverse.micro.Alpha#
- class omicverse.micro.Alpha(adata, rarefy_depth=None, seed=0)[source]#
Compute and store per-sample alpha-diversity metrics on
adata.obs.- Parameters:
adata (
AnnData) – Samples × features AnnData with int counts. The class does NOT modifyX; passrarefy_depthif you want rarefaction applied only for the diversity calculation.rarefy_depth (
Optional[int] (default:None)) – If set, subsample to this depth (without replacement) before computing each metric.None→ use raw counts.seed (
int(default:0)) – Random seed for rarefaction.
Methods