funpack.plugins.fmrib

This module contains custom loaders for data files used in FMRIB, which contain data on imaged subjects.

funpack.plugins.fmrib.columns_FMRIBImaging(infile)[source]

Return a list of columns describing the contents of the FMRIB_internal_info.txt file.

funpack.plugins.fmrib.load_FMRIBImaging(infile)[source]

Load a file with the same format as the FMRIB_internal_info.txt file.

funpack.plugins.fmrib.normalisedAcquisitionTime(dtable: DataTable, vid: int)[source]

Converts timestamps into a numeric fractional year representation.

Converts a date or date+time into a single value x, where floor(x) is the calendar year and the fraction day/time within the year except ‘a day’ is redefined as the time between 7am and 8pm (UK BioBank scanning only takes place within these hours).

funpack.plugins.fmrib.normalisedDate(dtable: DataTable, vid: int)[source]

Converts date values into a numeric fractional year representation.

Converts a date into a single value x, where floor(x) is the calendar year and the x mod 1 is the fractional day within the year. The conversion takes leap years into account.