View source: R/hemibrain_read_neurons.R
hemibrain_read_neurons | R Documentation |
Read neurons from the hemibrain connectome project. This function
uses the package neuprintr
to read neurons. It then uses
hemibrain_flow_centrality
to re-root and split neurons into putative
axons and dendrites. Optionally, it may also convert neurons from their raw voxel
space (as they are stored in neuPrint) to microns.
hemibrain_read_neurons(
x = NULL,
local = FALSE,
microns = FALSE,
reroot = TRUE,
remote = TRUE,
googlesheet = FALSE,
remove.bad.synapses = FALSE,
clean = FALSE,
...
)
scale_neurons(x, scaling = (8/1000), ...)
hemibrain_neurons(
x = NULL,
local = FALSE,
brain = c("JRCFIB2018Fraw", "JRCFIB2018F", "FAFB14", "JFRC2", "JRC2018F", "FCWB"),
mirror = FALSE,
dotprops = FALSE,
swc = FALSE,
zip = FALSE,
folder = "hemibrain_neurons/"
)
x |
a vector of bodyids that can be read from 'https://neuprint.janelia.org/'. |
local |
|
microns |
convert dimensions from raw voxels into microns (template brain: |
reroot |
logical, whether or not somas should be re-rooted.
Note that if FALSE, re-rooting occurs anyway via |
remote |
logical. Whether not to use |
googlesheet |
logical, whether or not manually checked somas should be read from the Google Sheet |
remove.bad.synapses |
whether or not to run |
clean |
whether or not to set synapse-less branches to |
... |
arguments passed to |
scaling |
the factor by which neuron coordinates in raw voxel space should be multiplied. The default scales to microns. |
brain |
the brainspace in which hemibrain neurons have been registered. Defaults to raw voxel space for the hemibrain project. |
mirror |
logical, whether or not to read neurons that have been mirrored (i.e. flipped to the 'other' brain hemisphere). |
dotprops |
logical. Whether or not to retrieve a |
swc |
logical. When using neurons with |
zip |
logical. If |
folder |
the sub-folder in which to look for a |
the neuron or neuron list object inputted, with centripetal flow centrality information added to neuron$d and a segregation index score. The neuron$d$Label now gives the compartment, where axon is Label = 2, dendrite Label = 3, primary dendrite Label = 4 and primary neurite Label = 7. Soma is Label = 1.
hemibrain_splitpoints
, hemibrain_flow_centrality
, hemibrain_somas
,
hemibrain_precomputed_splitpoints
, hemibrain_metrics
,hemibrain_remove_bad_synapses
,hemibrain_get_meta
,flywire_neurons
## Not run:
# Choose neurons
## In this case some antennal lobe local neurons
al.local.neurons = c("1702323386", "2068966051", "2069311379", "1702305987", "5812996027",
"1702336197", "1793744512", "1976565858", "2007578510", "2101339904",
"5813003258", "2069647778", "1947192569", "1883788812", "1916485259",
"1887177026", "2101348562", "2132375072", "2256863785", "5813002313",
"5813054716", "5813018847", "5813055448", "1763037543", "2101391269",
"1794037618", "5813018729", "2013333009")
# Get neurons
neurons = hemibrain_read_neurons(al.local.neurons)
# Plot the split to check it
nat::nopen3d()
nlscan_split(neurons, WithConnectors = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.