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)
See also
Other Plate functions:
Plate-class
,
PlateTypeToWellNames()
,
as.character,Well-method
,
nextWell()
,
plateMap()
,
plateWellVolume()
,
randomise()
,
seekReagent()
,
setWell()
,
set_block()
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"