library(nat.jrcbrains)
download_saalfeldlab_registrations()n_trans = xform_brain(my_neuron, sample=JRC2018FIBF, reference=FCWB)n.dps = dotprops(my_neuron_transf)
--
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/c20c8be4-3b1a-4b16-a100-96df80f0f5d6%40googlegroups.com.
Greg.
To unsubscribe from this group and stop receiving emails from it, send an email to nat-...@googlegroups.com.
remotes::install_github("natverse/nat.jrcbrains")
# once onlynat.jrcbrains::download_saalfeldlab_registrations()
library(nat.jrcbrains)
# check natverse knows about the registrationsplot(bridging_graph(), vertex.size=15, edge.arrow.size=.5)# notice use of quotes for the sample brain# however it seems that JRCFIB2018Fraw is not yet available in the natverse ...my_neuront=xform_brain(my_neuron, reference=JRC2018F, sample="JRCFIB2018Fraw")# so manually deal with the raw to µm mapping# *8 to go from raw pixels to nm# /1000 to go from nm to µmmy_neuront=xform_brain(my_neuron*8/1000, reference=JRC2018F, sample="JRCFIB2018F")
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/5527d88c-78c9-480b-afa5-e2b4fa131bd6%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/nat-user/5527d88c-78c9-480b-afa5-e2b4fa131bd6%40googlegroups.com.
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/7c87da46-20c8-491d-9bb9-7367860e7a08%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to nat-...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/nat-user/7c87da46-20c8-491d-9bb9-7367860e7a08%40googlegroups.com.
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/84d38ef2-61b6-42dd-890d-24972a5762b4%40googlegroups.com.
conn = neuprint_login(server=Sys.getenv('npserver'), token=Sys.getenv('nptoken'))
retneurons = neuprint_search('MBON01', fixed=TRUE)ofinterest = retneurons[1,]bodyid = ofinterest[1, 'bodyid']
neuron.hemibrain.raw = neuprint_read_neurons(bodyid)[[1]]neuron.hemibrain.fcwb=xform_brain(neuron.hemibrain.raw/125, reference=FCWB, sample="JRCFIB2018F")
neuron.hemibrain.dps = dotprops(neuron.hemibrain.fcwb)nblast(neuron.hemibrain.dps, options("nat.default.neuronlist"))Error in query[, c("X", "Y", "Z")] : incorrect number of dimensions
b=query[,c("X","Y","Z")]
fafbconn=catmaid::catmaid_login(server='https://fafb.catmaid.virtualflybrain.org/')dl1.fafb=catmaid::read.neurons.catmaid('name:DL1', conn=fafbconn)dl1.fcwb=xform_brain(dl1.fafb, reference = FCWB, sample="FAFB14")nblast(dl1.fafb, options("nat.default.neuronlist"))To unsubscribe from this group and stop receiving emails from it, send an email to nat-...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/nat-user/84d38ef2-61b6-42dd-890d-24972a5762b4%40googlegroups.com.
On 7 Mar 2020, at 19:54, James Jeanne <jje...@gmail.com> wrote:
Terrific. Thanks. Can you explain further "what is not quite right"? With the JDK installed and adding in the factor of 8/1000, the registration transformations look fine (at least judging by eye). Are there remaining inaccuracies that should be fixed before I can rely on this registration?
library(neuprintr)# server=Sys.getenv('npserver'), token=Sys.getenv('nptoken')# As per the neuprint readme, https://github.com/natverse/neuprintr# we recommend setting the following two environment variables# This is only necessary if they should be something other than these defaults# neuprint_server = "https://neuprint.janelia.org"# neuprint_dataset = "hemibrain:v1.0.1"conn = neuprint_login()
retneurons = neuprint_search('MBON01', fixed=TRUE)ofinterest = retneurons[1,]bodyid = ofinterest[1, 'bodyid']# bodyid = retneurons[1, 'bodyid'] also works
# you don't necessarily need to subset out the first neuron with [[1]]# if you do, then there are various places in the plot3d statements# below where I have set WithNodes = Fneuron.hemibrain.raw = neuprint_read_neurons(bodyid)[[1]]
library(nat.jrcbrains)neuron.hemibrain.fcwb=xform_brain(neuron.hemibrain.raw/125, reference=FCWB, sample="JRCFIB2018F")
# check that the neuron looks okplot3d(neuron.hemibrain.fcwb, WithNodes=F, col='green')plot3d(neuron.hemibrain.dps, col='blue')plot3d(FCWB)nview3d()
neuron.hemibrain.fcwb.pruned <- prune_twigs(neuron.hemibrain.fcwb, twig_length = 5)neuron.hemibrain.dps = dotprops(neuron.hemibrain.fcwb.pruned, k=5, resample=1)
# load FlyCircuit neuronslibrary(flycircuit)dps<-read.neuronlistfh("http://flybrain.mrc-lmb.cam.ac.uk/si/nblast/flycircuit/dpscanon.rds", localdir=getOption('flycircuit.datadir'))options('nat.default.neuronlist'='dps')# As a one time step, you need to download all the flycircuit neurons.# you can do this like thisremotesync(dps)
library(nat.nblast)# this implicitly will use the 'dps' object as the query neuronssc=nblast(neuron.hemibrain.dps, .progress='text')hist(sc)top10=sort(sc, decreasing = T)[1:10]
# look at the resultsnclear3d()# this implicitly will use the 'dps' object as the source of neurons to plotplot3d(names(top10)[1:3], soma=T)plot3d(neuron.hemibrain.fcwb.pruned, col='black', WithNodes = F, lwd=2, soma=T)
# Look at neurons that actually have matchesmbony5s=neuprint_read_neurons(neuprint_search('MBON.*y5.*', field = 'name'))
mbony5s.fcwb=xform_brain(mbony5s/125, reference=FCWB, sample="JRCFIB2018F")
nclear3d()plot3d(names(top10)[1:3], soma=T)nlscan(mbony5s.fcwb, col='black', soma=T)
# You might find it useful to plot the hemibrain surface to see # how neurons are cut off# Needs another package, hemibrainrhemibrain.surf.fcwb <- xform_brain(hemibrainr::hemibrain.surf/125, reference=FCWB, sample="JRCFIB2018F")plot3d(hemibrain.surf.fcwb, alpha=.2)test=read.neuron('D:/hemibrain_skeletons/skeletons/200326126.swc',class='neuron')
test.fcwb=xform_brain(test*8/1000, reference="FCWB", sample="JRCFIB2018F")
test.fcwb.pruned=prune_twigs(test.fcwb, twig_length = 5)--
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/bfa8f737-5371-4ed4-9068-af73b7eade83o%40googlegroups.com.
fc.ids = fc_get_ids()
fcns <- fc_read_neurons(fc.ids)
To unsubscribe from this group and stop receiving emails from it, send an email to nat-...@googlegroups.com.
# find all neurons with at least one character in their name
named.neurons=neuprint_ids("/name:.+")
# ensure that every single piece is stitched, no need to fetch synapses
alln=neuprint_read_neurons(named.neurons, heal.threshold=1e9, connectors=FALSE)
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/d6885b7e-bb2f-4d05-bbc5-0e69170a4740o%40googlegroups.com.