MetaCell / salk-interactive-atlas

1 stars 0 forks source link

neurons in the 3D not constrained to grey matter (in 2D they are) #185

Open neuroBazzi opened 2 years ago

neuroBazzi commented 2 years ago

From the client: The neuronal locations in the 3D viewer were not constrained to the Grey matter, while they were properly constrained in the 2D viewer

awaiting data and snaphots

neuroBazzi commented 2 years ago

@afonsobspinto they shared the data with us: it's labeled V2b_PKD2L1 in this folder: https://drive.google.com/drive/folders/1-5dhTs-IsejBu_mLGSgDwAyEHc-VoTaa

zsinnema commented 2 years ago

I've uploaded the dataset to the dev server and I notived this: image

couple of things here:

neuroBazzi commented 2 years ago

@zsinnema agreed, it seems another manifestation of the same issue. all neuorns are a mismatched between the 2 visualisers, I was using as anchoring points the three neurons that are at the top right edge of the grey matter in 2D and outside of it in the 3D. another question for @afonsobspinto, the ring of neurons seems a pretty unusual formation. Could it be that the coordinates of the edges of the Central Canal turned into neurons? the central canal should be more or less in that position. This would be a different issue from the fact that there is mismatch between the 2D/3D

zsinnema commented 2 years ago

@neuroBazzi cc: @afonsobspinto imo the issue here is the scaling and centering.... the picture should be the same for "all" viewers

would be nice if we have a picture of the correct positioned neurons or a description how we can see them in e.g. Napari

neuroBazzi commented 2 years ago

@zsinnema ok I will ask Stephen Lenzi (I will also ask Matteo to add him to this repo so we can tag him in the future)

zsinnema commented 2 years ago

Hi @neuroBazzi any news on this?

neuroBazzi commented 2 years ago

@zsinnema not yet, Stephen is off. Anything we can do without his help?

afonsobspinto commented 2 years ago

I'm thinking that the issue in the 3D viewer is somehow related with the meshes. That's my take after rolling out problems in the InstancedMesh logic by doing the cells positioning in a visualizer independent of the application. Here we just simply draw spheres in the coordinates we read from the transformed_cells and they are still displaced (be aware the y axis is inverted): image In the process of testing I noticed that the latest meshes I have are actually out of scale with the coordinates in the transformed_cells file: image I shared this with @stephenlenzi, plus I also mentioned to him the sort of 'ring' structure we get from 'V2b_PKD2L1' but that's for sure a different issue (probably to keep track on cordmap)