View source: R/cross_references.R
| get_xrefs_by_ensembl_id | R Documentation |
This function retrieves cross-references to external databases by Ensembl
identifier. The data is returned as a tibble where each
row is a cross reference related to the provided Ensembl identifier. See
below under section Value for details about each column.
get_xrefs_by_ensembl_id(
species_name,
ensembl_id,
all_levels = FALSE,
ensembl_db = "core",
external_db = "",
feature = "",
verbose = FALSE,
warnings = TRUE,
progress_bar = TRUE
)
species_name |
The species name, i.e., the scientific name, all letters
lowercase and space replaced by underscore. Examples: |
ensembl_id |
An Ensembl stable identifier, e.g. |
all_levels |
A |
ensembl_db |
Restrict the search to an Ensembl database: typically one
of |
external_db |
External database to be filtered by. By default no filtering is applied. |
feature |
Restrict search to a feature type: gene ( |
verbose |
Whether to be verbose about the http requests and respective responses' status. |
warnings |
Whether to show warnings. |
progress_bar |
Whether to show a progress bar. |
A tibble of 12
variables:
species_nameEnsembl species name: this is the name used
internally by Ensembl to uniquely identify a species by name. It is the
scientific name but formatted without capitalisation and spacing converted
with an underscore, e.g., 'homo_sapiens'.
ensembl_idAn Ensembl stable identifier, e.g. "ENSG00000248234378".
ensembl_dbEnsembl database.
primary_idPrimary identification in external database.
display_idDisplay identification in external database.
external_db_nameExternal database name.
external_db_display_nameExternal database display name.
versionTODO
info_typeThere are two types of external cross references (XRef):
direct ('DIRECT') or dependent ('DEPENDENT'). A direct cross
reference is one that can be directly linked to a gene, transcript or
translation object in Ensembl Genomes by synonymy or sequence similarity. A
dependent cross reference is one that is transitively linked to the object
via the direct cross reference. The value can also be 'UNMAPPED' for
unmapped cross references, or 'PROJECTION' for TODO.
info_textTODO
synonymsOther names or acronyms used to refer to the the external database entry. Note that this column is of the list type.
descriptionBrief description of the external database entry.
get_xrefs_by_ensembl_id() makes GET requests to
/xrefs/id/:id.
get_xrefs_by_ensembl_id('human', 'ENSG00000248378')
get_xrefs_by_ensembl_id('human', 'ENSG00000248378', all_levels = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.