From a7bd76f676a71ea1aa5c607d01dfeb908f3dbd26 Mon Sep 17 00:00:00 2001 From: Charlotte Weaver Date: Tue, 7 May 2019 12:43:20 -0700 Subject: [PATCH] fix #754 (#755) --- server/app/scanpy_engine/scanpy_engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app/scanpy_engine/scanpy_engine.py b/server/app/scanpy_engine/scanpy_engine.py index e6446693a..58c0843dc 100644 --- a/server/app/scanpy_engine/scanpy_engine.py +++ b/server/app/scanpy_engine/scanpy_engine.py @@ -304,7 +304,7 @@ def slice_columns(X, var_mask): if sparse.issparse(X): # use tuned getcol/hstack for performance indices = np.nonzero(var_mask)[0] cols = [X.getcol(i) for i in indices] - return sparse.hstack(cols) + return sparse.hstack(cols, format="csc") else: # else, just use standard slicing, which is fine for dense arrays return X[:, var_mask]