theislab / scgen

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

Questions about balancer function #31

Closed XiajieWei closed 3 years ago

XiajieWei commented 3 years ago

Hi, I found that in the python file "util.py" in the models folder, the statement in the balancer function (line 190) that assigns values to balanced_data.obs[condition_key] is "balanced_data.obs[conditionkey] = np.concatenate(all data_label)" , is this a misspelling or am I misunderstanding? I think it should be "balanced_data.obs[condition_key] = np.concatenate(all_data_condition)". I wonder if this has any effect on the results?

M0hammadL commented 3 years ago

Hi

We have released a new PyTorch version of the code. Please use this version.

Best Mo