library(natverse)
library(nat.jrcbrains)
library(neuprintr)
library(fafbseg)
#hemibrain to flywire
gf.hemibrain=neuprint_read_neurons(2307027729)
gf.fafb=xform_brain(gf.hemibrain*8/1000,reference='FAFB14',sample="JRCFIB2018F",via=JRC2018F)
plot3d(gf.fafb)
open_fafb_ngl(gf.fafb,coords.only=FALSE)
#I selected a box around primary neurite, and the code worked beautifully- took me to a location that is right next to giant fiber in flywre.
#flywire to hemibrain
choose_segmentation(release = 'flywire31') #not sure if this line is necessary
open_fafb_ngl(c(108893, 47740, 4381)*c(4,4,40))#not sure if this line is necessary
gf.flywire=read_cloudvolume_meshes("720575940623301520")
gf.hemibrain2=xform_brain(gf.flywire[[1]]*125,sample='FAFB14',reference="JRCFIB2018F",via=JRC2018F)
wire3d(gf.hemibrain2)
open_fafb_ngl(gf.hemibrain2,coords.only=TRUE)
#I understand that open_fafb_ngl is specific for fafb, that's why I asked for coordinates only, however when I select around primary neurite again, the coordinate I got is :