Skip to content

Commit

Permalink
Save on space by deleting obs in not joining
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-james committed Feb 7, 2025
1 parent bbadf50 commit d51b911
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions benj/aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def aggregate_collection(adata, which:Union[str, List[str]]="X", view:bool=True,
del tbl[k].raw
if join_vars is None:
del tbl[k].var
del tbl[k].obs
if "layers" not in which and "all" not in which:
del tbl[k].layers
gc.collect()
Expand Down

0 comments on commit d51b911

Please sign in to comment.