File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
- ## Version 0.5.1
3
+ ## Version 0.5.1 - 0.5.2
4
4
5
5
- Support csc matrices in layers, although not common ran into a situation where the
6
6
anndata object was stored from R.
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def to_summarizedexperiment(self):
83
83
84
84
@property
85
85
def shape (self ):
86
- return self .matrix . shape
86
+ return ( len ( self .cell_metadata ), len ( self . gene_annotation ))
87
87
88
88
def __len__ (self ):
89
89
return self .shape [0 ]
Original file line number Diff line number Diff line change @@ -120,3 +120,11 @@ def test_query_cellarrdataset():
120
120
for cell , cell_chunk in cd .itercells ():
121
121
cell_count += 1
122
122
assert cell_count == 1100
123
+
124
+ full_row_slice = cd [1 ,]
125
+ assert full_row_slice is not None
126
+ assert full_row_slice .shape == (1 , 1000 )
127
+
128
+ full_col_slice = cd [:, 1 ]
129
+ assert full_col_slice is not None
130
+ assert full_col_slice .shape == (1100 , 1 )
You can’t perform that action at this time.
0 commit comments