tirank.SCSTpreprocess.calculate_populations_meanRank
- tirank.SCSTpreprocess.calculate_populations_meanRank(input_data, category)[source]
Calculates the mean feature values for each cell subpopulation (category).
- Parameters:
input_data (pd.DataFrame) – Input DataFrame (samples x features).
category (pd.Series) – A Series indicating the category (e.g., cluster) of each sample. Must share the same index as input_data.
- Returns:
- A DataFrame where rows are categories and columns
are the mean of features for that category.
- Return type:
pd.DataFrame