UniProt.ws-methods | R Documentation |
Various methods from AnnotationDbi such as select
, columns
,
keys
, keytypes
, and species
are made available for UniProt.ws
objects.
## S4 method for signature 'UniProt.ws'
keytypes(x)
## S4 method for signature 'UniProt.ws'
columns(x)
## S4 method for signature 'UniProt.ws'
keys(x, keytype)
## S4 method for signature 'UniProt.ws'
select(x, keys, columns, keytype, ...)
x |
a |
keytype |
|
keys |
|
columns |
|
... |
Additional arguments passed to lower level functions, mainly used
for the |
In much the same way as an AnnotationDb
object allows acces to
select for many other annotation packages, UniProt.ws
is meant to allow
usage of select
methods and other supporting methods to enable the easy
extraction of data from the UniProt web services.
select
, columns
and keys
are used together to extract data via an
UniProt.ws
object.
columns
shows which kinds of data can be returned for the UniProt.ws
object.
keytypes
allows the user to discover which keytypes can be passed in to
select
or keys
via the keytype
argument.
keys
returns keys for the database contained in the UniProt.ws
object .
By default it will return the primary keys for the database, which are
UniProtKB keys, but if used with the keytype
argument, it will return the
keys from that keytype.
select
will retrieve the data as a data.frame based on parameters for
selected keys
and columns
and keytype
arguments.
keys
,columns
,keytypes
, return a character vector
of possible values
select
returns a data.frame
keytypes(UniProt.ws)
: Get keytypes for a UniProt.ws object
columns(UniProt.ws)
:
keys(UniProt.ws)
: Get keys for a UniProt.ws object
select(UniProt.ws)
: Select columns from keys
UniProt.ws
## Make a UniProt.ws object
up <- UniProt.ws(taxId=9606)
## list the possible key types
head(keytypes(up))
## list of possible columns
head(columns(up))
## list all possible keys of type entrez gene ID
egs <- keys(up, "GeneID")
## use select to extract some data
res <- select(
x = up,
keys = c("22627","22629"),
columns = c("xref_pdb","xref_hgnc","sequence"),
keytype = "GeneID"
)
res
univals <- c("A0A0C5B5G6", "A0A1B0GTW7", "A0JNW5", "A0JP26", "A0PK11")
res <- select(
x = up,
keys = univals,
to = "Ensembl"
)
res
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.