View source: R/flywire-arrow.R
flywire_connectome_data | R Documentation |
flywire_connectome_data
returns a dplyr
compatible connection to connectivity dumps on disk.
flywire_connectome_data_version
sets the integer version
number of the preferred flywire connectome data dump or returns the
currently version.
flywire_connectome_data(
type = c("syn", "pre", "post"),
version = NULL,
cached = TRUE,
...
)
flywire_connectome_data_version(set = NULL, default = NA)
type |
Character vector specifying the kind of data |
version |
Optional CAVE version. The default value of |
cached |
When version is |
... |
Additional arguments passed to |
set |
When |
default |
A version to return when no other information is available.
Defaults to |
This depends on precomputed data dumps prepared periodically by Sven
Dorkenwald. You can download the public release version using the function
download_flywire_release_data
.
You can download other versions from Sven's Google drive folder. See this FlyWire Slack message for more details and the URL.
Two pieces of information are used to determine the version when it
is queried. First the value of
options(fafbseg.flywire_connectome_data_version)
, second the latest
available version of the connectivity dumps provided by
flywire_connectome_data()
.
An arrow object that you can use with dplyr
verbs like
filter
in order to find neurons/connectivity data of interest.
An integer version number or a list with the previous value of
options(fafbseg.flywire_connectome_data_version)
when
set=<number>
.
download_flywire_release_data
# latest available version/
syn=try(flywire_connectome_data('syn'), silent=TRUE)
syn450=try(flywire_connectome_data('syn', version=450), silent=TRUE)
if(!inherits(syn450, 'try-error')) {
syn450
syn450$metadata
dl4ds <- syn450 %>%
filter(pre_pt_root_id==flywire_ids("DL4_adPN_L", version=450, integer64 = TRUE)) %>%
collect()
}
## Not run:
# report active connectome dump version (defaults to most recent available)
flywire_connectome_data_version()
# use the June 2023 public release version as the default
flywire_connectome_data_version(set=630)
# confirm this is the default
flywire_connectome_data_version()
# check the latest version on disk
flywire_connectome_data_version(set=FALSE)
# stop defaulting to specific version (therefore using the latest on disk)
flywire_connectome_data_version(set=NA)
flywire_connectome_data_version()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.