report.dim {MiMIR} | R Documentation |
Helper function to report on the console the dimension of the NH metabolomics matrix
report.dim(x, header, trailing = "0")
x |
numeric data-frame with Nightingale-metabolomics |
header |
string describing the sub-sampling of the NH-metabolomics matrix |
trailing |
number of digits to show |
The report of the NH-metabolomics matrix dimension
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_metabolites_overlap, subset_samples_miss, subset_samples_zero, subset_samples_sd, impute_miss, and apply.scale
## Not run:
library(MiMIR)
#load the Nightignale metabolomics dataset
metabolic_measures <- read.csv("Nightingale_file_path",header = TRUE, row.names = 1)
#Apply the scaling to the metabolic features
cat(report.dim(x, header=paste0("Pruning samples on 5SD")))
## End(Not run)