dat: numeric data-frame with Nightingale-metabolomics
featID: vector of strings with the names of metabolic features included in the COVID-score
quiet: logical to suppress the messages in the console
Returns
The Nightingale-metabolomics data-frame after pre-processing (checked for zeros, z-scaled and log-transformed) according to what has been done by the authors of the original papers.
Examples
require(MiMIR)require(matrixStats)#load the Nightignale metabolomics datasetmetabolic_measures <- synthetic_metabolic_dataset
#Prepare the metabolic features fo the mortality scoreprepped_met <- prep_data_COVID_score(dat=metabolic_measures)
References
This function is constructed to be able to follow the pre-processing steps described in: Nightingale Health UK Biobank Initiative et al. (2021) Metabolic biomarker profiling for identification of susceptibility to severe pneumonia and COVID-19 in the general population. eLife, 10, e63033, doi:10.7554/eLife.63033