View source: R/catmaid_skeleton.R
| catmaid_adjacency_matrix | R Documentation |
Get connectivity adjacency matrix between set of neurons
catmaid_adjacency_matrix( inputskids, outputskids = inputskids, pid = 1, conn = NULL, ... )
inputskids, outputskids |
Input (source) and output (target) skids in any
form understandable to |
pid |
Project id (default 1) |
conn |
A |
... |
Additional arguments passed to the |
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()
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)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.