| writeNanoStringRccSet {NanoStringNCTools} | R Documentation |
Write NanoString Reporter Code Count (RCC) files from an instance of class
NanoStringRccSet.
writeNanoStringRccSet(x, dir = getwd())
x |
an instance of class |
dir |
An optional character string representing the path to the directory for the RCC files. |
Writes a set of NanoString Reporter Code Count (RCC) files based upon x
in dir.
A character vector containing the paths for all the newly created RCC files.
Patrick Aboyoun
NanoStringRccSet, readNanoStringRccSet
datadir <- system.file("extdata", "3D_Bio_Example_Data",
package = "NanoStringNCTools")
rccs <- dir(datadir, pattern = "SKMEL.*\\.RCC$", full.names = TRUE)
solidTumorNoRlfPheno <- readNanoStringRccSet(rccs)
writeNanoStringRccSet(solidTumorNoRlfPheno, tempdir())
for (i in seq_along(rccs)) {
stopifnot(identical(readLines(rccs[i]),
readLines(file.path(tempdir(), basename(rccs[i])))))
}