We recently got a BioRad S3 cell sorter which saves files in .fcs format. I used the following R code in R 3.2.2 to try to read this file:
library('flowCore') #version 1.11.20
# Set directory
setwd('R:/Publishing/Baer Lab/FACS/2015-09-18')
x = read.FCS(filename = "CG sort.fcs" , transformation = FALSE)
------------------------------------------
The result is an error that reads as follows:
Error in readFCSdata(con, offsets, txt, transformation, which.lines, scale, :
$PnR is larger than the integer limit: 4294967296
In addition: Warning message:
In readFCSdata(con, offsets, txt, transformation, which.lines, scale, :
NAs introduced by coercion to integer range
-------------------------------------------
For what it's worth, the FCS version (based on opening in browser :() appears to be version 3.1.
It is not clear to me what might be happening. Is this a coding problem? a flowCore problem? an FCS integrity or version problem?
I would appreciate any insight into how to debug or better yet overcome this situation. If this is a lost cause are there other packages for working with FCS data?
Thanks,
Rob Baer
> R.Version()
$platform
[1] "x86_64-w64-mingw32"
$arch
[1] "x86_64"
$os
[1] "mingw32"
$system
[1] "x86_64, mingw32"
$status
[1] ""
$major
[1] "3"
$minor
[1] "2.2"
$year
[1] "2015"
$month
[1] "08"
$day
[1] "14"
$`svn rev`
[1] "69053"
$language
[1] "R"
$version.string
[1] "R version 3.2.2 (2015-08-14)"
$nickname
[1] "Fire Safety"
Thanks. That is at least a start toward a possible resolution.
I don't know yet what the save options are on the Biorad (ProSort) software, but I'll check it out . You seem to be telling me that the solution lies on the export side, not the import side. This implies that the fcs format saves variable typing as well as variable values. I guess that I'll have to delve deeper in the specifics of fcs specifications too :-(
FYI on Windows 8.1 on an I7 processor with 64-bit R 3.2.2, it seems my integers are indeed too small:
> .Machine$integer.max
[1] 2147483647
Right, I suppose Biorad should be able to allow you select the value type (between 'int' and 'float') when you are exporting/saving your FCS.