MassCsvFileConn {biodb} | R Documentation |
Mass CSV File connector class.
Mass CSV File connector class.
This is the connector class for a MASS CSV file database.
biodb::BiodbConnBase
-> biodb::BiodbConn
-> biodb::CsvFileConn
-> MassCsvFileConn
new()
New instance initializer. Connector classes must not be instantiated directly. Instead, you must use the createConn() method of the factory class.
MassCsvFileConn$new(...)
...
All parameters are passed to the super class initializer.
Nothing.
getPrecursorFormulae()
Gets the list of formulae used to recognize precursors.
MassCsvFileConn$getPrecursorFormulae()
A character vector containing chemical formulae.
isAPrecursorFormula()
Tests if a formula is a precursor formula.
MassCsvFileConn$isAPrecursorFormula(formula)
formula
A chemical formula, as a character value.
TRUE if the submitted formula is considered a precursor.
setPrecursorFormulae()
Sets the list precursor formulae.
MassCsvFileConn$setPrecursorFormulae(formulae)
formulae
A character vector containing formulae.
Nothing.
addPrecursorFormulae()
Adds new formulae to the list of formulae used to recognize precursors.
MassCsvFileConn$addPrecursorFormulae(formulae)
formulae
A character vector containing formulae.
Nothing.
clone()
The objects of this class are cloneable with this method.
MassCsvFileConn$clone(deep = FALSE)
deep
Whether to make a deep clone.
Super class CsvFileConn
.
# 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()