phlower.tl.construct_circle_delaunay
- phlower.tl.construct_circle_delaunay(adata: AnnData, graph_name: str | None = None, layout_name: str | None = None, cluster_name: str = 'group', quant=0.1, node_attr='u', start_n=5, end_n=5, separate_ends_triangle=True, random_seed=2022, calc_layout: bool = False, iscopy: bool = False)
- Fuction for only connecting start and end points with delaunay triangulation
randomly select starts and ends points by node_attr score
connect starts and ends points with delaunay triangulation
run layout algorithm for graph with holes if calc_layout is true
Parameters
- adata: AnnData
AnnData object
- graph_name: str
graph name in adata.uns
- layout_name: str
layout name in adata.obsm
- cluster_name: str
cluster name in adata.obs
- quant: float
quantile for connecting start and end points
- node_attr: str
node attribute for connecting
- start_n: int
number of start points
- end_n: int
number of end points
- separate_ends_triangle: bool
whether to separate end points to different clusters
- random_seed: int
random seed for selecting start and end points
- calc_layout: bool
whether to calculate layout for the delaunay graph
- iscopy: bool
whether to return a copy of adata