fetchFromUniProt | R Documentation |
Fetch annotations from UniProt
fetchFromUniProt(
unis,
columns = c("genes", "protein names"),
col.names = NULL,
batchsize = 400,
verbose = FALSE
)
unis |
A character vector with UniProt identifiers |
columns |
Data columns requested (see |
col.names |
How to name data columns in the returned data frame |
batchsize |
Size of batch of proteins in a single query |
verbose |
Logical, if true, query progress will be displayed |
For a given list of UniProt identifiers this function will bring back
annotations from UniProt servers. What information is downloaded is
controlled by the columns
parameter. By default it fetches gene names
and protein name/description. The full list of available columns is in a
vector allowedUniProtColumns
.
The column names in the returned data frame are the same as in columns
parameter, unless alternative names are provided in parameter
col.names
. The id
column is added by default.
A data frame with protein annotations.
library(proteusLabelFree)
data(proteusLabelFree)
# Extract UniProt identifiers from protein IDs
unis <- sapply(as.character(prodat$proteins), function(prot) {
s <- unlist(strsplit(prot, "|", fixed=TRUE))
s[2]
})
# Fetch first 100 annotations (for a quick example)
anno <- fetchFromUniProt(unis[1:100])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.