octadDrugEnrichment: Compute Drug enrichment

View source: R/octadDrugEnrichment.R

octadDrugEnrichmentR Documentation

Compute Drug enrichment

Description

Perform enrichment analysis of drug hits based on chemical structures, drug-targets, and pharmacological classifications. An enrichment score calculated using ssGSEA and a p-value computed through a permutation test are provided.

Usage

  octadDrugEnrichment(sRGES = NULL, target_type = "chembl_targets",
  enrichFolder = "enrichFolder", outputFolder = NULL, outputRank = FALSE)

Arguments

sRGES

sRGES data frame produced by runsRGES.

target_type

one or several of 'chembl_targets','mesh','ChemCluster' databases selected. By deafult only 'chembl_targets' will be used.

enrichFolder

folder to store output.

outputFolder

path where to store enrichFolder, in case of NULL will be stored in work directory.

outputRank

output detailed rank if TRUE, write sRGES for selected target as vcf.

Value

Following files are created: enriched_*_targets.csv and top_enriched_*_*_targets.pdf. In the case of chemical structural analysis, additional files are created: *drugstructureClusters.csv and *misc.csv. The results provide useful information for following candidate selection and experimental design. For example, if two structurally similar drugs are both predicted as top hits, the chance of each drug as a true positive is high.

exprData

matrix with either log2 corrected counts or tmp matrix for selected samples.

See Also

runsRGES

Examples

data("sRGES_example",package='octad') #load example sRGES
#run drug enrichment 
octadDrugEnrichment(sRGES = sRGES_example, target_type = c('chembl_targets'))


Bin-Chen-Lab/octad documentation built on Jan. 28, 2023, 11:20 p.m.