| pdb_annotations | R Documentation |
Queries the PDBe APIs for secondary structure and ligand binding sites from
experimental PDB structures, converts residue numbers to UniProt canonical
coordinates via SIFTS, and returns named lists of A3Region and A3Site
objects ready for use with create_A3().
pdb_annotations(
accession,
pdb_id = NULL,
pdbe_graph_url = "https://www.ebi.ac.uk/pdbe/graph-api",
pdbe_api_url = "https://www.ebi.ac.uk/pdbe/api",
verbosity = 1L
)
accession |
Character scalar: UniProt accession, e.g. |
pdb_id |
Optional character scalar: Four-character PDB ID (e.g. |
pdbe_graph_url |
Character scalar: PDBe Graph API base URL. |
pdbe_api_url |
Character scalar: PDBe REST API base URL. |
verbosity |
Integer scalar: Verbosity level. |
Structure ranking and SIFTS residue mappings come from the PDBe Graph API
best_structures endpoint. Secondary structure and binding sites are fetched
from the PDBe REST API.
When pdb_id is NULL the top-ranked structure (by PDBe coverage score) is
used automatically.
Named list with two elements:
regionNamed list of A3Region objects for secondary structure
(types: "helix", "betaStrand", "turn").
siteNamed list of A3Site objects for ligand binding sites
(type: "bindingSite").
EDG
# Requires internet connection and fetches data from PDBe.
## Not run:
ann <- pdb_annotations("P10636")
mapt <- create_A3(
sequence = uniprot_sequence("P10636"),
region = ann[["region"]],
site = ann[["site"]]
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.