svgbit.find_combinations#
- svgbit.find_combinations(dataset: svgbit.core.STDataset.STDataset, center_spots: Union[int, list], selected_genes: Optional[list] = None, use_neighbor: bool = True) pandas.core.frame.DataFrame[source]#
Find gene pairs in certain SVG cluster.
- Parameters
- datasetSTDataset
A STDataset with all steps finished.
- center_spotsint or list
If a
intis given, find gene pairs for this SVG cluster. If alistof spots is given, find gene pairs within those spots.selected_genesshould be given ifcenter_clusteris alist.- selected_geneslist or None, default None
If a
listof genes is given, find gene pairs within given genes.- use_neighborbool, default True
Whether to find gene pairs with neighbor SVG clusters.
- Returns
- gene_pairs_dfpd.DataFrame
A pd.DataFrame for gene pairs in center_cluster with weights.