neuprint_skeleton_connectivity_matrix: Get a matrix for connectivity between neuron/neuronlist...

neuprint_skeleton_connectivity_matrixR Documentation

Get a matrix for connectivity between neuron/neuronlist objects

Description

Get an adjacency matrix for the synaptic connectivity between nat::neuron/nat::neuronlist objects. This function does not query a neuPrint server. It uses information on synaptic connectivity stored in a nat::neuron/nat::neuronlist object, as read from neuPrint by neuprint_read_neurons. This can be particularly useful if you have neurons that you have been pruned using nat:prune family functions, because you just want to know the connectivity associated with this modified skeleton, and not all connectivity associated with a bodyid on neuPrint.

Usage

neuprint_skeleton_connectivity_matrix(pre, post = NULL, ...)

Arguments

pre

a neuron/neuronlist object. Putative input neurons (rows of returned matrix). If post is NULL, then these are also the putative target neurons (columns of returned matrix)

post

a neuron/neuronlist object. Putative target neurons. Defaults to NULL

...

methods sent to nat::nlapply

Value

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

See Also

neuprint_connection_table, neuprint_read_neurons, neuprint_common_connectivity

Examples


neurons = neuprint_read_neurons(c(818983130,1143677310))
M = neuprint_skeleton_connectivity_matrix(neurons)
stats::heatmap(M)


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