neuprint_find_neurons: Find bodies within a given ROI

View source: R/roi.R

neuprint_find_neuronsR Documentation

Find bodies within a given ROI

Description

Find bodies that input/output within certain ROIs (i.e. they must have synapses in these areas)

Usage

neuprint_find_neurons(
  input_ROIs,
  output_ROIs = NULL,
  dataset = NULL,
  conn = NULL,
  all_segments = FALSE,
  ...
)

neuprint_bodies_in_ROI(
  roi,
  dataset = NULL,
  all_segments = FALSE,
  conn = NULL,
  ...
)

Arguments

input_ROIs

a vector of input ROIs. Use neuprint_ROIs to see what is available.

output_ROIs

a vector of input ROIs. Use neuprint_ROIs to see what is available.

dataset

optional, a dataset you want to query. If NULL, the default specified by your R environ file is used or, failing that the current connection, is used. See neuprint_login for details.

conn

optional, a neuprintr connection object, which also specifies the neuPrint server. If NULL, the defaults set in your .Rprofile or .Renviron are used. See neuprint_login for details.

all_segments

if TRUE, all bodies are considered, if FALSE, only 'Neurons', i.e. bodies with a status roughly traced status.

...

methods passed to neuprint_login

roi

a single ROI. Use neuprint_ROIs to see what is available.

Value

a n x n matrix, where the rows are input neurons and the columns are their targets

See Also

neuprint_fetch_custom, neuprint_simple_connectivity, neuprint_common_connectivity

Examples


# Find some neurons with inputs in the Antennal Lobe (AL) and
# outputs in the LH
pncands=neuprint_find_neurons(input_ROIs = "AL(R)", output_ROIs = "LH(R)")
head(pncands)
plot(`LH(R).pre`~`AL(R).post`, data=pncands)


lhr=neuprint_bodies_in_ROI('LH(R)')
head(lhr)


natverse/neuprintr documentation built on Sept. 15, 2023, 6:59 a.m.