amplitudes {twoddpcr} | R Documentation

## Retrieve droplet amplitudes.

### Description

Retrieve the droplet amplitudes from an object.

### Usage

    amplitudes(theObject)

    ## S4 method for signature 'ddpcrWell'
    amplitudes(theObject)

    ## S4 method for signature 'ddpcrPlate'
    amplitudes(theObject)

### Arguments

`theObject` | A `ddpcrWell` or `ddpcrPlate` object.

### Value

If `theObject` is a `ddpcrWell` object, return a data frame of droplet amplitudes with columns "Ch1.Amplitude" and "Ch2.Amplitude". If `theObject` is a `ddpcrPlate` object, return a list of data frames.

### Author(s)

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

### See Also

`wellClassification` for the classification of the droplets.

### Examples

    ## Set a ddpcrWell object with no data.
    aWell <- ddpcrWell(well=data.frame("Ch1.Amplitude"=double(),
                                       "Ch2.Amplitude"=double()))

    ## This can be checked to be empty.
    amplitudes(aWell)

    ## Alternatively, load some data.
    aWell <- ddpcrWell(well=KRASdata[["E03"]])

    ## We check again and see that it has been populated.
    head(amplitudes(aWell))

    # Get all of the KRASdata droplet amplitudes.
    krasPlate <- ddpcrPlate(wells=KRASdata)
    allDroplets <- amplitudes(krasPlate)
    str(allDroplets)

[Package twoddpcr version 1.11.0 Index]