scSLAT.viz.multi_dataset.match_3D_multi
- class scSLAT.viz.multi_dataset.match_3D_multi(dataset_A, dataset_B, matching, meta=None, expr=None, subsample_size=300, reliability=None, scale_coordinate=True, rotate=None, exchange_xy=False, subset=None)[source]
Bases:
objectPlot the mapping result between 2 datasets
- Parameters:
dataset_A (
pandas.core.frame.DataFrame) – pandas dataframe which contain [‘index’,’x’,’y’], reference datasetdataset_B (
pandas.core.frame.DataFrame) – pandas dataframe which contain [‘index’,’x’,’y’], target datasetmatching (
numpy.ndarray) – matching resultsmeta (
typing.Optional[str]) – dataframe colname of meta, such as celltypeexpr (
typing.Optional[str]) – dataframe colname of gene exprsubsample_size (
typing.Optional[int]) – subsample size of matchesreliability (
typing.Optional[numpy.ndarray]) – match score (cosine similarity score)scale_coordinate (
typing.Optional[bool]) – if scale coordinate via (\(data - np.min(data)) / (np.max(data) - np.min(data))\))rotate (
typing.Optional[typing.List[str]]) – how to rotate the slides (force scale_coordinate), such as [‘x’,’y’], means dataset0 rotate on x axes and dataset1 rotate on y axeschange_xy – exchange x and y on dataset_B
subset (
typing.Optional[typing.List[int]]) – index of query cells to be plotted
Note
dataset_A and dataset_B can in different length
Methods
Draw 3D picture of two datasets
Draw lines between paired cells in two datasets