cellcharter.tl.boundaries#
- cellcharter.tl.boundaries(adata, cluster_key='component', min_hole_area_ratio=0.1, alpha_start=2000, copy=False)#
Compute the topological boundaries of sets of cells.
- Parameters:
adata (
AnnData) – Annotated data object.cluster_key (
str(default:'component')) – Key inanndata.AnnData.obswhere the cluster labels are stored.min_hole_area_ratio (
float(default:0.1)) – Minimum ratio between the area of a hole and the area of the boundary.alpha_start (
int(default:2000)) – Starting value for the alpha parameter of the alpha shape algorithm.copy (
bool(default:False)) – IfTrue, return the result, otherwise save it to theadataobject.
- Return type:
- Returns:
If
copy = True, returns adictwith the cluster labels as keys and the boundaries as values.- Otherwise, modifies the
adatawith the following key: anndata.AnnData.uns['shape_{{cluster_key}}']['boundaries']- the above mentioneddict.
- Otherwise, modifies the