[BioC] building a "for loop" with getGene, biomaRt

Sean Davis sdavis2 at mail.nih.gov
Thu Dec 15 13:43:56 CET 2005




On 12/15/05 7:37 AM, "Morten Mattingsdal"
<morten.mattingsdal at student.uib.no> wrote:

> This workes. But I want to make a "for loop", so that getGene retrieves
> all my 3 id's in one go.. ive tried several "for loops", but I think I
> have trouble handeling the returning martTable-class.
> 
> So my question is:
> Have anyone else managed to build a "for loop" of getGene, and is it
> doable with the returning martTable-class ?

You don't need to do a "for loop".  This works:

 g <- getGene(id=test, type="entrezgene", species="hsapiens", db="ensembl",
mart=mart)



More information about the Bioconductor mailing list