Mercurial > repos > prog > lcmsmatching
diff MassdbConn.R @ 1:253d531a0193 draft
planemo upload for repository https://github.com/workflow4metabolomics/lcmsmatching.git commit 36c9d8099c20a1ae848f1337c16564335dd8fb2b
author | prog |
---|---|
date | Sat, 03 Sep 2016 17:02:01 -0400 |
parents | |
children | 20d69a062da3 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MassdbConn.R Sat Sep 03 17:02:01 2016 -0400 @@ -0,0 +1,31 @@ +if ( ! exists('MassdbConn')) { + + source('BiodbConn.R') + + ##################### + # CLASS DECLARATION # + ##################### + + MassdbConn <- setRefClass("MassdbConn", contains = "BiodbConn") + + ############################### + # GET CHROMATOGRAPHIC COLUMNS # + ############################### + + # Get a list of chromatographic columns contained in this database. + # compound.ids A list of compound IDs used to filter results. + # The returned value is a data.frame with two columns : one for the ID (BIODB.ID) and another one for the title (BIODB.TITLE). + MassdbConn$methods( getChromCol = function(compound.ids = NULL) { + stop("Method getChromCol() is not implemented in concrete class.") + }) + + ################# + # GET MZ VALUES # + ################# + + # Returns a numeric vector of all masses stored inside the database. + MassdbConn$methods( getMzValues = function(mode = NULL, max.results = NA_integer_) { + stop("Method getMzValues() not implemented in concrete class.") + }) + +}