amplitudes: Retrieve droplet amplitudes.

Description Usage Arguments Value Author(s) See Also Examples

Description

Retrieve the droplet amplitudes from an object.

Usage

1
2
3
4
5
6
7
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## 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)

twoddpcr documentation built on Nov. 8, 2020, 5:49 p.m.