Skip to content

Commit

Permalink
fix inference (constraint building) error
Browse files Browse the repository at this point in the history
  • Loading branch information
Clémence Réda committed May 15, 2024
1 parent fe8c874 commit c5e6a8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NORDic/UTILS/utils_grn.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def build_observations(grn, signatures, quiet=False):

## Compatible with perturbation experiment
data_df = data_df.T
pert, sign = exps[exp_nb].split("_")[0], 0 if (exps[exp_nb].split("_")[1]=="KD") else 1
pert, sign = exps[exp_nb-1].split("_")[0], 0 if (exps[exp_nb-1].split("_")[1]=="KD") else 1
data_df[pert] = sign
data_df = data_df.T

Expand All @@ -502,7 +502,7 @@ def build_observations(grn, signatures, quiet=False):
BO = bonesis.BoNesis(grn, data_exps)
## 2. Instantiate reachability & fixed point constraints
for exp_nb in exps_ids:
exp = exps[exp_nb]
exp = exps[exp_nb-1]
pert, sign = exp.split("_")[:2]
cell = exp.split("_")[-1]
sign = int(sign!="KD")
Expand Down

0 comments on commit c5e6a8c

Please sign in to comment.