Applies one pre-trained Elastic Net (EN) or Bayesian Ridge (BR) clock to a preprocessed ExpressionSet through the Python model (via reticulate).
Arguments
- eset
An ExpressionSet object containing processed expression data (one element of the list returned by
tAge_preprocessing).- model_path
Character string specifying the path to the pre-trained model file.
- species
Species of the samples:
"mouse","rat","human"or"monkey"(seetage_species). Its only effect is the rescaling of chronological-age clocks to age units by the species maximum lifespan; mortality and normalized-age clocks ignore it. It is not the species group the model was trained on ("Mouse" / "Rodents" / "Multispecies" inlist_clocks). DefaultNULLtakes the species recorded bytAge_preprocessing.- mode
Character string specifying the model type. Must be either "EN" for Elastic Net or "BR" for Bayesian Ridge.
- return_std
Logical. Whether to also return the per-sample predictive standard deviation, which only Bayesian Ridge models provide. Defaults to
TRUEformode = "BR". The standard deviations are whattage_compare_groupsweights samples by, so keep them if you intend to run statistics on BR predictions.- age_units
Units of chronological-age predictions:
"auto"(default; months for rodents, years for primates),"months"or"years".- normalized_age
Scale of normalized-age clocks:
"fraction"of the expected maximum lifespan (default) or"percent"(x100, as in the paper).