extractWellNames {twoddpcr} | R Documentation

## Try to get well names from a vector of filenames.

### Description

If each of the given filenames are of the form "<PlateName>_<WellName>_Amplitude.csv", where <WellName> is of the form A01, B01, etc., then this function can extract the <WellName> component. Otherwise, the whole file name is assumed to be the well name.

### Usage

    extractWellNames(filenames)

### Arguments

`filenames` | A character vector of filenames with .csv extension.

### Value

A character vector of well names.

### Author(s)

Anthony Chiu, anthony.chiu@cruk.manchester.ac.uk

### Examples

    ## Get the well names (recognised format).
    extractWellNames(c("Sample_Plate_Name_G02_Amplitude.csv",
                       "Sample_Plate_Name_H02_Amplitude.csv",
                       "Sample_Plate_Name_A03_Amplitude.csv",
                       "Sample_Plate_Name_B03_Amplitude.csv"))

    ## Get the well names (unrecognised format).
    extractWellNames(c("Sample_G02.csv",
                       "Sample_H02.csv",
                       "Sample_A03.csv",
                       "Sample_B03.csv"))

[Package twoddpcr version 1.16.0 Index]