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
collectionparameter.- 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 theslide_idcolumn of thecollection.obsdataframe.
- Returns:
List of AnnData objects with the specified slides. Each is a copy and not a view from the original collection.
- Return type:
list