[BioC] Analysis with MBNI re-mapped (custom) CDF files

Seth Falcon sfalcon at fhcrc.org
Wed Jan 31 16:41:06 CET 2007


"Hooiveld, Guido" <Guido.Hooiveld at wur.nl> writes:
> Outcomes:
> library(mouse4302probe)
> a <- as.data.frame(mouse4302probe)
> b <- as.factor(a[,4])
> table(table(b))
>
>     8     9    10    11    20    21 
>     1     5    20 45032    40     3 
>
> - How can I extract the name of (lets's say) the 230 probesets that
>   consists of 3 probes?

Here's one way:

 library("mouse4302probe")
 a <- as.data.frame(mouse4302probe)
 b <- as.factor(a[,4])
 
 zz <- table(b)
 zz[1:3]
 probes <- dimnames(zz)$b
 probes[1:3]
 counts <- as.vector(zz)
 counts[1:3]
 probesByCount <- split(probes, counts)

 names(probesByCount)
 probesByCount[["21"]]
 
I'll let others chime in on your other questions.

+ seth



More information about the Bioconductor mailing list