Calculates the cable length supplied by neurons 'x' to different brain regions defined in 'brain'.

inside_neuropils(x, brain = nat.flybrains::FCWBNP.surf,
  method = c("Cable", "PRE", "POST"), min.endpoints = 1, alpha = 30,
  ...)

# S3 method for neuron
inside_neuropils(x, brain = nat.flybrains::FCWBNP.surf,
  method = c("Cable", "PRE", "POST"), min.endpoints = 1, alpha = 30,
  ...)

# S3 method for neuronlist
inside_neuropils(x,
  brain = nat.flybrains::FCWBNP.surf, method = c("Cable", "PRE",
  "POST"), min.endpoints = 1, alpha = 30, ...)

points_in_neuropil(x, brain, alpha = 30, ...)

in_neuropil(x, method = c("Cable", "PRE", "POST"),
  brain = nat.flybrains::FCWBNP.surf, neuropil = "LH_R",
  min.endpoints = 1, alpha = alpha, ...)

# S3 method for neuron
in_neuropil(x, method = c("Cable", "PRE", "POST"),
  brain = nat.flybrains::FCWBNP.surf, neuropil = "LH_R",
  min.endpoints = 1, alpha = alpha, ...)

# S3 method for neuronlist
in_neuropil(x, method = c("Cable", "PRE", "POST"),
  brain = nat.flybrains::FCWBNP.surf, neuropil = "LH_R",
  min.endpoints = 1, alpha = alpha, ...)

Arguments

x

a set of neurons or, for points_in_neuropil a mxn matrix of 3D points

brain

the .surf brainspace in which the neurons are registered, must be segmented into neuropils

method

whether to calculate cable inside a given neuropil volume, or synapse number (PRE or POST)

min.endpoints

the minimum number of endpoints a neuron must have in a neuropil to be counted as included in it

alpha

the alpha given to the ashape3d() function to generate neuropil objects by which to calculate point inclusion

...

additional arguments passed to methods

neuropil

the code for the neuropil volume to be searched. See nat.flybrains::JFRC2NP.surf$RegionList for codes

Value

a matrix of 3D points