PreprocessingΒΆ

preprocessing.centered_pca(adata[, n_comps, ...])

Performs PCA on the centered data matrix and stores the results in obsm.

preprocessing.project_pca(query_adata[, ...])

Projects the query data to the principal components of the reference data.

preprocessing.reconstruct_pca(query_adata[, ...])

Performs PCA on the data matrix and projects the data to the principal components.

preprocessing.annotate_compounds(adata, ...)

Annotates compounds in adata using pertpy and PubChem.

preprocessing.encode_onehot(adata, ...[, ...])

Encodes covariates obs as one-hot vectors and stores them in uns.

preprocessing.get_molecular_fingerprints(...)

Computes Morgan fingerprints for compounds in adata and stores them in uns.

preprocessing.compute_wknn([ref_adata, ...])

Compute the weighted k-nearest neighbors graph between the reference and query datasets

preprocessing.transfer_labels(query_adata, ...)

Transfer labels from the reference to the query dataset.