read_adata

besca.tl.auto_annot.read_adata(train_paths, train_datasets, test_path, test_dataset)[source]

read adata files of training and testing datasets

This function reads a list of training datasets (at least one) and one testing dataset from .h5ad files and returns a list of training datasets anndata objects, and a testing anndata object.

Parameters:
  • train_paths (list) – list of paths where training datasets are located

  • train_datasets (list) – a list of names of training datasets (same order as paths)

  • test_path (string) – path of test dataset

  • test_dataset (string) – name of test dataset

Returns:

  • list – A list of training dataset anndata objects

  • AnnData – An anndata object containing testing dataset