Open GGboy-Zzz opened 8 months ago
Hello, I encountered the same issue as you. I was able to solve it by following these steps:
conda create -n scgen-dev python=3.8 -y
pip install torch==1.12.0+cu102 torchvision==0.13.0+cu102 torchaudio==0.12.0 --extra-index-url https://download.pytorch.org/whl/cu102 # a given version of pytorch, here I use torch1.12.0+cu102
pip install git+https://github.com/theislab/scgen.git # or git clone the repo and run pip install .
train_new
in the python code as follows::
train_new = train[~((train.obs["cell_type"] == "CD4T") &
(train.obs["condition"] == "stimulated"))].copy()
This solution worked for me and the tutorial. I hope it is helpful for you too!
I have been trying to merge multiple single cell data using scgen recently, but when I tried to run the tutorial, an error occurred,as follows,
TypeError Traceback (most recent call last)