subset_metabolites_overlap {MiMIR} | R Documentation |
Helper function that subsets the NH-metabolomics matrix features to the selection in metabolites needed for the metabolic score
subset_metabolites_overlap(x, metabos, quiet = FALSE)
x |
numeric data-frame with Nightingale-metabolomics |
metabos |
vector of strings containing the names of the metabolic features to be selected |
quiet |
logical to suppress the messages in the console |
matrix with the selected Nightingale-metabolomics features
This function is constructed to be able to apply the metaboAge as described in: van den Akker Erik B. et al. (2020) Metabolic Age Based on the BBMRI-NL 1H-NMR Metabolomics Repository as Biomarker of Age-related Disease. Circulation: Genomic and Precision Medicine, 13, 541-547, doi:10.1161/CIRCGEN.119.002610
QCprep, apply.fit, subset_samples_miss, subset_samples_zero, subset_samples_sd, impute_miss, apply.scale, and report.dim
## Not run:
library(MiMIR)
#load the Nightignale metabolomics dataset
metabolic_measures <- read.csv("Nightingale_file_path",header = TRUE, row.names = 1)
#Select the metabolic features
mat <- subset_metabolites_overlap(x=metabolic_measures,metabos=PARAM_metaboAge$MET)
## End(Not run)