FACSPy.sync.sample_ids_from_metadata

FACSPy.sync.sample_ids_from_metadata#

FACSPy.sync.sample_ids_from_metadata(adata)#

This function synchronizes the dataset by selecting the present sample_IDs in adata.uns[“metadata”] and subsetting the dataset accordingly.

Parameters:

adata (AnnData) – the current dataset with an uns dict

Examples

>>> dataset = fp.create_dataset(...)
>>> dataset.uns["metadata"].subset("sample_ID", ["1", "2", "3"])
>>> fp.sync.sample_ids_from_metadata_to_obs(dataset)