getXref {biomaRt} | R Documentation |
This powerful function retrieves any cross reference in Ensembl
getXref(id, from.species, to.species, from.xref, to.xref, mart)
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. |
Sean Davis, Steffen Durinck, http://www.esat.kuleuven.ac.be/~sdurinck
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) }