COSIE.downstream_analysis.create_normalized_adata
- create_normalized_adata(adata)[source]
Create a new AnnData object by min-max scaling the expression matrix of the input adata.
The values in .X are scaled to the range [0, 1]. If .X is stored in sparse format, it will be converted to a dense NumPy array before normalization. The original .obs, .var, and .obsm fields are preserved in the new AnnData object.
Parameters
- adataAnnData
The input AnnData object containing expression data in .X.
Returns
- new_adataAnnData
A new AnnData object with min-max normalized .X, while retaining the original .obs, .var, and .obsm attributes.