| KeggCompoundConn | R Documentation |
The connector class to KEGG Compound database.
The connector class to KEGG Compound database.
This is a concrete connector class. It must never be instantiated directly,
but instead be instantiated through the factory BiodbFactory.
Only specific methods are described here. See super classes for the
description of inherited methods.
biodb::BiodbConnBase -> biodb::BiodbConn -> biodbKegg::KeggConn -> KeggCompoundConn
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()biodbKegg::KeggConn$wsFind()biodbKegg::KeggConn$wsList()new()New instance initializer. Connector classes must not be instantiated directly. Instead, you must use the createConn() method of the factory class.
KeggCompoundConn$new(...)
...All parameters are passed to the super class initializer.
Nothing.
wsFindExactMass()Searches for entries by mass. You must either provide a single mass through 'mass' parameter or provide a range through 'mass.min' and 'mass.max'.
KeggCompoundConn$wsFindExactMass( mass = NULL, mass.min = NULL, mass.max = NULL, ... )
massSingle mass.
mass.minMinimal mass.
mass.maxMaximal mass.
...parameters passed to KeggConn::wsFind().
Seehttp //www.kegg.jp/kegg/docs/keggapi.html for details.
wsFind().
wsFindMolecularWeight()Searches for entries by molecular mass. You must either provide a single mass through 'mass' parameter or provide a range through 'mass.min' and 'mass.max'. See http //www.kegg.jp/kegg/docs/keggapi.html for details.
KeggCompoundConn$wsFindMolecularWeight( mass = NULL, mass.min = NULL, mass.max = NULL, ... )
massSingle mass.
mass.minMinimal mass.
mass.maxMaximal mass.
...Parameters passed to KeggConn::wsFind().
wsFind().
getPathwayIdsPerCompound()Gets organism pathways for each compound. This method retrieves for each compound the KEGG pathways of the organism in which the compound is involved.
KeggCompoundConn$getPathwayIdsPerCompound(id, org, limit = 3)
idA character vector of KEGG Compound IDs.
orgThe organism in which to search for pathways, as a KEGG organism code (3-4 letters code, like 'hsa', 'mmu', ...). See https //www.genome.jp/kegg/catalog/org_list.html for a complete list of KEGG organism codes.
limitThe maximum number of modules IDs to retrieve for each compound. Set to 0 to disable.
A named list of KEGG pathway ID vectors, where the names of the list are the compound IDs."
getModuleIdsPerCompound()Gets organism modules for each compound. This method retrieves for each compound the KEGG modules of the organism in which the compound is involved.
KeggCompoundConn$getModuleIdsPerCompound(id, org, limit = 3)
idA character vector of KEGG Compound IDs.
orgThe organism in which to search for modules, as a KEGG organism code (3-4 letters code, like 'hsa', 'mmu', ...). See https //www.genome.jp/kegg/catalog/org_list.html for a complete list of KEGG organism codes.
limitThe maximum number of modules IDs to retrieve for each compound. Set to 0 to disable.
A named list of KEGG module ID vectors, where the names of the list are the compound IDs."
getPathwayIds()Gets organism pathways. This method retrieves KEGG pathways of the specified organism in which the compounds are involved.
KeggCompoundConn$getPathwayIds(id, org)
idA character vector of KEGG Compound IDs.
orgThe organism in which to search for pathways, as a KEGG organism code (3-4 letters code, like 'hsa', 'mmu', ...). See https //www.genome.jp/kegg/catalog/org_list.html for a complete list of KEGG organism codes.
A vector of KEGG pathway IDs.
addInfo()Add informations (as new column appended to the end) to an existing data frame containing a column of KEGG Compound IDs.
KeggCompoundConn$addInfo(x, id.col, org, limit = 3, prefix = "")
xA data frame containing at least one column with Biodb entry IDs identified by the parameter 'id.col'.
id.colThe name of the column containing IDs inside the input data frame.
orgThe organism in which to search for pathways, as a KEGG organism code (3-4 letters code, like 'hsa', 'mmu', ...). See https //www.genome.jp/kegg/catalog/org_list.html for a complete list of KEGG organism codes.
limitThis is the maximum number of values obtained for each ID, for every column added, in case multiple values are obtained. Set to 0 to get all values.
prefixInsert a prefix at the start of name of all new columns.
A data frame containing 'x' and new columns appended with KEGG identifiers and data.
clone()The objects of this class are cloneable with this method.
KeggCompoundConn$clone(deep = FALSE)
deepWhether to make a deep clone.
KeggConn, KeggPathwayConn.
# Create an instance with default settings:
mybiodb <- biodb::newInst()
# Create a connector to KEGG Compound
conn <- mybiodb$getFactory()$createConn('kegg.compound')
# Search for compounds by exact mass
conn$wsFindExactMass(mass=174.05, retfmt='parsed')
# Search for compounds by molecular weight
conn$wsFindMolecularWeight(mass=300, retfmt='parsed')
# Get pathway IDs related to compounds
pathway.ids=conn$getPathwayIds(c('C02648', 'C06144'), org='mmu')
# Terminate instance.
mybiodb$terminate()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.