Skip to content

Commit

Permalink
Revert "check if incorrect dimensions and pad numbers if missing (#57)…
Browse files Browse the repository at this point in the history
…" (#61)

This reverts commit 51a576c.
  • Loading branch information
zktuong authored Feb 15, 2024
1 parent 80ddf1d commit 15c7089
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ktplotspy/plot/plot_cpdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,6 @@ def plot_cpdb(
metadata = adata.obs.copy()
means_mat = prep_table(data=means)
pvals_mat = prep_table(data=pvals)
missing_cols = []
for col in means_mat.columns:
if col not in pvals_mat.columns:
missing_cols.append(col)
if len(missing_cols) > 0:
epty = np.zeros((pvals_mat.shape[0], len(missing_cols))) + 1
missing_df = pd.DataFrame(epty, columns=missing_cols, index=pvals_mat.index)
pvals_mat = pd.concat([pvals_mat, missing_df], axis=1)
if (interaction_scores is not None) & (cellsign is not None):
raise KeyError("Please specify either interaction scores or cellsign, not both.")

Expand Down

0 comments on commit 15c7089

Please sign in to comment.