MassCsvFileConn: Mass CSV File connector class.

MassCsvFileConnR Documentation

Mass CSV File connector class.

Description

Mass CSV File connector class.

Mass CSV File connector class.

Details

This is the connector class for a MASS CSV file database.

Super classes

biodb::BiodbConnBase -> biodb::BiodbConn -> biodb::CsvFileConn -> MassCsvFileConn

Methods

Public methods

Inherited methods

Method new()

New instance initializer. Connector classes must not be instantiated directly. Instead, you must use the createConn() method of the factory class.

Usage
MassCsvFileConn$new(...)
Arguments
...

All parameters are passed to the super class initializer.

Returns

Nothing.


Method getPrecursorFormulae()

Gets the list of formulae used to recognize precursors.

Usage
MassCsvFileConn$getPrecursorFormulae()
Returns

A character vector containing chemical formulae.


Method isAPrecursorFormula()

Tests if a formula is a precursor formula.

Usage
MassCsvFileConn$isAPrecursorFormula(formula)
Arguments
formula

A chemical formula, as a character value.

Returns

TRUE if the submitted formula is considered a precursor.


Method setPrecursorFormulae()

Sets the list precursor formulae.

Usage
MassCsvFileConn$setPrecursorFormulae(formulae)
Arguments
formulae

A character vector containing formulae.

Returns

Nothing.


Method addPrecursorFormulae()

Adds new formulae to the list of formulae used to recognize precursors.

Usage
MassCsvFileConn$addPrecursorFormulae(formulae)
Arguments
formulae

A character vector containing formulae.

Returns

Nothing.


Method clone()

The objects of this class are cloneable with this method.

Usage
MassCsvFileConn$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

Super class CsvFileConn.

Examples

# Create an instance with default settings:
mybiodb <- biodb::newInst()

# Get path to LCMS database example file
lcmsdb <- system.file("extdata",
                      "massbank_extract_lcms_2.tsv", package="biodb")

# Create a connector
conn <- mybiodb$getFactory()$createConn('mass.csv.file', url=lcmsdb)

# Get an entry
e <- conn$getEntry('PR010001')

# Terminate instance.
mybiodb$terminate()


pkrog/biodb documentation built on Nov. 29, 2022, 4:24 a.m.