choose_fanc: Choose or (temporarily) use the FANC autosegmentation

View source: R/urls.R

choose_fancR Documentation

Choose or (temporarily) use the FANC autosegmentation

Description

Choose or (temporarily) use the FANC autosegmentation

Usage

choose_fanc(set = TRUE)

with_fanc(expr)

Arguments

set

Whether or not to permanently set the FANC autosegmentation as the default for fafbseg functions.

expr

An expression to evaluate while FANC is the default autosegmentation

Details

fancr inherits a significant amount of infrastructure from the fafbseg package. This has the concept of the active autosegmentation, which in turn defines one or more R options containing URIs pointing to voxel-wise segmentation, mesh etc data. These are normally contained within a single neuroglancer URL which points to multiple data layers. For FANC this is the neuroglancer scene returned by fanc_scene.

Value

If set=TRUE a list containing the previous values of the relevant global options (in the style of options. If set=FALSE a named list containing the option values.

Examples

## Not run: 
choose_fanc()
options()[grep("^fafbseg.*url", names(options()))]

## End(Not run)

with_fanc(fafbseg::flywire_islatest('648518346498254576'))

## Not run: 
with_fanc(fafbseg::flywire_latestid('648518346498254576'))
with_fanc(fafbseg::flywire_latestid('648518346494405175'))

## End(Not run)

flyconnectome/fancr documentation built on Feb. 8, 2024, 6:55 a.m.