allen_gene_template_download: Download ABI gene templates

View source: R/template_download.R

allen_gene_template_downloadR Documentation

Download ABI gene templates

Description

Downloads and reads the ABI gene template with an option to write to a mincfile

Usage

allen_gene_template_download(
  age_dataset = c("adult", "P56", "P28", "P14", "P4", "E18.5", "E16.5", "E15.5",
    "E13.5", "E11.5"),
  outfile = NULL,
  labels = F,
  grid_annot = F,
  binarize = F
)

Arguments

age_dataset

Choose the age of the template to download. Options are 'adult','P56','P28','P14','P4','E18.5','E16.5','E15.5','E13.5','E11.5'. Note 'adult' and 'P56' are aliases.

outfile

Optional outfile to write

labels

If true, then the labels are downloaded. Default is FALSE, so the template is downloaded. Warning: labels may have integers that can't be written to a MINC file.

grid_annot

If true, then the grid annotations are downloaded. They are much lower resolution compared to template. Default is FALSE, so the template is downloaded. Warning: grid annotations may have integers that can't be written to a MINC file.

binarize

If true, then values are binarized with threshold of 0.5

Value

template data as a 1D vector of class mincSingleDim


DJFernandes/ABIgeneRMINC documentation built on March 21, 2022, 12:05 p.m.