FlowSOM Error in flowCore::read.FCS
1
0
Entering edit mode
agus_rizzo • 0
@8d63a973
Last seen 12 months ago
Argentina

Hi, I´m trying to use flowSOM with an FCS file an i´m having problems with the read.FCS function:

I´m trying the following code:

filename <- system.file("extdata", 'fusionLMA.fcs', package="FlowSOM") ff <- flowCore::read.FCS('fusionLMA.fcs')

and obtained the following error:

Error in flowCore::read.FCS("fusionLMA.fcs") : 'fusionLMA.fcs' is not a valid file

I can´t figure out what´s wrong, since the file is an FCS file . . . ```

FlowSOM • 937 views
ADD COMMENT
1
Entering edit mode
@james-w-macdonald-5106
Last seen 13 hours ago
United States

The error means the file doesn't exist, at least not in your working directory. Note that the file doesn't (shouldn't!) exist in your R library dir, so the first line of code doesn't make sense (the system.file part, which is meant to find extra data that the package author might use for examples or whatever).

If you do

file.exists("fusionLMA.fcs")

And it returns FALSE, then that file isn't in your working directory and you need to use setwd to change the working dir to wherever the file is, or provide the path to the file to read.FCS.

ADD COMMENT
0
Entering edit mode

Hi thank you very much, it worked! i have another problem with compensation. i tried the next code:

> comp <- flowCore::keyword(ff)[["SPILL"]]
> ff <- flowWorkspace::compensate(ff, comp)
Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function "compensate" for signature "flowFrame", "NULL"

> print(comp)
NULL

Does it mean that the compensation matrix was never extracted?

thank you very much

ADD REPLY
0
Entering edit mode

ff is a flowFrame. The flowWorkspace package has a compensate method (or function), but it does not accept a flowFrame as an argument.

The compensate function that applies to a flowFrame is the one from the flowCore package.

ADD REPLY

Login before adding your answer.

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