Skip to contents

In a source plate, get the name of the reagent contained in a given well.

Usage

sourceReagent(plate, well)

# S4 method for Plate,Well
sourceReagent(plate, well)

# S4 method for Plate,missing
sourceReagent(plate, well)

Arguments

plate

A Plate object.

well

A Well object.

Examples


sourcePlate <- Plate( type       = "384"
                    , deadVolume = 10000
                    , maxVolume  = 100000)

sourcePlate <- sourcePlate |>
  setWell(Well("A01"), "dNTP",   100000) |>
  setWell(Well("A02"), "dNTP",   100000) |>
  setWell(Well("A03"), "buffer", 100000)

head(sourcePlate)
#> DataFrame with 6 rows and 2 columns
#>          dNTP    buffer
#>     <numeric> <numeric>
#> A01     1e+05        NA
#> A02     1e+05        NA
#> A03        NA     1e+05
#> A04        NA        NA
#> A05        NA        NA
#> A06        NA        NA

sourcePlate |> sourceReagent(Well("A01"))
#> [1] "dNTP"
sourcePlate |> sourceReagent(Well("A03"))
#> [1] "buffer"
sourcePlate |> sourceReagent()
#> [1] "dNTP"   "buffer"