episcanpy.pp.load_metadata

episcanpy.pp.load_metadata(adata, metadata_file, path='', separator=';')

Load observational metadata in adata.obs. Input metadata file as csv/txt and the adata object to annotate.

first raw of the metadata file is considered as a header first column contain the cell name

adata: initial AnnData object

metadata_file: csv file containing as a first column the cell names and in the

rest of the columns any king of metadata to load

path: pathe to the metadata file

separator: ‘;’ or ” “, character used to split the columns

Returns

Annotated AnnData