Intersects objects of the PharmacoSet class, subsetting them to the common drugs and/or cell lines as selected by the user.
Source:R/intersectPSets.R
intersectPSet.Rd
Given a list of PharmacoSets, the function will find the common drugs, and/or cell lines, and return PharmacoSets that contain data only pertaining to the common drugs, and/or cell lines. The mapping between dataset drug and cell names is done using annotations found in the PharmacoSet object's internal curation slot
Usage
intersectPSet(
pSets,
intersectOn = c("drugs", "cell.lines", "concentrations"),
cells,
drugs,
strictIntersect = FALSE,
verbose = TRUE,
nthread = 1
)
Arguments
- pSets
list
a list of PharmacoSet objects, of which the function should find the intersection- intersectOn
character
which identifiers to intersect on, drugs, cell lines, or concentrations- cells
a
character
vector of common cell lines between pSets. In case user is intersted on getting intersection on certain cell lines, they can provide their list of cell lines- drugs
a
character
vector of common drugs between pSets. In case user is intersted on getting intersection on certain drugs, they can provide their list of drugs.- strictIntersect
boolean
Should the intersection keep only the drugs and cell lines that have been tested on together?- verbose
boolean
Should the function announce its key steps?- nthread
numeric
The number of cores to use to run intersection on concentrations
Examples
data(GDSCsmall)
data(CCLEsmall)
common <- intersectPSet(list('GDSC'=GDSCsmall,'CCLE'=CCLEsmall),
intersectOn = c("drugs", "cell.lines"))
#> Intersecting large PSets may take a long time ...
common$CGP
#> NULL
common$CCLE
#> <PharmacoSet>
#> Name: CCLE
#> Date Created: Fri Nov 6 14:00:53 2015
#> Number of samples: 9
#> Molecular profiles:
#> RNA :
#> Dim: 50, 9
#> RNAseq :
#> Dim: 50, 9
#> mutation :
#> Dim: 1667, 9
#> CNV :
#> Dim: 50, 7
#> Treatment response:
#> Drug pertubation:
#> Please look at pertNumber(cSet) to determine number of experiments for each drug-sample combination.
#> Drug sensitivity:
#> Number of Experiments: 102
#> Please look at sensNumber(cSet) to determine number of experiments for each drug-sample combination.