thresholds: Get/set the thresholds

Description Usage Arguments Value See Also Examples

View source: R/type-custom_thresholds.R

Description

For ddPCR plates of type custom_thresholds, get or set the thresholds that divide the four droplet quadrants.

Usage

1
2
3
4
5
thresholds(plate)

thresholds(plate) <- value

set_thresholds(plate, value)

Arguments

plate

A ddPCR plate.

value

The new thresholds as a 2-element numeric vector

Value

The current thresholds

See Also

custom_thresholds
x_threshold
y_threshold

Examples

1
2
3
4
5
6
7
## Not run: 
plate <- new_plate(sample_data_dir(), type = plate_types$custom_thresholds)
thresholds(plate)
thresholds(plate) <- c(5500, 8000)
set_thresholds(plate, c(5500, 8000))

## End(Not run)

Example output

Attaching package: 'ddpcr'

The following object is masked from 'package:stats':

    step

[1] "(5000, 5000)"
                    ddpcr plate
                   -------------
            Dataset name : small
            Data summary : 5 wells; 72,727 drops
              Plate type : custom_thresholds, ddpcr_plate
Completed analysis steps : INITIALIZE
Remaining analysis steps : REMOVE_OUTLIERS, CLASSIFY

ddpcr documentation built on July 8, 2020, 6:49 p.m.