Skip to content

Commit

Permalink
Merge pull request maximilianh#184 from mxposed/fix-mtx-import
Browse files Browse the repository at this point in the history
When reading mtx, produce float32 values, consistent with .tsv.gz.
  • Loading branch information
maximilianh committed Jul 14, 2020
2 parents 93171bf + d154ee0 commit 61e9d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cbPyLib/cellbrowser/cellbrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ def iterRows(self):

if i%1000==0:
logging.info("%d genes written..." % i)
arr = mat.getrow(i).toarray()
arr = mat.getrow(i).toarray().astype("float32")
yield (geneId, geneSym, arr)

class MatrixTsvReader:
Expand Down

0 comments on commit 61e9d20

Please sign in to comment.