Change neuron radius

17 views
Skip to first unread message

Isabel D'Alessandro

unread,
Jun 30, 2020, 3:59:11 PM6/30/20
to nat-user
Hello, 
I'm wondering if there are any nat tools that would allow me to change the radius/thickness of of a neuron object (or allow me to convert my neuron object to a format where this is possible). I ultimately want to generate an nrrd file containing my skeleton, but I want this skeleton to have a greater thickness. For context, this is how I'm currently writing my neuron to an nrrd file: 
Thanks! 

my_imd3_object=as.im3d(xyzmatrix(my_neuron_object),JRC2018U)
write
.im3d(my_im3d_object,'myfile.nrrd')



Greg Jefferis

unread,
Jun 30, 2020, 6:53:18 PM6/30/20
to Isabel D'Alessandro, nat-user
Dear Isabel,

If you want to make a more dilated volumetric rendition of a neuron, you can either

* increase the voxel size (by making an object with the same bounding box as JRC2018U) but larger voxels

* do some appropriate 3D convolution on the line object.

The natverse is not particularly set up for the latter, but I have used Fiji/ImageJ for this purpose after writing out a nrrd file as you have done below. You could use e.g. the Gaussian 3D operation with a 2 µm kernel. 

When I had a lot of this work to do, I have also used the unu command line tool [1] resample command to do the filtering. There are a a range of alternatives to the gaussian kernel which may be better in retaining the sparse nature of the dataset. One other thing, it is important to save compressed nrrds (e.g. gz) for this kind of work since the image volumes will only have a few non-zero pixels.

All the best,

Greg.

--
You received this message because you are subscribed to the Google Groups "nat-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nat-user+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/nat-user/a49524ed-fd3d-48e0-83d6-97814b6d1fb5o%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages