stereo.algorithm.spa_track.SpaTrack.lasso_select

SpaTrack.lasso_select(cell_type=None, spatial_key=None, bg_color='#2F2F4F', palette='stereo_30', marker='o', marker_size=5, width=500, height=500, invert_y=True)[source]

Select starting cells manually by lasso.

Parameters:
  • cell_type (Optional[str]) – Only retain cells of the specified type in lasso selection, by default, all cells will be retained.

  • spatial_key (Optional[str]) – The key to get position information of cells, by default, the data.spatial_key will be used.

  • bg_color (str) – The background color of the plot, defaults to ‘#2F2F4F’

  • palette (Union[str, list]) – The color palette of the plot, defaults to ‘stereo_30’

  • marker (str) – The dot marker of the plot, defaults to ‘o’

  • marker_size (int) – The size of the dot marker, defaults to 5

  • width (int) – The width in pixels of the plot, defaults to 500

  • height (int) – The height in pixels of the plot, defaults to 500

  • invert_y (bool) – Whether to invert the y-axis, defaults to True