Skip to content

Commit b76b9ec

Browse files
authored
Soften the cell number assertion in aggregation script to account for resolvi (#101)
1 parent 537aaae commit b76b9ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/methods_data_aggregation/aggregate_spatial_data

src/methods_data_aggregation/aggregate_spatial_data/script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
##############
6161
# Assertions #
6262
##############
63-
assert len(sdata_transcripts["transcripts"]["cell_id"].unique()) in [adata.n_obs, adata.n_obs + 1], "Number of cells in transcripts and adata do not match"
63+
assert len(sdata_transcripts["transcripts"]["cell_id"].unique()) >= adata.n_obs, "Number of cells in transcripts must be at least the number of cells in the adata"
6464

6565
##################
6666
# Aggregate data #

0 commit comments

Comments
 (0)