getXref {biomaRt}R Documentation

Get cross reference in Ensembl

Description

This powerful function retrieves any cross reference in Ensembl

Usage

id  = NULL, from.species = NULL, to.species = NULL, from.xref = NULL, to.xref = NULL, db = c('ensembl'), mart = NULL

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()
db database to use. Currently this function only works with Ensembl
mart object of class Mart, containing connections to the BioMart databases. You can creat such an object using the function martConnect.

Author(s)

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

See Also

Examples

## Not run: 
mart <- martConnect()

#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

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

martDisconnect(mart = mart)
## End(Not run)

[Package biomaRt version 1.0.4 Index]