The `databaseClass` S4 class is designed to store and manage information related to spectral databases. It contains slots for database metadata, spectra information, and the actual spectral data.

Details

This class is used to manage and organize spectral data within a larger analytical pipeline. The `database.info` slot stores high-level metadata, while `spectra.info` and `spectra.data` contain details and the actual spectral information, respectively.

Slots

database.info

A list containing metadata or general information about the database.

spectra.info

A data frame that holds information about each spectrum, such as identifiers or attributes. The data frame is initialized empty.

spectra.data

A list where each element corresponds to a spectrum's data.

Examples

# Creating an instance of the databaseClass
db_instance <- new("databaseClass")

# Accessing slots
db_instance@database.info
#> list()
db_instance@spectra.info
#> data frame with 0 columns and 0 rows
db_instance@spectra.data
#> list()