Skip to content

Commit

Permalink
anndata
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-gould committed Sep 17, 2024
1 parent ddbc98a commit d620c40
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 386 deletions.
6 changes: 3 additions & 3 deletions cirrocumulus/abstract_backed_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import pandas as pd
import scipy.sparse
from anndata import AnnData
from anndata._core.sparse_dataset import sparse_dataset

from cirrocumulus.abstract_dataset import AbstractDataset
from cirrocumulus.anndata_util import ADATA_LAYERS_UNS_KEY, ADATA_MODULE_UNS_KEY
from cirrocumulus.sparse_dataset import SparseDataset


# string_dtype = h5py.check_string_dtype(dataset.dtype)
Expand Down Expand Up @@ -73,8 +73,8 @@ def get_X(self, var_ids, keys, node):
get_item = var_ids.get_indexer_for(keys)

if self.is_group(node):
sparse_dataset = SparseDataset(node) # sparse
X = sparse_dataset[:, get_item]
ds = sparse_dataset(node) # sparse
X = ds[:, get_item]
else: # dense
X = self.slice_dense_array(node, get_item)
var = pd.DataFrame(index=keys)
Expand Down
373 changes: 0 additions & 373 deletions cirrocumulus/sparse_dataset.py

This file was deleted.

Loading

0 comments on commit d620c40

Please sign in to comment.