Learn R Programming

nat.templatebrains (version 1.1)

add_reglist: Add reglist object describing a bridging/mirroring registration

Description

By specifying either reference, sample or mirror arguments, you can add a bridging or mirroring registration, respectively, to the list of those in use for xform_brain and mirror_brain.

Usage

add_reglist(
  x,
  reference = NULL,
  sample = NULL,
  mirror = NULL,
  temp = TRUE,
  ...
)

Value

This function is called for its side effect and has no return value.

Arguments

x

A single reglist object (which )

reference, sample

The reference and sample brains (in character or templatebrain form) for a bridging registration.

mirror

The reference brain (in character or templatebrain form) for a mirroring registration.

temp

Whether to store the on disk representation in a session-specific temporary folder (that will be removed when R closes). Defaults to TRUE.

...

Additional arguments passed to saveRDS e.g. to control compression when the reglist object is saved to disk.

See Also

add_reg_folders

Examples

Run this code
if (FALSE) {
library(nat.flybrains)
# mirroring registration for a specific template brain object
add_reglist(mirroring, mirror=JFRC2013)
# equivalent but withhout needing to construct the template
add_reglist(mirroring, mirror="JFRC2013")

# add a bridging registration between two brains
add_reglist(bridging, reference=JFRC2, sample=JFRC2013)

}

Run the code above in your browser using DataLab