databaseClass-class: Class for Managing Spectral Database Information

databaseClass-classR Documentation

Class for Managing Spectral Database Information

Description

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
db_instance@spectra.info
db_instance@spectra.data


tidymass/metid documentation built on Oct. 8, 2024, 10:32 p.m.