Allows specifying a resource by name instead of by id, anywhere that an id is accepted.

byName(name)

Arguments

name

Name of resource.

Details

Internally, this looks up the resource's id by name before the function runs. To improve performance, the resource's id is cached for the duration of the R session. Resources such as gates that exist within an experiment are cached within the experiment's scope. That is, the following is safe, even though the FCS files have the same name:

getFcsFile(byName("experiment 1"), byName("fcsfile1.fcs")) getFcsFile(byName("experiment 2"), byName("fcsfile1.fcs"))

Examples

if (FALSE) { # \dontrun{
getGates(byName("my experiment"))
getGates(experimentId = byName("my experiment"))
} # }