BayraktarLab/cell2location

AttributeError: module 'cell2location' has no attribute 'run_c2l'

Opened this issue · 0 comments


I followed this tutorial (https://cell2location.readthedocs.io/en/latest/notebooks/cell2location_for_NanostringWTA.html) to run cell2location on NanostringWTA data. But when I run the function cell2location.run_c2l.run_cell2location, it always reports the error AttributeError: module 'cell2location' has no attribute 'run_c2l'.

The version of my cell2location is 0.1.4

>>> cell2location.run_c2l.run_cell2location(meanExpression_sc, adata_wta,
...         model_name=cell2location.models.LocationModelWTA,
...         train_args={'use_raw': False},
...         model_kwargs={
...         "Y_data" : counts_negativeProbes,
...         "cell_number_prior" : {'cells_per_spot': counts_nuclei, 'factors_per_spot': 6, 'combs_per_spot': 3},
...         "cell_number_var_prior" : {'cells_mean_var_ratio': 1, 'factors_mean_var_ratio': 1, 'combs_mean_var_ratio': 1}})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'cell2location' has no attribute 'run_c2l'