From 322478219fd054714036139ca9fe381afd26a209 Mon Sep 17 00:00:00 2001 From: Charlie Date: Fri, 6 Mar 2026 18:21:04 +0100 Subject: [PATCH] Fix column name typo in function compute_diff_expression.py --- pilotpy/tools/patients_sub_clustering.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pilotpy/tools/patients_sub_clustering.py b/pilotpy/tools/patients_sub_clustering.py index 648d3bc..e4d1539 100644 --- a/pilotpy/tools/patients_sub_clustering.py +++ b/pilotpy/tools/patients_sub_clustering.py @@ -189,7 +189,7 @@ def compute_diff_expressions(adata,cell_type: str = None, pandas2ri.activate() # prepare data for R - proportions.index = proportions['sampIeD'] + proportions.index = proportions['sampleID'] if selected_genes is None: selected_genes = cells.iloc[:,1:-1].columns @@ -197,7 +197,7 @@ def compute_diff_expressions(adata,cell_type: str = None, pred_labels = pd.DataFrame() pls = proportions.loc[cells['sampleID']] pred_labels['Predicted_Labels'] = pls[label_name] - pred_labels['sampleID'] = pls['sampIeD'] + pred_labels['sampleID'] = pls['sampleID'] # load R packages and data R=robjects.r