hormone2cell.compute_aveExp_by_category
- hormone2cell.compute_aveExp_by_category(adata: AnnData, sc_sn_col: str = 'suspension_type', celltype_col: str = 'Celltype', tissue_col: str = 'Tissue') DataFrame
Integrated workflow for average expression analysis by category (cell / nucleus).
Steps
Check count data (raw counts required)
Perform QC: filter cells with fewer than min_genes
Normalize counts with normalize_total(target_sum)
Digitize Celltype_tissue into an integer-encoded Cluster column
For each category in sc_sn_col (e.g. ‘cell’, ‘nucleus’), run get_result_df()
Return a list of result DataFrames, one per category