From b2de4ac7e3a9dbac866e92df65841c94a1bcb645 Mon Sep 17 00:00:00 2001 From: Maarten-vd-Sande Date: Thu, 20 Jul 2023 11:40:57 +0200 Subject: [PATCH] no intercept when fitting --- scepia/sc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scepia/sc.py b/scepia/sc.py index f8fabf4..a076c1a 100755 --- a/scepia/sc.py +++ b/scepia/sc.py @@ -263,7 +263,7 @@ def relevant_cell_types( cell_types = pd.DataFrame(index=X.columns) for col in expression.columns: - g.fit(X, expression[col]) + g.fit(X, expression[col], fit_intercept=False) coefs = pd.DataFrame(g.coef_, index=X.columns) cell_types[col] = coefs