ExpasyEnzymeConn: Expasy ENZYME database. connector class.

ExpasyEnzymeConnR Documentation

Expasy ENZYME database. connector class.

Description

Expasy ENZYME database. connector class.

Expasy ENZYME database. connector class.

Details

Connector class for Expasy ENZYME 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.

Super classes

biodb::BiodbConnBase -> biodb::BiodbConn -> ExpasyEnzymeConn

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
ExpasyEnzymeConn$new(...)
Arguments
...

All parameters are passed to the super class initializer.

Returns

Nothing.


Method wsEnzymeByName()

Calls enzyme-byname web service and returns the HTML result. See http://enzyme.expasy.org/enzyme-byname.html.

Usage
ExpasyEnzymeConn$wsEnzymeByName(
  name,
  retfmt = c("plain", "request", "parsed", "ids")
)
Arguments
name

The name to search for.

retfmt

The format to use for the returned value. 'plain' will return the raw result from the server, as a character value. 'request' will return a BiodbRequest instance containing the request as it would have been sent. 'parsed' will return an XML object, containing the parsed result. 'ids' will return a character vector containing the IDs of the matching entries.

Returns

Depending on retfmt.


Method wsEnzymeByComment()

Calls enzyme-bycomment web service and returns the HTML result. See http://enzyme.expasy.org/enzyme-bycomment.html.

Usage
ExpasyEnzymeConn$wsEnzymeByComment(
  comment,
  retfmt = c("plain", "request", "parsed", "ids")
)
Arguments
comment

The comment to search for.

retfmt

The format to use for the returned value. 'plain' will return the raw result from the server, as a character value. 'request' will return a BiodbRequest instance containing the request as it would have been sent. 'parsed' will return an XML object, containing the parsed result. 'ids' will return a character vector containing the IDs of the matching entries.

Returns

Depending on retfmt.


Method clone()

The objects of this class are cloneable with this method.

Usage
ExpasyEnzymeConn$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

BiodbConn.

Examples

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

# Get a connector:
conn <- mybiodb$getFactory()$createConn('expasy.enzyme')

# Get the first entry
e <- conn$getEntry('1.1.1.1')

# Terminate instance.
mybiodb$terminate()


pkrog/biodbExpasy documentation built on March 29, 2022, 9:52 a.m.