R/analysis.R
count_models_that_predict_synergies.Rd
Use this function to find the number of models that predict a given set of drug combinations (usually the ones found as synergies).
count_models_that_predict_synergies(drug.comb.vec, model.predictions)
drug.comb.vec | a character vector. Elements are (synergistic) drug combinations, each one being a string in the form A-B - no spaces between the names and the hyphen '-') |
---|---|
model.predictions | a |
the number of models that predict the given drug combination set
(have a value of 1 in the respective columns of the model.predictions
data.frame). If the given set is empty, we return the number of models that
predicted no synergies at all (after the NA values are discarded, the
number of rows in the model.predictions
data.frame that have only zero
values)