From 14ca30548461ce0013214aac448b1a5e9abbea14 Mon Sep 17 00:00:00 2001 From: zqfang Date: Tue, 24 Oct 2023 16:10:04 -0700 Subject: [PATCH] typo --- gseapy/gsea.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gseapy/gsea.py b/gseapy/gsea.py index a8c7673..1513a7a 100644 --- a/gseapy/gsea.py +++ b/gseapy/gsea.py @@ -101,7 +101,7 @@ def load_data(self, cls_vec: List[str]) -> Tuple[pd.DataFrame, Dict]: self._logger.warning( "Found duplicated gene names, values averaged by gene names!" ) - exprs = exprs.groupby(level=0).mean() + df = df.groupby(level=0).mean() # in case the description column is numeric if len(cls_vec) == (df.shape[1] - 1):