tacco.preprocessingΒΆ

Data preprocessing functions

Functions

apply_random_platform_effect

Applies a random log-laplace distributed rescaling per gene inplace.

check_counts_validity

Checks whether matrix looks like it is a unnormalized uncentered count matrix

construct_reference_profiles

Constructs reference profiles from categorical annotations.

filter

Filter one or more AnnData to satisfy simple quality criteria.

filter_annotation

Filter AnnData to include only cells where at least one annotation is neither negative nor na.

filter_profiles

Filter AnnData to include only genes where at least one profile is neither negative nor na.

filter_reference

Filter AnnData to include only genes and cells where at least one .varm and .obsm annotation is neither negative nor na.

filter_reference_genes

Filter AnnData to include only genes which pass a set of quality and relevance criteria.

normalize_platform

Normalize the expression data and/or profiles in an AnnData to conform with the expression in another dataset.

refine_reference

Refines a reference data set by scaling profiles and annotation to match the expression data.

subsample_annotation

Subsamples the observations to change the annotation fractions.