R/lm_pipeline.R
lsm_to_banc_layer.RdTop-level orchestrator for the Deng pipeline. Chains
Stage 0 (LSM extract) + Stage A' (Elastix native -> JRC2018U) +
Stage B” (H5 JRC2018U -> JRC2018F) + the existing Stage C
(transformix JRC2018F -> BANC) + Stage D (nrrd_to_precomputed),
producing a Neuroglancer precomputed image layer named
<gene>_<sample>.ng/ on the BANC grid.
lsm_to_banc_layer(
input,
gene,
sample,
channel = "GFP",
dataset = "deng_et_al_2019",
output_dir,
source_path = NULL,
chunk_size = c(64L, 64L, 64L),
keep_intermediates = FALSE,
threads = 8L,
verbose = TRUE
)source .lsm path.
short gene name; forms layer name <gene>_<sample>.
sample identifier (e.g. BRAIN-F, VNC-M,
or any user-chosen short tag).
the upstream channel string recorded in the registry
(default "GFP").
master folder under light_level/ (default
"deng_et_al_2019").
parent directory for intermediates + final precomputed layer.
optional original storage path for provenance.
length-3 integer chunk size for the precomputed layer.
logical; keep the per-stage intermediate
NRRDs (default FALSE).
passed to Elastix + RenderTransformed.
list with precomputed_dir, registry_entry
(one-row tibble), timings (named numeric, s).
Elastix 5.x elastix + transformix on PATH
Java 17+ + the saalfeldlab RenderTransformed JAR
Python (via reticulate) with tifffile + SimpleITK
nat.jrcbrains H5 registrations downloaded
(nat.jrcbrains::download_saalfeldlab_registrations())
JRC2018U template NRRD at
~/templates/JRC2018_UNISEX_20x_HR.nrrd
(download from janelia-flylight-templates S3).