write.FCS: Write an FCS file

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/IO.R

Description

Write FCS file from a flowFrame

Usage

1
   write.FCS(x, filename, what="numeric", delimiter = "\\")

Arguments

x

A flowFrame.

filename

A character scalar giving the output file name.

what

A character scalar defining the output data type. One in integer, numeric, double. Note that forcing the data type to integer may result in considerable loss of precision if the data has been transformed. We recommend using the default data type unless disc space is an issue.

delimiter

a single character to separate the FCS keyword/value pairs. Default is back-slash: "\"

Details

The function write.FCS creates FCS 3.0 standard file from an object of class flowFrame.

For specifications of FCS 3.0 see http://www.isac-net.org and the file ../doc/fcs3.html in the doc directory of the package.

Value

A character of the file name.

Author(s)

F. Hahne

See Also

link[flowCore]{write.flowSet}

Examples

1
2
3
4
5
6
7
8
9
## a sample file
inFile <- system.file("extdata", "0877408774.B08", package="flowCore")
foo <- read.FCS(inFile, transform=FALSE)
outFile <- file.path(tempdir(), "foo.fcs")

## now write out into a file
write.FCS(foo, outFile)
bar <- read.FCS(outFile, transform=FALSE)
all(exprs(foo) == exprs(bar))

flowCore documentation built on Sept. 13, 2017, 2:01 a.m.