Teichlab / SpatialDE

Test genes for Spatial Variation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

multi-dimensional indexing (obj[:, None]) is no longer supported

hanrong498 opened this issue · comments

Hi,

When I am trying to run spatialDE.run(X, exp_tab), I get the error that

ValueError: Multi-dimensional indexing (e.g. obj[:, None]) is no longer supported. Convert to a numpy array before indexing instead.

It traces back to the function get_l_limits(X).

In my case, both X and exp_tab are pd.dataframes. Package versions are NaiveDE-1.2.0 spatialde-1.1.3.

Thank you for your help!

Problem solved when converting X to np.array (i.e, spatialDE.run(np.array(X), exp_tab)). exp_tab can remain as a pd.DataFrame.