arrangeCelFilesByChipType {affxparser} | R Documentation

## 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

`pathnames` | A `character` `vector` of CEL pathnames to be moved.
`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' (official name).
`...` | Not used.

### 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.

### Author(s)

Henrik Bengtsson

### See Also

The chip type is inferred from the CEL file header, cf. `readCelHeader`().

[Package affxparser version 1.59.0 Index]