fanc_partners
returns details of each unitary synaptic
connection (including its xyz location).
Arguments
- rootids
Character vector specifying one or more flywire rootids. As a convenience this argument is passed to
fanc_ids
allowing you to pass in data.frames, flywire URLs or simple ids.- partners
Whether to fetch input or output synapses or both.
- threshold
For
flywire_partner_summary
only return partners with greater than this number of connections to the query neuron(s) (default of 0 returns all connections)- remove_autapses
For
flywire_partner_summary
whether to remove autapses (defaults to TRUE)- cleft.threshold
A threshold for the cleft score calculated by Buhmann et al 2019 (default 0, we have used 30-100 to increase specificity)
- datastack_name
An optional CAVE
datastack_name
. If unset a sensible default is chosen.- ...
Additional arguments passed to
pbsapply
See also
flywire_partner_summary
, fanc_latestid
Examples
# NB id must be up to date
sample_id=fanc_latestid("648518346481082458")
head(fanc_partner_summary(sample_id))
#> # A tibble: 6 × 3
#> query post_id weight
#> <chr> <chr> <int>
#> 1 648518346486614449 648518346490269367 136
#> 2 648518346486614449 648518346493875704 103
#> 3 648518346486614449 648518346501611089 85
#> 4 648518346486614449 648518346488813390 72
#> 5 648518346486614449 648518346471756187 70
#> 6 648518346486614449 648518346521763321 70
head(fanc_partner_summary(sample_id, partners='inputs'))
#> # A tibble: 6 × 3
#> query pre_id weight
#> <chr> <chr> <int>
#> 1 648518346486614449 648518346494014715 108
#> 2 648518346486614449 648518346489556055 42
#> 3 648518346486614449 648518346477266376 40
#> 4 648518346486614449 648518346490339932 23
#> 5 648518346486614449 648518346491851887 21
#> 6 648518346486614449 648518346486859725 20
if (FALSE) { # \dontrun{
# get the latest id for an outdate
fanc_partner_summary(fanc_latestid("648518346473954669"))
## open fanc/flywire scene containing top partners
library(dplyr)
fanc_partner_summary(fanc_latestid("648518346494405175"), partners='inputs') %>%
slice_max(weight, n = 20) %>%
fanc_scene(open=TRUE)
} # }
if (FALSE) { # \dontrun{
# plot input and output synapses of a neuron
nclear3d()
fpi=fanc_partners(fanc_latestid("648518346481082458"), partners='in')
points3d(fanc_raw2nm(fpi$post_pt_position), col='cyan')
fpo=fanc_partners(fanc_latestid("648518346481082458"), partners='out')
points3d(fanc_raw2nm(fpo$pre_pt_position), col='red')
} # }