--
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.
Visit this group at https://groups.google.com/group/nat-user.
To view this discussion on the web, visit https://groups.google.com/d/msgid/nat-user/2918f118-1da8-465d-8633-88693588d836%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dear Isabel,Thanks for your interest. The neurons distributed with the flycircuit package are in dotprops format - basically they are broken into short segments. See http://jefferis.github.io/nat/reference/dotprops.htmlRight now the easiest way to get a full traced neuron is just to download straight from the flycircuit website. There is a convenience function for this in an experimental package developed by a student in our group, Alex Bates:http://jefferislab.github.io/catnat/reference/get.skeleton.from.flycircuit.html
Note that this uses the FlyCircuit’s group own registration approach, which is different from our 2016 NBLAST paper.Let me know if you have further questions.Best wishes,
--Hello,I've been using the flycircuit package to plot flycircuit clones, but I haven't been able to figure out how to convert these into neuron objects that I can manipulate using the nat package. Is there a way to do this?Thanks!
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-...@googlegroups.com.
# read flycircuit neurons from VFB
read.flycircuit.vfb <- function(x, ...) {
# convert to numeric flycircuit ids
# by chance these match the VFB ids for each SWC
# since these were the first skeletons to be hosted on VFB
ids <- flycircuit::fc_idid(x)
# http://www.virtualflybrain.org/data/VFB/i/0000/0001/volume.swc
u <- sprintf(
"http://www.virtualflybrain.org/data/VFB/i/%04d/%04d/volume.swc",
ids %/% 1e4,
ids %% 1e4
)
read.neurons(u, neuronnames = flycircuit::fc_neuron(x), ...)
}
# for reproducibility
set.seed(42)
# read in 100 random neurons
nn=read.flycircuit.vfb(sample(16226,size = 100))
plot3d(nn)