PerturbationData-class: Data wrapper for a data set of a perturbation screen.

Description Slots Examples

Description

Class PerturbationData wraps a data set derived from a genetic perturbation screen, e.g. using RNA interference or CRISPR. Class PerturbationData exposes getters for its members of the same name, but no setters, because the data should be treated as constant once set. The easiest way to construct a PerturbationData object is by first creating a data.frame and then calling as. See the examples to construct an object.

Slots

dataSet

the data set as a tibble

Examples

1
2
3
4
5
6
7
  df <- data.frame(Condition    = c("V1", "V2", "V3"),
                   Replicate    = c(1, 1, 1),
                   GeneSymbol   = c("TP52", "NegCtrl", "PosCtrl"),
                   Perturbation = c("P1", "P2", "P3"),
                   Readout      = c(123, 121, 12),
                   Control      = c(0, -1, 1))
  methods::as(df, "PerturbationData")

perturbatr documentation built on Nov. 8, 2020, 5:15 p.m.