Gets a prepped BioTime dataset (as a list of abundance, covariates, and metadata) for a specified dataset_id. First run prepare_biotime_data to create these files from the raw BioTime database. If the files are not found, then NULL is returned. Original data found here http://biotime.st-andrews.ac.uk/home.php

get_biotime_data(
  path = get_default_data_path(),
  dataset_id = 321,
  raw_path = file.path(path, "biotime-prepped", paste0("dataset", dataset_id, ".RDS"))
)

Arguments

path

where to load the raw data files from

dataset_id

the dataset index

raw_path

full path to the raw dataset file

Value

list of abundance, covariates, and metadata

Examples

if (FALSE) { get_biotime_data(dataset_id = 321) }