KeggPathwayConn | R Documentation |
The connector class to KEGG Pathway database.
The connector class to KEGG Pathway 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
-> KeggPathwayConn
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.
KeggPathwayConn$new(...)
...
All parameters are passed to the super class initializer.
Nothing.
getReactions()
Retrieves all reactions part of a KEGG pathway. Connects to KEGG databases, and walk through all pathways submitted, and their modules, to find all reactions they are composed of.
KeggPathwayConn$getReactions(id, drop = TRUE)
id
A character vector of entry IDs.
drop
If set to TRUE, returns a single KEGG reaction object instead of a list, if the list contains only one element.
A list of KEGG reaction objects.
convertToOrgPathways()
Takes a list of pathways IDs and converts them to the specified organism, filtering out the ones that do not exist in KEGG.
KeggPathwayConn$convertToOrgPathways(id, org)
id
A character vector of entry IDs.
org
The 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 character vector, the same length as 'id', containing the converted IDs.
buildPathwayGraph()
Builds a pathway graph in the form of two tables of vertices and edges, using KEGG database.
KeggPathwayConn$buildPathwayGraph(id, directed = FALSE, drop = TRUE)
id
A character vector of KEGG pathway entry IDs.
directed
If set to TRUE, use available direction information to create directed edges, duplicating if necessary the vertices.
drop
If set to TRUE and the output list contains only one element, then the returned value is a single list of two data frames.
A named list whose names are the pathway IDs, and values are lists containing two data frames named vertices and edges.
getPathwayIgraph()
Builds a pathway graph, as an igraph object, using KEGG database.
KeggPathwayConn$getPathwayIgraph(id, directed = FALSE, drop = TRUE)
id
A character vector of KEGG pathway entry IDs.
directed
If set to TRUE, use available direction information to create directed edges, duplicating if necessary the vertices.
drop
If set to TRUE and the output list contains only one element, then the returned value is a single igraph object.
A list of igraph objects, or an empty list if the igraph library is not available.
getDecoratedGraphPicture()
Create a pathway graph picture, with some of its elements colorized.
KeggPathwayConn$getDecoratedGraphPicture(id, color2ids)
id
A KEGG pathway ID.
color2ids
A named list defining colors for entry IDs that are present on the graph. The names of the list are standard color names. The values are character vector of entry IDs.
An image object or NULL if the package magick is not available.
extractPathwayMapShapes()
Extracts shapes from a pathway map image.
KeggPathwayConn$extractPathwayMapShapes(id, color2ids)
id
A KEGG pathway ID.
color2ids
A named list defining colors for entry IDs that are present on the graph. The names of the list are standard color names. The values are character vector of entry IDs.
A list of BiodbShape objects.
clone()
The objects of this class are cloneable with this method.
KeggPathwayConn$clone(deep = FALSE)
deep
Whether to make a deep clone.
KeggConn
.
# Create an instance with default settings: mybiodb <- biodb::newInst() # Get connector conn=mybiodb$getFactory()$createConn('kegg.pathway') # Retrieve all reactions related to a mouse pathway: reactions=conn$getReactions('mmu00260') # Get a pathway graph graph=conn$buildPathwayGraph('mmu00260') # Terminate instance. mybiodb$terminate()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.