View source: R/utils_uniprot.R
| uniprot_to_A3 | R Documentation |
Fetches the UniProt JSON for the given accession via the UniProt REST API,
maps all sequence annotations to the A3 schema (see specs/uniprot.md), and
returns a fully populated A3 object.
uniprot_to_A3(
accession,
base_url = "https://rest.uniprot.org/uniprotkb",
verbosity = 1L
)
accession |
Character scalar: UniProt accession, e.g. |
base_url |
Character scalar: UniProt REST API base URL. |
verbosity |
Integer scalar: Verbosity level. |
Feature types not mapped to A3 (mutagenesis, alternative sequences, sequence conflicts, etc.) are silently ignored.
A3 object with sequence, annotations, and UniProt metadata.
EDG
# Requires internet connection and fetches data from UniProt.
## Not run:
mapt <- uniprot_to_A3("P10636")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.