KeggConn | R Documentation |
The connector abstract class to KEGG databases.
The connector abstract class to KEGG databases.
This is the mother class of all KEGG connectors. It defines code common to all KEGG connectors.
The constructor accepts the following arguments:
db.name: The database name as defined in http://www.kegg.jp/kegg/docs/keggapi.html.
db.abbrev: The database abbreviated name, as defined in http://www.kegg.jp/kegg/docs/keggapi.html.
biodb::BiodbConnBase
-> biodb::BiodbConn
-> KeggConn
biodb::BiodbConnBase$getBaseUrl()
biodb::BiodbConnBase$getConnClass()
biodb::BiodbConnBase$getConnClassName()
biodb::BiodbConnBase$getDbClass()
biodb::BiodbConnBase$getEntryClass()
biodb::BiodbConnBase$getEntryClassName()
biodb::BiodbConnBase$getEntryContentType()
biodb::BiodbConnBase$getEntryFileExt()
biodb::BiodbConnBase$getEntryIdField()
biodb::BiodbConnBase$getName()
biodb::BiodbConnBase$getPropSlots()
biodb::BiodbConnBase$getPropValSlot()
biodb::BiodbConnBase$getPropertyValue()
biodb::BiodbConnBase$getSchedulerNParam()
biodb::BiodbConnBase$getSchedulerTParam()
biodb::BiodbConnBase$getToken()
biodb::BiodbConnBase$getUrl()
biodb::BiodbConnBase$getUrls()
biodb::BiodbConnBase$getWsUrl()
biodb::BiodbConnBase$getXmlNs()
biodb::BiodbConnBase$hasProp()
biodb::BiodbConnBase$hasPropSlot()
biodb::BiodbConnBase$isSlotProp()
biodb::BiodbConnBase$propExists()
biodb::BiodbConnBase$setBaseUrl()
biodb::BiodbConnBase$setPropValSlot()
biodb::BiodbConnBase$setPropertyValue()
biodb::BiodbConnBase$setSchedulerNParam()
biodb::BiodbConnBase$setSchedulerTParam()
biodb::BiodbConnBase$setToken()
biodb::BiodbConnBase$setUrl()
biodb::BiodbConnBase$setWsUrl()
biodb::BiodbConnBase$updatePropertiesDefinition()
biodb::BiodbConn$addNewEntry()
biodb::BiodbConn$allowEditing()
biodb::BiodbConn$allowWriting()
biodb::BiodbConn$annotateMzValues()
biodb::BiodbConn$checkDb()
biodb::BiodbConn$collapseResultsDataFrame()
biodb::BiodbConn$correctIds()
biodb::BiodbConn$deleteAllCacheEntries()
biodb::BiodbConn$deleteAllEntriesFromPersistentCache()
biodb::BiodbConn$deleteAllEntriesFromVolatileCache()
biodb::BiodbConn$deleteWholePersistentCache()
biodb::BiodbConn$disallowEditing()
biodb::BiodbConn$disallowWriting()
biodb::BiodbConn$download()
biodb::BiodbConn$editingIsAllowed()
biodb::BiodbConn$filterEntriesOnRt()
biodb::BiodbConn$getAllCacheEntries()
biodb::BiodbConn$getAllVolatileCacheEntries()
biodb::BiodbConn$getBiodb()
biodb::BiodbConn$getCacheFile()
biodb::BiodbConn$getCacheId()
biodb::BiodbConn$getChromCol()
biodb::BiodbConn$getDownloadPath()
biodb::BiodbConn$getEntry()
biodb::BiodbConn$getEntryContent()
biodb::BiodbConn$getEntryContentFromDb()
biodb::BiodbConn$getEntryContentRequest()
biodb::BiodbConn$getEntryIds()
biodb::BiodbConn$getEntryImageUrl()
biodb::BiodbConn$getEntryPageUrl()
biodb::BiodbConn$getId()
biodb::BiodbConn$getMatchingMzField()
biodb::BiodbConn$getMzValues()
biodb::BiodbConn$getNbEntries()
biodb::BiodbConn$getNbPeaks()
biodb::BiodbConn$getSearchableFields()
biodb::BiodbConn$isCompounddb()
biodb::BiodbConn$isDownloadable()
biodb::BiodbConn$isDownloaded()
biodb::BiodbConn$isEditable()
biodb::BiodbConn$isExtracted()
biodb::BiodbConn$isMassdb()
biodb::BiodbConn$isRemotedb()
biodb::BiodbConn$isSearchableByField()
biodb::BiodbConn$isWritable()
biodb::BiodbConn$makeRequest()
biodb::BiodbConn$makesRefToEntry()
biodb::BiodbConn$msmsSearch()
biodb::BiodbConn$print()
biodb::BiodbConn$requiresDownload()
biodb::BiodbConn$searchByName()
biodb::BiodbConn$searchCompound()
biodb::BiodbConn$searchForEntries()
biodb::BiodbConn$searchForMassSpectra()
biodb::BiodbConn$searchMsEntries()
biodb::BiodbConn$searchMsPeaks()
biodb::BiodbConn$searchMzRange()
biodb::BiodbConn$searchMzTol()
biodb::BiodbConn$setDownloadedFile()
biodb::BiodbConn$setEditingAllowed()
biodb::BiodbConn$setMatchingMzField()
biodb::BiodbConn$setWritingAllowed()
biodb::BiodbConn$write()
biodb::BiodbConn$writingIsAllowed()
new()
New instance initializer. Connector classes must not be instantiated directly. Instead, you must use the createConn() method of the factory class. The parameters of this function are for the use of subclasses.
KeggConn$new( db.name = NA_character_, db.abbrev = NA_character_, accession.prefix = NA_character_, ... )
db.name
The database name as defined in www.kegg.jp/kegg/docs/keggapi.html.
db.abbrev
The database abbreviation as defined in www.kegg.jp/kegg/docs/keggapi.html.
accession.prefix
The prefix used for accession identifiers.
...
All parameters are passed to the super class initializer.
Nothing.
wsList()
Gets the full list of entry IDs. See
KeggConn$wsList(retfmt = c("plain", "request", "ids"))
retfmt
Use to set the format of the returned value. 'plain' will return the raw result from the server, as a character value. 'request' will return the request as it would have been sent, as a BiodbRequest object. 'ids' will return a character vector containing entry IDs.
http
//www.kegg.jp/kegg/docs/keggapi.html for details.
Depending on 'retfmt'.
wsFind()
Searches for entries. See http://www.kegg.jp/kegg/docs/keggapi.html for details.
KeggConn$wsFind( query, option = c("NONE", "formula", "exact_mass", "mol_weight", "nop"), retfmt = c("plain", "request", "parsed", "ids", "ids.no.prefix") )
query
The query to send to the database web service. When searching by mass (i.e. 'option' parameter set to either 'exact_mass' or 'mol_weight'), this query field must be set to either an exact (i.e. 174.05) or a range (i.e. '250-260').
option
Set this parameter to 'NONE' for querying on fields 'ENTRY', 'NAME', 'DESCRIPTION', 'COMPOSITION', 'DEFINITION' and 'ORTHOLOGY'. See http //www.kegg.jp/kegg/docs/keggapi.html for an exact list of fields that are searched for each database, and also for other possible values of this 'option' paramater.
retfmt
Use to set the format of the returned value. 'plain' will return the raw result from the server, as a character value. 'request' will return the request as it would have been sent, as a BiodbRequest object. 'parsed' will return a data frame. 'ids' will return a character vector containing the IDs of the matching entries.
Depending on 'retfmt'.
clone()
The objects of this class are cloneable with this method.
KeggConn$clone(deep = FALSE)
deep
Whether to make a deep clone.
# Create an instance with default settings: mybiodb <- biodb::newInst() # Create a connector to a KEGG database conn <- mybiodb$getFactory()$createConn('kegg.compound') # Search for an entry conn$wsFind('NADPH', retfmt='parsed') # Terminate instance. mybiodb$terminate()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.