Sampling from a flowSet to a flowFrame
1
0
Entering edit mode
cherryzt • 0
@cherryzt-11040
Last seen 8.4 years ago

Hello,

I´m getting started with flowCore and have one question. I want to take a sample from a flowSet and turn it into a flowFrame, so far I've just being able to do this (by following the instructions from a paper from BD):

set.sub <- fsApply(fs, function(x)
{samp <- sample(1:10000, size = 100)
set.sub<-new('flowFrame',exprs = x[samp,])},
use.exprs = TRUE, simplify = FALSE)

but I get a flowSet with several flowFrames, how can I get just one flowFrame with all of the samples?

 

Thank you

bioconductor flowcore sample • 1.8k views
ADD COMMENT
0
Entering edit mode
Jiang, Mike ★ 1.3k
@jiang-mike-4886
Last seen 3.1 years ago
(Private Address)

If you are talking about concatenate several flowFrames into one, here is what you can do

fr <- as(set.sub, "flowFrame")
ADD COMMENT

Login before adding your answer.

Traffic: 833 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6