Preprocessing pp

Preprocessing pp#

Preparing Anndata object for CREsted training/evaluations.

train_val_test_split(adata[, strategy, ...])

Add 'train/val/test' split column to AnnData object.

filter_regions_on_specificity(adata[, ...])

Filter bed regions & targets/predictions based on high Gini score.

sort_and_filter_regions_on_specificity(...)

Sort bed regions & targets/predictions based on high Gini or proportion score per colum while keeping the top k rows per column.

normalize_peaks(adata[, peak_threshold, ...])

Normalize the adata.X based on variability of the top values per cell type.

change_regions_width(adata, width[, ...])

Change the widths of all regions in the adata object.