Georg-

You'll probably have to learn a bit more about the data structures  
and do some programming. Something like:

library(annaffy)
probeids <- c("A", "A", "A", "A", "B", "B", "C")
ensembl <- c(1,2,3,4,5,6,7)
uniqueprobeids <- unique(probeids)
ensemblcolumn <- vector("list", length(uniqueprobeids))
for (i in seq(along = uniqueprobeids)) {
     idindex <- which(probeids == uniqueprobeids[i])
     ensemblcolumn[[i]] <- ensembl[idindex]
}
anntable <- new("aafTable", probeids = uniqueprobeids, table = list 
("Ensembl ID"=ensemblcolumn))

Hopefully that's enough to get you started. You'd probably want to  
write a function that would take the output from Resourcer or biomaRt  
and do something like the above, iterating over the columns of their  
data structure. It would take a bit of doing but whatever you come up  
with would probably be worth sharing with the community.

-Colin

On Feb 28, 2006, at 3:00 , Georg Otto <georg.otto@tuebingen.mpg.de>  
wrote:

> There is one more (and hopefully last) question I have concerning
> reading data into aafTable objects (sorry for this, but my knowledge
> concerning these kind of data structures is still somewhat limited,
> and I haven't found anything about it):
>
> Some annotation tables (eg. output from biomaRt) have multiple
> annotations per probeset ID, that is represented in the table as
> multiple rows, e.g.
>
> Probeset        Ensembl ID
> A               1
> A               2
> A               3
> A               4
> B               5
> B               6
> C               7
>
> Is there a way I could write this in an aafTable in the same way as it
> is done in the affy annotation packages, i.e. with multiple
> annotations per field, something like this:
>
> anntable@probeids      anntable@table$"Ensembl ID"
> A                      1 2 3 4
> B                      5 6
> C                      7
>
> Any hint will be highly appreciated.
>
> Cheers and thanks again,
>
> Georg


	[[alternative HTML version deleted]]

