theislab / scgen

Single cell perturbation prediction
https://scgen.readthedocs.io
GNU General Public License v3.0
260 stars 52 forks source link

predict() argument missing for 'cell_type_key' and 'condition_key' #15

Closed gaelcge closed 4 years ago

gaelcge commented 4 years ago

Hi guys I am not sure what arguments to pass to 'cell_type_key' and 'condition_key' following this error:

pred, delta = scg.predict(adata= train_new, adata_to_predict=unperturbed_cd4t, ... conditions={"ctrl": "control", "stim":"stimulated"}) Traceback (most recent call last): File "", line 2, in TypeError: predict() missing 2 required positional arguments: 'cell_type_key' and 'condition_key'

Thanks

gaelcge commented 4 years ago

This worked =

pred, delta = scg.predict(adata= train_new,conditions={"ctrl": "control", "stim":"stimulated"},cell_type_key="cell_type",condition_key="condition",adata_to_predict=unperturbed_cd4t)

M0hammadL commented 4 years ago

Hi, Thanks for mentioning, I update the example in the code.