compute_nightingale_ratios {ukbnmr}R Documentation

Compute 81 biomarker ratios on the Nightingale platform

Description

The Nightingale Health NMR metabolomics biomarker platform quantifies 249 biomarkers, including 81 biomarker ratios. Prior to the August 2021 update, UK Biobank only provided the 168 biomarkers that are not ratios for download. This function will compute the 81 missing ratios.

Usage

compute_nightingale_ratios(x)

Arguments

x

data.frame containing NMR metabolomics data from UK Biobank. May either be raw field data output by ukbconv or data with column names corresponding to biomarkers listed in nmr_info.

Details

If your UK Biobank project only has access to a subset of biomarkers, then this function will only return the subset of ratios that can be computed from the biomarker data provided.

All biomarkers in the input data are also returned alongside the ratios computed by this function.

Value

a data.frame with the additional computed biomarker ratios.

See Also

nmr_info for list of computed biomarker ratios, compute_nightingale_ratio_qc_flags() for obtaining an aggregate of the biomarker QC flags from the biomarkers underlying each computed ratio, and extract_biomarkers() for details on how raw data from ukbconv is processed.

Examples

ukb_data <- ukbnmr::test_data # Toy example dataset for testing package
nmr <- compute_nightingale_ratios(ukb_data)


[Package ukbnmr version 2.2 Index]