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

View source: R/IDWAS.R

idwasR Documentation

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

Description

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

Usage

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.


oncoPredict documentation built on May 29, 2024, 6:05 a.m.