-
Notifications
You must be signed in to change notification settings - Fork 1
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
Draft: proof-of-concept for streamline to precomputed annotation, include CORS server for rendering in local neuroglancer #3
base: ak-precomputed
Are you sure you want to change the base?
Conversation
@balbasty -- a couple mini updates here with the script (things I am trying to tackle) • It seems that the NIFTI and the precomputed annotations are still offset in neuroglancer -- e.g. they dont overlap when added as layers --
• It seems that the empty bytes are failing to be recognized by the precomputed backend for neuroglancer (whether or not we should have "empty" bytes -- I'm not sure?)
|
I think you want the tracts coordinate to be in mm RAS, not in voxels. So don't apply the inverse affine, set the axes as 1 mm (not voxel_size) and compute the upper and lower bounds in RAS mm space. There's an example in the Google doc. |
@balbasty thanks for the guidance -- just so I fully understand, you mean this Google doc? https://docs.google.com/document/d/1TnDNvDigOxpNSuZBjHkve_epp7tbpswcxUUcBOaRV94/edit?tab=t.0 If so, do you mean:
in your |
Yes! Although it should really be a "double loop" minimum/maximum (over tracts and edge per tract) |
What exactly is accomplished in the "double loop" that wouldn't be accomplished via a "single loop"? I tried to search online to see why, but couldn't really make 100% sense. |
@balbasty @ayendiki -- starting a branch here for work on
trk
toprecomputed annotation
conversion -- Note: I am testing this against google's current neuroglancer, not our forkTo replicate locally/work with if you'd like:
This will produce a few thousand small (1KB-ish) coordinates with the JSON properties necesssary for rendering in neuroglancer -- my current obstacles is getting the precomputed annotation layer, and the nifti layer (
sub-I58_sample-hemi_desc-preproc_dwi_FA.nii.gz
) in this case to be in the same voxel spaceWill keep you posted as things progress -- wanted to get code on GitHub to start the conversation