flowCore: retain raw data in the flowset after transformation
1
0
Entering edit mode
@carlosxmartinez-fleites-19332
Last seen 2.6 years ago

Hello,

Using flowcore functions, I would like to keep columns containing raw data in a flowset after applying a transformation, example:

logicleT <- logicleTransform( w = 0.5, t= 10000, m =4.5) transformation <- transformList(c("FL2-A", "FL3-A", "FL6-A", "FL10-A"), logicleT ) newFlowSet <- transform(flowset, transformation)

If done as above, newFlowSet will contain flowframes with columns with transformed data and not the original data.

Is it possible at all to retain the original columns and add new columns with the transformed values?

Many thanks.

flow cytometry flowcore • 476 views
ADD COMMENT
0
Entering edit mode
Jiang, Mike ★ 1.3k
@jiang-mike-4886
Last seen 22 days ago
(Private Address)

You can do inline transformation,e.g.

newFlowSet <- transform(flowset, `trans-FL2-A` = logicleT(`FL2-A`), `trans-FL3-A` = logicleT(`FL3-A`))

By the way, why do you need the original columns?

ADD COMMENT
0
Entering edit mode

Thanks, this works nicely.

I want to keep all columns in the flowset for subsequent conversion into a single data.frame that I use as a data source for ggplot.

Login before adding your answer.

Traffic: 247 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