[BioC] string to function argument

Jeremiah H. Savage jeremiahsavage at gmail.com
Wed Jun 30 04:06:28 CEST 2010


I just found out that I can access the gpldata list object through
[[1]] instead of $GPL96, so the problem is solved.

On Tue, Jun 29, 2010 at 4:44 PM, Jeremiah H. Savage
<jeremiahsavage at gmail.com> wrote:
> Hello,
>
> I would like to get the Table information out of multiple GPLList objects.
>
> How can I use a string/char variable as a function argument?
>
> In this case the function is GEOquery::Table()
>
> geodata <- parseGEO("GSExxxx.soft")
> gpldata <- GPLList(geodata)[1]
> gplname <- names(gpldata)  # eg. "GPL96"
> gplaccess <- paste(gpldata,gplname,sep="$")
>
> ENTREZ_GENE_ID <- Table(gplaccess)$ENTREZ_GENE_ID
> ###^^^ the above line does NOT work ,but
>
> ENTREZ_GENE_ID <-Table(gpldata$GPL96)$ENTREZ_GENE_ID
> ###^^^ the above line DOES work
>



More information about the Bioconductor mailing list