Preprocessing pp
#
Preparing Anndata object for CREsted training/evaluations.
|
Add 'train/val/test' split column to AnnData object. |
|
Filter bed regions & targets/predictions based on high Gini score. |
Sort bed regions & targets/predictions based on high Gini or proportion score per colum while keeping the top k rows per column. |
|
|
Normalize the adata.X based on variability of the top values per cell type. |
|
Change the widths of all regions in the adata object. |