You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks to me like sphere_annotation() is expecting radii in the units of the annotation layer (often voxels), and is then scaling z down so that the physical size (nm) of the sphere is the same in all axes:
That seems sensible enough, but that means sphere_annotation() must be called with radii already converted to the unit of the annotation layer. SphereMapper says it expects the radius_column to contain radii in nm, but I think those values are getting passed to sphere_annotation() as those nm values that the user provides, without the conversion to layer resolution that I think needs to happen before calling sphere_annotation():
Having added that one line, my spheres now appear at the correct size when I'm passing in nm radii values in an annotation layer that has its units as voxels.
The text was updated successfully, but these errors were encountered:
It looks to me like
sphere_annotation()
is expecting radii in the units of the annotation layer (often voxels), and is then scaling z down so that the physical size (nm) of the sphere is the same in all axes:nglui/src/nglui/easyviewer/ev_base/nglite/annotation.py
Lines 67 to 77 in 1ca1abf
That seems sensible enough, but that means
sphere_annotation()
must be called with radii already converted to the unit of the annotation layer. SphereMapper says it expects the radius_column to contain radii in nm, but I think those values are getting passed tosphere_annotation()
as those nm values that the user provides, without the conversion to layer resolution that I think needs to happen before callingsphere_annotation()
:nglui/src/nglui/statebuilder/mappers.py
Lines 759 to 772 in 1ca1abf
If I'm seeing this correctly, then something like
could be stuck between the following two lines to do the conversion:
nglui/src/nglui/statebuilder/mappers.py
Lines 761 to 762 in 1ca1abf
Having added that one line, my spheres now appear at the correct size when I'm passing in nm radii values in an annotation layer that has its units as voxels.
The text was updated successfully, but these errors were encountered: