read_nightingale

read_nightingale(path, *, index_col=0, sheet=None)

Read a Nightingale Health NMR export (CSV, TSV or Excel) for MetaboAge and MetaboHealth.

Column names are translated to the BBMRI-NL names the scores were fitted with, by MiMIR’s table (metabo_names_translator, GPL-3), the way MiMIR’s find_BBMRI_names does it: lower-cased, and translated only when exactly one entry lists the name, so UnSat in a 2016 export becomes unsatdeg. A name the table does not know is kept as it is and listed in obs.attrs["untranslated"] rather than guessed. Non-numeric columns and age/sex go to obs.