View source: R/flywire-arrow.R
flywire_partner_summary2 | R Documentation |
Rapid flywire connectivity summaries using cached connectome data
flywire_partner_summary2(
ids,
partners = c("outputs", "inputs"),
add_cell_types = TRUE,
by.roi = FALSE,
summarise = FALSE,
threshold = 0,
version = NULL
)
ids |
Root ids to query (passed to |
partners |
Whether to fetch input or output synapses or both. |
add_cell_types |
Whether to add cell type information to the result |
by.roi |
Whether to break the connectivity down into rows for each neuropil region containing synapses. |
summarise |
Whether to collapse down the results for multiple query neurons into a single entry for each partner neuron. |
threshold |
For |
version |
Optional CAVE version. The default value of |
Note that the threshold is applied to each row left after any
grouping operations. Therefore when by.roi=TRUE
only neuropil
regions exceeding this threshold will be returned.
CAVE specifies versions (effectively timestamps) for the connectome data. Every so often Sven makes a dump of the connectivity and synapse information for all proofread neurons. In order to use the data
A data.frame
## Not run:
flywire_partner_summary2('DA2_lPN', partners='out')
flywire_partner_summary2('DA2_lPN', partners='out', summarise=T)
flywire_partner_summary2('DA2_lPN', partners='out', summarise=T, by.roi=T)
flywire_partner_summary2('DA2_lPN', partners='out', summarise=T,
by.roi=T, add_cell_types=F) %>%
filter(!grepl("AL", neuropil)) %>%
group_by(post_pt_root_id) %>%
summarise(weight = sum(weight), top_np = neuropil[1]) %>%
arrange(desc(weight)) %>%
# nb version = TRUE will use ensure that ids match the default CAVE version
add_celltype_info(version=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.