Description Usage Arguments Value Examples
View source: R/methods-subsetTo.R
This is the prefered method of subsetting a ToxicoSet. This function allows abstraction of the data to the level of biologically relevant objects: drugs and cells. The function will automatically go through all of the combined data in the ToxicoSet and ensure only the requested radiations and cell lines are found in any of the slots. This allows quickly picking out all the experiments for a radiation or cell of interest, as well removes the need to keep track of all the metadata conventions between different datasets.
1 2 3 4 5 6 7 8 9 |
object |
A |
cell_lines |
A list or vector of cell names as used in the dataset to which the object will be subsetted. If left blank, then all cells will be left in the dataset. |
drugs |
A list or vector of drug names as used in the dataset to which the object will be subsetted. If left blank, then all drugs will be left in the dataset. |
molecular.data.cells |
A list or vector of cell names to keep in the molecular data |
duration |
A |
features |
A list or vector of feature names as used in the dataset from which the object will be subsetted. If left blank that all features will be left in. |
... |
Other arguments passed to other functions within the package |
A ToxicoSet with only the selected drugs and cells
1 2 3 4 | TGGATESDrugNames <- drugNames(TGGATESsmall)
TGGATESCells <- cellNames(TGGATESsmall)
tSet <- subsetTo(TGGATESsmall,drugs = TGGATESDrugNames[1],
cells = TGGATESCells[1], duration = "2")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.