broadinstitute / Tangram

Spatial alignment of single cell transcriptomic data.
BSD 3-Clause "New" or "Revised" License
252 stars 50 forks source link

map_cells_to_space "could not determine the shape of object type 'Series'" error #87

Open pakiessling opened 1 year ago

pakiessling commented 1 year ago

Hi I am on scanpy=1.9.3 squidpy=1.2.3 tangram=1.0.4 torch=1.13.1+cu117

I am trying to integrate single cell and merfish data.

A marker list of 104 genes was correctly prepared and I have verified that both adata were correctly populated with training and overlap data.

tg.map_cells_to_space in cluster mode fails with could not determine the shape of object type 'Series'

grafik

Did I mess something up?

pakiessling commented 1 year ago

Might be related to this https://github.com/pytorch/pytorch/issues/51112

pakiessling commented 1 year ago

Issue is fixed by changing enviroment to:

name: tangram-env dependencies:

It seems like an upgrade to a package broke the setup of the torch tensor.

Maybe consider changing the enviroment.yml for a quick fix? @lewlin @gaddamshreya

gaddamshreya commented 1 year ago

@pakiessling Thank for your interest in Tangram! Also, thank you for finding the solution to this issue! I will review and make the change.

Best, Shreya