Hello,
I have been struggling to use biomart in R to retrieve info from a variety of plant species. I have done the following :
> options(RCurlOptions=list(followlocation=TRUE, postredir=2L))
> phytozome <- useMart('phytozome_mart', host="
phytozome.jgi.doe.gov", path ="/biomart/martservice/", dataset = 'phytozome')
> t2f <- getBM(attributes = c("ortholog_group","ortholog__dm_gene_name","ortholog__dm_organism_name", "ortholog__dm_ortholog_gene_name"),filters= c("organism_id"), values = c(382), mart = phytozome)
However I have a problem. This gives me data from K. laxiflora, which is specified by the argument values =c(382) in the third line. If I want to download data from another species, how would i do this? So far my only approach has been to use trial and error to work out which value corresponds to which species (i.e. change the number which i am setting for value). But this is very laborious. I would like to know if there is a way of viewing which value corresponds to which species? So far i cannot find any way to view this.
Any help will be much appreciated
best wishes
Ali