idwas: This function will test every drug against every CNV or...

Description Usage Arguments Value Examples

View source: R/IDWAS.R

Description

This function will test every drug against every CNV or somatic mutation for your cancer type.

Usage

1
idwas(drug_prediction, data, n = 10, cnv)

Arguments

drug_prediction

The drug prediction data. Must be a data frame. rownames are samples, colnames are drugs. Make sure sample names are of the same form as the sample names in your cnv or mutation data. e.g. if the rownames() are TCGA barcodes of the form TCGA-##-####-###, make sure your cnv/mutation data also uses samples in the form TCGA-##-####-###

data

The cnv or mutation data. Must be a data frame. If you wish to use cnv data, use the output from map_cnv(), transpose it so that colnames() are samples. Or use data of similar form. If you wish to use mutation data, use the method for downloading mutation data outlined in the vignette, and make sure the TCGA barcodes use '-' instead of '.'; if you use another dataset (and don't download data from TCGA), make sure your data file includes the following columns: 'Variant_Classification', 'Hugo_Symbol', 'Tumor_Sample_Barcode'.

n

The minimum number of samples you want CNVs or mutations to be amplified in. The default is 10 (arbitrarily chosen).

cnv

TRUE or FALSE. Indicate whether or not you would like to test cnv data. If TRUE, you will test cnv data. If FALSE, you will test mutation data.

Value

Raw p-value and beta-values for cnv and somatic mutations.

Examples

1
try(idwas(drug_prediction, data, n = 10, cnv))

oncoPredict documentation built on Sept. 24, 2021, 9:07 a.m.