amplitudes {twoddpcr} | R Documentation |
Retrieve the droplet amplitudes from an object.
amplitudes(theObject) ## S4 method for signature 'ddpcrWell' amplitudes(theObject) ## S4 method for signature 'ddpcrPlate' amplitudes(theObject)
theObject |
A |
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.
Anthony Chiu, anthony.chiu@cruk.manchester.ac.uk
wellClassification
for the classification of the
droplets.
## 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)