Skip to content

fix: handle single-replicate cells in mut_param_dataset_correlation - #321

Closed
abhi-0203 wants to merge 1 commit into
matsengrp:mainfrom
abhi-0203:fix/single-replicate-correlation
Closed

fix: handle single-replicate cells in mut_param_dataset_correlation#321
abhi-0203 wants to merge 1 commit into
matsengrp:mainfrom
abhi-0203:fix/single-replicate-correlation

Conversation

@abhi-0203

Copy link
Copy Markdown

Closes #319

When a (mut_param, x) cell has only one replicate, the correlation matrix is 1x1 and iloc[0,1] raises IndexError. This adds a check to return NaN for such cells instead.

Fixes #319

When a (mut_param, x) cell has only one replicate, the correlation
matrix is 1x1 and indexing [0,1] raises IndexError. Return NaN
for such cells instead.

Closes #319
@abhi-0203 abhi-0203 closed this by deleting the head repository Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IndexError in mut_param_dataset_correlation for single-replicate cells

1 participant