KeggGenesConn: The connector class to KEGG Pathway database.

KeggGenesConnR Documentation

The connector class to KEGG Pathway database.

Description

The connector class to KEGG Pathway database.

The connector class to KEGG Pathway database.

Details

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.

Super classes

biodb::BiodbConnBase -> biodb::BiodbConn -> biodbKegg::KeggConn -> KeggGenesConn

Methods

Public methods

Inherited methods

Method new()

New instance initializer. Connector classes must not be instantiated directly. Instead, you must use the createConn() method of the factory class.

Usage
KeggGenesConn$new(...)
Arguments
...

All parameters are passed to the super class initializer.

Returns

Nothing.


Method getPathwayIdsPerGene()

Gets organism pathways for each gene. This method retrieves for each gene the KEGG pathways of the organism in which the gene is involved.

Usage
KeggGenesConn$getPathwayIdsPerGene(id, org, limit = 3)
Arguments
id

A character vector of KEGG Gene 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.

limit

The maximum number of modules IDs to retrieve for each gene. Set to 0 to disable.

Returns

A named list of KEGG pathway ID vectors, where the names of the list are the gene IDs."


Method getPathwayIds()

Gets organism pathways. This method retrieves KEGG pathways of the specified organism in which the genes are involved.

Usage
KeggGenesConn$getPathwayIds(id, org)
Arguments
id

A character vector of KEGG Genes 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.

Returns

A vector of KEGG pathway IDs.


Method clone()

The objects of this class are cloneable with this method.

Usage
KeggGenesConn$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

KeggConn.

Examples

# Create an instance with default settings:
mybiodb <- biodb::newInst()

# Create a connector
conn <- mybiodb$getFactory()$createConn('kegg.genes')

# Get an entry
e <- conn$getEntry('mmu:14635')

# Terminate instance.
mybiodb$terminate()


pkrog/biodbKegg documentation built on Oct. 1, 2022, 6:27 p.m.