arrangeCelFilesByChipType: Moves CEL files to subdirectories with names corresponding to the chip types
Description
Moves CEL files to subdirectories with names corresponding to the chip types according to the CEL file headers.
For instance, a HG_U95Av2 CEL file with pathname "data/foo.CEL"
will be moved to subdirectory celFiles/HG_U95Av2/
.
Usage
arrangeCelFilesByChipType(pathnames=list.files(pattern = "[.](cel|CEL)$"), path="celFiles/", aliases=NULL, ...)
Arguments
path
A character
string specifying the root output directory,
which in turn will contain chip-type subdirectories.
All directories will be created, if missing. aliases
A named character
string with chip type aliases.
For instance, aliases=c("Focus"="HG-Focus")
will treat
a CEL file with chiptype label 'Focus' (early-access name) as
if it was 'HG-Focus' (offical name). Value
Returns (invisibly) a named character
vector
of the new pathnames
with the chip types as the names.
Files that could not be moved or where not valid CEL files
are set to missing values.
See Also
The chip type is inferred from the CEL file header,
cf. readCelHeader
().