Description Usage Arguments Value See Also Examples
read FCS files from the disk and load them into a ncdfFlowSet object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
files |
A character vector giving the source FCS raw file paths. |
ncdfFile |
A character scalar giving the output file name. Default is NULL and the function will generate a random
file in the temporary folder, potentially adding the |
flowSetId |
A character scalar giving the unique ncdfFlowSet ID. |
isWriteSlice |
A logical scalar indicating whether the raw data should also be copied.if FALSE, an empty cdf file is created with the dimensions (sample*events*channels) supplied by raw FCS files. |
phenoData |
An object of |
channels |
A character vector specifying which channels to extract from FCS files. It can be useful when FCS files do not share exactly the same channel names. Thus this argument is used to select those common channels that are of interests. Default value is NULL and the function will try to scan the FCS headers of all files and determine the common channels. |
channel_alias, alter.names |
see read.FCS |
dim |
|
compress |
|
mc.cores |
|
... |
extra arguments to be passed to |
A ncdfFlowSet object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | library(ncdfFlow)
path<-system.file("extdata","compdata","data",package="flowCore")
files<-list.files(path,full.names=TRUE)[1:3]
#create ncdfFlowSet from fcs with the actual raw data written in cdf
nc1 <- read.ncdfFlowSet(files=files,ncdfFile="ncfsTest.nc",flowSetId="fs1",isWriteSlice= TRUE)
nc1
nc1[[1]]
unlink(nc1)
rm(nc1)
#create empty ncdfFlowSet from fcs and add data slices afterwards
nc1 <- read.ncdfFlowSet(files=files,ncdfFile="ncfsTest.nc",flowSetId="fs1",isWriteSlice= FALSE)
fs1<-read.flowSet(files)
nc1[[1]] <- fs1[[1]]
nc1[[1]]
nc1[[2]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.