Mercurial > repos > prog > lcmsmatching
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 0:e66bb061af06 | 1:253d531a0193 |
|---|---|
| 1 if ( ! exists('MassdbConn')) { | |
| 2 | |
| 3 source('BiodbConn.R') | |
| 4 | |
| 5 ##################### | |
| 6 # CLASS DECLARATION # | |
| 7 ##################### | |
| 8 | |
| 9 MassdbConn <- setRefClass("MassdbConn", contains = "BiodbConn") | |
| 10 | |
| 11 ############################### | |
| 12 # GET CHROMATOGRAPHIC COLUMNS # | |
| 13 ############################### | |
| 14 | |
| 15 # Get a list of chromatographic columns contained in this database. | |
| 16 # compound.ids A list of compound IDs used to filter results. | |
| 17 # The returned value is a data.frame with two columns : one for the ID (BIODB.ID) and another one for the title (BIODB.TITLE). | |
| 18 MassdbConn$methods( getChromCol = function(compound.ids = NULL) { | |
| 19 stop("Method getChromCol() is not implemented in concrete class.") | |
| 20 }) | |
| 21 | |
| 22 ################# | |
| 23 # GET MZ VALUES # | |
| 24 ################# | |
| 25 | |
| 26 # Returns a numeric vector of all masses stored inside the database. | |
| 27 MassdbConn$methods( getMzValues = function(mode = NULL, max.results = NA_integer_) { | |
| 28 stop("Method getMzValues() not implemented in concrete class.") | |
| 29 }) | |
| 30 | |
| 31 } |
