Description Usage Arguments Value Examples
Convert response data from a PharmacoSet into tidy format
1 2 3 | ## S3 method for class 'PharmacoSet'
gather_response(x, sample_ids = NULL, resp_ids = NULL,
resp_col = "ic50_published", extra_cols = NULL)
|
x |
PharmacoSet object |
sample_ids |
A vector of sample ids. Default is NULL (don't filter on sample id) |
resp_ids |
A vector of response ids. Default is NULL (don't filter on response id) |
resp_col |
Response variable to retrieve |
extra_cols |
Optional additional columns to retrieve from the PharmacoSet drug info. Default is NULL |
a data frame in tall_df format
1 2 3 4 5 6 7 8 | data('CCLEsmall', package='PharmacoGx')
gather_response.PharmacoSet(CCLEsmall, sample_ids=c('CHL-1', 'SW1573'),
resp_ids=c('AEW541', 'Nilotinib'),
resp_col='ic50_published')
gather_response.PharmacoSet(CCLEsmall, sample_ids=c('CHL-1', 'SW1573'),
resp_ids=c('AEW541', 'Nilotinib'),
resp_col='ic50_published', extra_cols='nbr.conc.tested')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.