#' Dimensions for AIBS CCF data at different resolutions
#'
#' Data at 1um: CCF Meshes
#' Data at 25um: Annotation grids and most gridded TissueCyte datasets
#' Data at 200um: Gridded ISH datasets and related annotations
#'
#' @param res The resolution of the dataset. Can be "1um","25um", or "200um". Default is "25um".
#'
#' @export
#'
#' @return a 3-element integer vector with the x,y,z dimensions.
#'
#' x is anterior<->posterior
#' y is ventral<->dorsal
#' z is left<->right
#'
aibs_dims <- function(res = "25um") {
if(res == "1um") {
c(13200, 8000, 11400)
} else if(res == "25um") {
c(528, 320, 456)
} else if(res == "200um") {
c(67, 41, 58)
}
}
#' Organism ID used by the AIBS API
#'
#' @param species character, which species to use. Currently available: "human" and "mouse".
#'
#' @export
#'
#' @return a numeric value used by the AIBS API to represent the selected organism.
aibs_organism_id <- function(species) {
if(species %in% c("human","Homo sapiens","homo sapiens","hs","Hs")) {
1
} else if(species %in% c("mouse","Mus musculus","mus musculus","mm","Mm")) {
2
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.