Skip to content

Commit d51b911

Browse files
Save on space by deleting obs in not joining
1 parent bbadf50 commit d51b911

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

benj/aggregate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def aggregate_collection(adata, which:Union[str, List[str]]="X", view:bool=True,
2222
del tbl[k].raw
2323
if join_vars is None:
2424
del tbl[k].var
25+
del tbl[k].obs
2526
if "layers" not in which and "all" not in which:
2627
del tbl[k].layers
2728
gc.collect()

0 commit comments

Comments
 (0)