R/catmaid_skeleton.R
catmaid_adjacency_matrix.Rd
Get connectivity adjacency matrix between set of neurons
catmaid_adjacency_matrix(
inputskids,
outputskids = inputskids,
pid = 1,
conn = NULL,
...
)
Input (source) and output (target) skids in any
form understandable to catmaid_skids
.
Project id (default 1)
A catmaid_connection
objection returned by
catmaid_login
. If NULL
(the default) a new connection
object will be generated using the values of the catmaid.* package
options as described in the help for catmaid_login
.
Additional arguments passed to the catmaid_fetch
function
A matrix, with inputs (sources) as rows and outputs (targets) as columns.
Other connectors:
catmaid_get_connector_table()
,
catmaid_get_connectors_between()
,
catmaid_get_connectors()
,
catmaid_query_connected()
,
connectors()
# \donttest{
conn=vfbcatmaid('fafb')
da1adj=catmaid_adjacency_matrix("name:DA1", conn=conn)
# note that we translate skids to neuron names (longer but more informative)
heatmap(
da1adj,
scale = 'none',
labCol = catmaid_get_neuronnames(colnames(da1adj)),
labRow = catmaid_get_neuronnames(rownames(da1adj)),
margins = c(12,12)
)
# }