snap-stanford/GEARS

KeyError: 'val'

Closed this issue · 4 comments

I am interested in simulating perturbations for a specific gene, as mentioned in your article, but I have encountered some issues as shown in this link: #56.
As described in your article about simulating single-gene perturbations, I would like to know how you handled individual perturbation categories. How did you manage single perturbations in your study?

Sorry, I don't follow your question - can you please be more specific on what errors you are facing.
What do you mean by 'manage' single perturbations?

I'm glad for your help. My idea is to use this tool to simulate perturbations of a specific gene. As shown below: The condition column in my ada only contains two situations:
AAACCCAAGATGACCG_1-0 ctrl
AAACCCAGTCAAATCC_1-0 ctrl
Name: condition, dtype: category
Categories (2, object): ['CHRNB1+ctrl ',' ctrl ']
微信图片_20240604102855

Sorry for the late reply, I was busy with my PhD defense.

As described in #56, those are too few perturbation categories for the model to perform the default 'simulation' split. I also wouldn't recommend training GEARS on only a single perturbation under any split.

Please feel free to re-open this issue in case you still have trouble, and please add more context on the exact error you are facing.