Description Usage Arguments Value
This function computes the DRUID score for a given query vector. The DRUID score is dependent on the cosine similarity value as well as the random probability for any given drug against the query vector.
1 | druid_score(similarity_results, random_probabilities, num_random)
|
similarity_results |
Vector of cosine similarities |
gs_size |
Size of the query set |
num_sets |
Number of random sets to generate |
target_tfidf |
Drug tf-idf matrix. |
tfidf_crossprod_mat |
Cross-product matrix for drug tf-idf. |
A vector of random probabilities for each drug given the gene set size.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.