You can use 3D data pulled from CATMAID to create meshes. You can also do the same with light level data and then transform into FAFB space.
First load main packages
In order to run some of this example we need to ensure that we:
We will most our examples run conditionally based on this.
We’re going to use synapses between PNs and KCs to define a mesh
Now we can make an alphashape based on those connector positions. We need to set the alpha value in the ashape3d function to something sensible based on the spatial scale of our data - he we use alpha=6000 nm.
We can compare the resultant mesh with the location of the connectors
We can also compare with the mesh supplied with elmr, which was transformed from JFRC2 space via JFRC2013 to FAFB:
And we can also compare the dorsal view as well:
It’s clear that there is a mismatch here. This may originate in part from the fact that the JFRC2013 intermediate template has rather flattened MB calyces. The quality of the JFRC2-JFRC2013 bridging registration is likely also a factor.
Finally if one wanted to place this mesh into CATMAID, one could do it as follows: