getXref {biomaRt}R Documentation

Get cross reference in Ensembl

Description

This powerful function retrieves any cross reference in Ensembl

Usage

getXref(id, from.species, to.species, from.xref, to.xref, mart)

Arguments

id any identifier
from.xref type of identifier, value should correspond to results of getPossibleXrefs function
to.xref type of identifier, value should correspond to results of getPossibleXrefs function
from.species species of which the id is from. Accepted values for species can be retrieved with the function getSpecies()
to.species species in which you want to find the homologs. Accepted values for species can be retrieved with the function getSpecies()
mart object of class Mart, containing connections to the BioMart databases. You can create such an object using the function useMart.

Author(s)

Sean Davis, Steffen Durinck, http://www.esat.kuleuven.ac.be/~sdurinck

Examples


if(interactive()){
mart <- useMart("ensembl",mysql=TRUE)

#starting from an affy id of chip hg_u95av2 and id 1939_at, give me corresponding affy identifiers on the affy mouse chip mouse430_2

xref = getXref(id="1939_at", from.species="hsapiens", to.species = "mmusculus", from.xref ="affy_hg_u95av2", to.xref="affy_mouse430_2",mart=mart)
show(xref)

martDisconnect(mart = mart)
}

[Package biomaRt version 1.8.2 Index]