spateo.tools.cluster_lasso¶
@File : cluster_lasso.py @Time : 2022/06/29 10:43:55 @Author : LuluZuo XueWang @Version : 1.0 @Desc : spatial cluster lasso
Classes¶
Lasso an region of interest (ROI) based on spatial cluster. |
Module Contents¶
- class spateo.tools.cluster_lasso.Lasso(adata)[source]¶
Lasso an region of interest (ROI) based on spatial cluster.
Examples
L = st.tl.Lasso(adata) L.vi_plot(group=’group’, group_color=’group_color’)
- vi_plot(key='spatial', group: str | None = None, group_color: str | None = None)[source]¶
Plot spatial cluster result and lasso ROI.
- Parameters:
- key
The column key in .obsm, default to be ‘spatial’.
- group
The column key/name that identifies the grouping information (for example, clusters that correspond to different cell types) of buckets.
- group_color
The key in .uns, corresponds to a dictionary that map group names to group colors.
- Returns:
subset of adata.
- Return type:
sub_adata