Description Usage Arguments Value Examples
Convert a PharmacoSet object into tidy format. This is essentially a wrapper function
for gather_response.PharmacoSet
and gather_assay.PharmacoSet
1 2 3 4 5 |
x |
PharmacoSet object |
sample_ids |
A vector of sample ids. Default is NULL (don't filter on sample id) |
gene_ids |
A vector of gene ids. Default is NULL (don't filter on gene id) |
resp_ids |
A vector of response ids. Default is NULL (don't filter on response id) |
sample_col |
Name of the column in the pData data frame to use for filtering on sample id |
gene_col |
Name of the column in the rowData data frame to use for filtering on gene id |
resp_col |
Response variable to retrieve |
data_types |
Names of the components of the PharmacoSet object to gather |
resp_df |
Data frame to process response data from (rather than PharmcaGx object) |
a data frame in tall_df format
1 2 3 4 5 6 7 8 | data('CCLEsmall', package='PharmacoGx')
gather.PharmacoSet(CCLEsmall, sample_ids=c('143B', '23132-87'), gene_ids=c('BRAF', 'EGFR'),
data_types=c('rna', 'mutation'), gene_col=c('Symbol', 'Symbol'))
gather.PharmacoSet(CCLEsmall, sample_ids=c('CHL-1', 'SW1573'), gene_ids=c('BRAF', 'EGFR'),
resp_ids=c("AEW541","Nilotinib","PHA-665752","lapatinib"),
data_types=c('rna', 'mutation'), gene_col=c('Symbol', 'Symbol'), resp_col='ic50_published')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.