-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
symmetric_manc drops body position #16
Comments
Thanks for pointing this out. It is a units problem. symmetric_manc wants coordinates in microns but these coords are in raw voxels. Given how different they are I think we could probably add some logic inside
Better still would be general units support for nat! |
Actually, what happened here is
but indeed, the division does not apply to X,Y,Z. As I always forget what data you need to divide by what, I'll have a look at units support soon. |
There is special handling for attached metadata data.frames for xform.neuronlist https://github.com/natverse/nat/blob/master/R/xform.R#L209-L228 however it is controlled by an argument since it would be possible to have XYZ metadata columns that you didn't want to be touched.
it should probably be translated to Ops.neuronlist but implement Ops is slightly more complicated. Here is the implementation for https://github.com/natverse/nat/blob/88507a819c2b4b4f16ada74a79560abc4d260fc5/R/neuron.R#L345 we would either need to
|
What is?
After calling
symmetric_manc
soma coordinates become NA:Expected behaviour
Soma positions become symmetrised too.
The text was updated successfully, but these errors were encountered: