allFromKeys | R Documentation |
These functions are the main workhorses for mapping identifiers from one database to another. They make use of the latest UniProt API (seen at https://www.uniprot.org/help/api).
allFromKeys()
allToKeys(fromName = "UniProtKB_AC-ID")
returnFields()
mapUniProt(
from = "UniProtKB_AC-ID",
to = "UniRef90",
columns = character(0L),
query,
verbose = FALSE,
debug = FALSE,
paginate = TRUE,
pageSize = 500L
)
queryUniProt(
query = character(0L),
fields = c("accession", "id"),
collapse = " OR ",
n = Inf,
pageSize = 25L
)
fromName |
|
from |
|
to |
|
columns , fields |
|
query |
|
verbose |
|
debug |
|
paginate |
|
pageSize |
|
collapse |
|
n |
|
Note that mapUniProt
is used internally by the select
method
but made available for API queries with finer control. Provide values from
the name
column in returnFields
as the columns
input in
either mapUniProt
or select
method.
When using from='Gene_Name'
, you may restrict the search results to a
specific organism by including e.g., taxId=9606
in the query as a
named list element. See examples below.
mapUniProt
: A data.frame of returned results
allToKeys
: A sorted character vector of possible "To" keytypes based
on the given "From" type
allFromKeys
: A sorted character vector of
possible "From" keytypes
returnFields
: A data.frame
of entries for
the columns input in mapUniProt
; see 'name' column
M. Ramos
mapUniProt(
from="UniProtKB_AC-ID",
to='RefSeq_Protein',
query=c('P13368','Q9UM73','P97793','Q17192')
)
mapUniProt(
from='GeneID', to='UniProtKB', query=c('1','2','3','9','10')
)
mapUniProt(
from = "UniProtKB_AC-ID",
to = "UniProtKB",
columns = c("accession", "id"),
query = list(organism_id = 10090, ids = c('Q7TPG8', 'P63318'))
)
## restrict 'from = Gene_Name' result to taxId 9606
mapUniProt(
from = "Gene_Name",
to = "UniProtKB-Swiss-Prot",
columns = c("accession", "id"),
query = list(taxId = 9606, ids = 'TP53')
)
mapUniProt(
from = "UniProtKB_AC-ID", to = "UniProtKB",
query = c("P31946", "P62258"),
columns = c("accession", "id", "xref_pdb", "xref_hgnc", "sequence")
)
queryUniProt(
query = c("accession:A5YMT3", "organism_id:9606"),
fields = c("accession", "id", "reviewed"),
collapse = " AND "
)
allToKeys(fromName = "UniRef100")
head(allFromKeys())
head(returnFields())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.