We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a872962 commit 2825de7Copy full SHA for 2825de7
src/rapids_singlecell/preprocessing/_qc.py
@@ -128,10 +128,13 @@ def _basic_qc(
128
129
if sparse.isspmatrix_csr(X):
130
sparse_qc = _qc.sparse_qc_csr
131
+ shape = X.shape[0]
132
elif sparse.isspmatrix_csc(X):
133
sparse_qc = _qc.sparse_qc_csc
134
+ shape = X.shape[1]
135
else:
136
raise ValueError("Please use a csr or csc matrix")
137
+
138
sparse_qc(
139
X.indptr.data.ptr,
140
X.indices.data.ptr,
@@ -140,7 +143,7 @@ def _basic_qc(
143
sums_genes.data.ptr,
141
144
genes_per_cell.data.ptr,
142
145
cells_per_gene.data.ptr,
- int(X.shape[1]),
146
+ int(shape),
147
int(cp.dtype(X.data.dtype).itemsize),
148
)
149
0 commit comments