Skip to content

Commit

Permalink
Add JRC2018M template
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferis committed Aug 9, 2022
1 parent bf5ddbc commit 40e5efc
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 0 deletions.
8 changes: 8 additions & 0 deletions R/JRC2018.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
"JRC2018U"


#' @description The \code{JRC2018M} reference brain was constructed as for
#' \code{JRC2018F} brain but with 26 male brains.
#' @rdname JRC2018
#' @name JRC2018M
#' @docType data
"JRC2018M"


#' @description \code{JRC2018F.surf}, \code{JRC2018U.surf} were generated in
#' Amira from a 2 micron downsampled, Lanczos filtered 8 bit version of the
#' respective template brain. A surface was then generated with a threshold
Expand Down
18 changes: 18 additions & 0 deletions R/JRC2018M.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
library(nat)
# JRC2018F.surf=read.hxsurf('data-raw/JRC2018_FEMALE_38um_iso_16bit3.smooth.surf')
# library(devtools)
# use_data(JRC2018F.surf, overwrite = T)

library(nat.templatebrains)
JRC2018M <-
as.templatebrain('data-raw/JRC2018_MALE_38um_iso_16bit.nrrd',
regName = 'JRC2018M',
type = 'Average template brain',
sex = 'M',
doi = 'https://doi.org/10.1101/376384',
description="Average template brain constructed from brains labelled with brp-SNAP presynaptic marker,
dehydrated, and mounted in DPX and then imaged by confocal microscope.
There were 26 male individuals (52 image with left-right flips)"
)

usethis::use_data(JRC2018M, overwrite = T)
12 changes: 12 additions & 0 deletions data-raw/JRC2018_MALE_38um_iso_16bit.nrrd
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
NRRD0004
# Created by Nrrd_Writer at Thu Jul 12 12:15:03 EDT 2018
type: uint16
encoding: gzip
endian: big
dimension: 3
sizes: 1561 744 546
space dimension: 3
space directions: (0.38,0,0) (0,0.38,0) (0,0,0.38)
space units: "microns" "microns" "microns"

�
Binary file added data/JRC2018M.rda
Binary file not shown.
8 changes: 8 additions & 0 deletions man/JRC2018.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 40e5efc

Please sign in to comment.