Description Usage Arguments Value
This function computes the cosine similarity between the set of randomized gene sets and the pathway tf-idf matrix. It calls the cosine_similarity function and returns the probability of a given cosine similarity being random.
1 2 | random_probability(similarity_results, gene_set, fthr, pthr, num_sets,
target_tfidf, tfidf_crossprod)
|
similarity_results |
Vector of cosine similarities |
gene_set |
Query gene set |
fthr |
Fold-change threshold for differential expression |
pthr |
P-value threshold for differential expression |
num_sets |
Number of random sets to generate |
target_tfidf |
Pathway tf-idf matrix. |
tfidf_crossprod |
Cross-product vector for pathway tf-idf. |
A vector of random probabilities for each pathway given the gene set size.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.