spatialtis.cell_community#
- spatialtis.cell_community(data, resolution=0.05, partition_type=None, partition_kwargs=None, export_key='community_id', **kwargs)[source]#
Spatial communities detection
Here we use Leiden graph cluster algorithm
- Parameters
- dataAnnData
The AnnData to work with.
- resolutionfloat, default: 0.05
Control the process of partition.
- partition_type
The leidenalg partition type.
- partition_kwargs
Pass to leidenalg.find_partition.
- export_keystr
The key used to store result.
- **kwargs
Config for the analysis, for details check
spatialtis.abc.AnalysisBase
.