biospecdb.apps.uploader.io

Functions

read_meta_data(file[, index_column])

Read in bulk upload meta data file of all Observations and parsable model fields.

read_single_row_spectral_data_table(file[, ...])

Read in single row spectral data.

read_spectral_data(file)

General purpose reader to handle multiple file formats returning SpectralData instance.

read_spectral_data_table(file[, index_column])

Read in multiple rows of data returning a pandas.DataFrame.

spectral_data_from_json(file)

Read spectral data of the form {"patient_id": value, "wavelength": [values], "intensity": [values]} and return data SpectralData instance.

spectral_data_to_json(file, data[, ...])

Convert data to json equivalent to {"patient_id": value, "wavelength": [values], "intensity": [values]} Returns json str and/or writes to file.

Classes

FileFormats(value[, names, module, ...])

SpectralData(patient_id, wavelength, intensity)

Exceptions

DataSchemaError