spared.filtering.get_slides_adata

spared.filtering.get_slides_adata(collection: AnnData, slide_list: str) list[source]

Get list of slides from collection

This function receives a string with a list of slides separated by commas and returns a list of AnnData objects with the specified slides taken from the collection parameter.

Parameters:
  • collection (ad.AnnData) – AnnData object with all the slides concatenated.

  • slide_list (str) – String with a list of slides separated by commas. E.g. 'slide1,slide2,slide3'. All slides must be in the slide_id column of the collection.obs dataframe.

Returns:

List of AnnData objects with the specified slides. Each is a copy and not a view from the original collection.

Return type:

list