Skip to content

Commit

Permalink
read sparse
Browse files Browse the repository at this point in the history
  • Loading branch information
VolkerBergen committed Aug 22, 2018
1 parent 20034d0 commit 1279d84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scvelo/preprocessing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def read_loom_layers(file_name, backup_url=None):
print("OS error: {0}".format(OSError))

with loompy.connect(file_name, 'r') as lc:
X = lc.layer['spliced'][:, :].T
X = lc.layer['spliced'][:, :].sparse().T.tocsr()

layers = OrderedDict()
layers['spliced'] = lc.layer["spliced"][:, :].T
layers['unspliced'] = lc.layer["unspliced"][:, :].T
layers['spliced'] = lc.layer["spliced"][:, :].sparse().T.tocsr()
layers['unspliced'] = lc.layer["unspliced"][:, :].sparse().T.tocsr()

obs = dict(lc.col_attrs)
obs['obs_names'] = obs.pop('CellID')
Expand Down

0 comments on commit 1279d84

Please sign in to comment.