Function Repository Resource:

EnsemblCrossReference

Source Notebook

Look up Ensembl identifiers or external symbols and provide cross references in other databases

Contributed by: Keiko Hirayama

ResourceFunction["EnsemblCrossReference"][id]

looks up id and retrieves its cross references.

ResourceFunction["EnsemblCrossReference"]["DatabasesBySpecies"]

retrieves the list of supported databases by species.

Details and Options

ResourceFunction["EnsemblCrossReference"] is based on Ensembl, which provides genomics information including genes, transcripts and proteins.
ResourceFunction["EnsemblCrossReference"] performs lookups of Ensembl Identifiers or external symbols and returns their references in other databases.
The argument id can be an Ensembl identifier, a symbol and accession number of an external database or a list of these.
The following options can be given:
"Species""human"species for which to query; should be one of selected TaxonomicSpecies entities or names of species; use EnsemblCrossReference["DatabasesBySpecies"] to get the list supported species
"Database"Allspecifies from which to retrieve references; use EnsemblCrossReference["DatabasesBySpecies"] to get the list supported databases

Examples

Basic Examples (3) 

Retrieve cross references for an Ensembl gene:

In[1]:=
ResourceFunction[
 "EnsemblCrossReference", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"]["ENSG00000030110"]
Out[1]=

Retrieve cross references for a specified gene symbol:

In[2]:=
ResourceFunction[
 "EnsemblCrossReference", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"]["BRCA2"]
Out[2]=

Find the list of supported external databases by species:

In[3]:=
ResourceFunction[
 "EnsemblCrossReference", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"]["DatabasesBySpecies"]
Out[3]=

Scope (1) 

For ambiguous identifiers, EnsemblCrossReference looks up all potential references that match the identifier:

In[4]:=
ResourceFunction[
 "EnsemblCrossReference", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"]["7157"]
Out[4]=

Options (2) 

Species (1) 

Use the "Species" option to specify the organism to query about:

In[5]:=
ResourceFunction[
 "EnsemblCrossReference", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"]["BRCA2", {"Species" -> Entity["TaxonomicSpecies", "MusMusculus::y84t7"]}]
Out[5]=

Database (1) 

Use the "Database" option to specify the database from which to retrieve the cross reference:

In[6]:=
ResourceFunction[
 "EnsemblCrossReference", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"]["BRCA2", {"Database" -> "HGNC"}]
Out[6]=

Requirements

Wolfram Language 13.0 (December 2021) or above

Version History

  • 1.0.1 – 21 April 2025
  • 1.0.0 – 04 April 2025

Source Metadata

Related Resources

License Information