View source: R/drugSetEnrichment.R
prepareDrugSets | R Documentation |
Create a list of drug sets for each character and numeric column. For each
character column, drugs are split across that column's unique values (see
argument maxUniqueElems
). For each numeric column, drugs are split
across evenly-distributed bins.
prepareDrugSets(
table,
id = 1,
maxUniqueElems = 15,
maxBins = 15,
k = 5,
minPoints = NULL
)
table |
Data frame: drug descriptors |
id |
Integer or character: index or name of the identifier column |
maxUniqueElems |
Numeric: ignore character columns with more unique
elements than |
maxBins |
Numeric: maximum number of bins for numeric columns |
k |
Numeric: constant; the higher the constant, the smaller the bin size
(check |
minPoints |
Numeric: minimum number of points in a bin (if |
Named list of characters: named drug sets with respective compound identifiers as list elements
Other functions for drug set enrichment analysis:
analyseDrugSetEnrichment()
,
loadDrugDescriptors()
,
plotDrugSetEnrichment()
descriptors <- loadDrugDescriptors("NCI60")
prepareDrugSets(descriptors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.