Function Repository Resource:

EnsemblHomology (1.0.0) current version: 1.0.1 »

Source Notebook

Retrieves homology information by species and gene

Contributed by: Keiko Hirayama

ResourceFunction["EnsemblHomology"][species, gene]

gives homology information for a gene of a specified species.

Details and Options

EnsemblHomology is based on Ensembl, which provides comparative genomics information including gene orthologs.
Selected gene symbols or Ensembl gene IDs can be used.
The following options can be give:
"SequenceType""Protein"type of aligned sequence to be returned; allowed values include: "Protein", "cDNA"
"TargetSpecies"Allspecified species to fiilter result; selected TaxonomicSpecies entities or names of species are used

Examples

Basic Examples (2) 

Get homology information for a specified human gene:

In[1]:=
ResourceFunction["EnsemblHomology"]["human", "BRCA2"]
Out[1]=

Get homology information for a mouse gene specified by the Ensembl gene ID:

In[2]:=
ResourceFunction["EnsemblHomology", ResourceVersion->"1.0.0"]["mus musculus", "ENSMUSG00000021250"]
Out[2]=

Scope (2) 

Get homology information for a specified human gene:

In[3]:=
fxr = ResourceFunction["EnsemblHomology"][
  Entity["TaxonomicSpecies", "HomoSapiens::4pydj"], "FXR2"]
Out[3]=

Show diffs for aligned sequences:

In[4]:=
Diff @@ fxr[1 ;; 2, "AlignedSequence"]
In[5]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/faffab97-4e35-44e8-81a0-5d8a66a568fa"]

Options (2) 

Get homology information with aligned cDNA sequences:

In[6]:=
ResourceFunction["EnsemblHomology", ResourceVersion->"1.0.0"]["gorilla gorilla", "BAK1", {"SequenceType" -> "cDNA"}]
Out[6]=

Get homology information for a specified gene and a target species:

In[7]:=
ResourceFunction["EnsemblHomology"][
 Entity["TaxonomicSpecies", "CanisLupusFamiliaris::4t62p"], "BAK1", {"TargetSpecies" -> Entity["TaxonomicSpecies", "MusMusculus::y84t7"]}]
Out[7]=

Requirements

Wolfram Language 14.0 (January 2024) or above

Version History

  • 1.0.1 – 21 April 2025
  • 1.0.0 – 10 January 2025

Source Metadata

Related Resources

License Information