View source: R/alternative_models.R
anc_model | R Documentation |
This function implements an improved ANC model that ensures only biomedical terms are used as intermediaries.
anc_model(
co_matrix,
a_term,
n_b_terms = 3,
c_type = NULL,
min_score = 0.1,
n_results = 100,
enforce_biomedical_terms = TRUE,
b_term_types = c("protein", "gene", "chemical", "pathway", "drug", "disease",
"biological_process"),
validation_function = is_valid_biomedical_entity
)
co_matrix |
A co-occurrence matrix produced by create_cooccurrence_matrix(). |
a_term |
Character string, the source term (A). |
n_b_terms |
Number of intermediate B terms to consider. |
c_type |
Character string, the entity type for C terms. If NULL, all types are considered. |
min_score |
Minimum score threshold for results. |
n_results |
Maximum number of results to return. |
enforce_biomedical_terms |
Logical. If TRUE, enforces strict biomedical term filtering. |
b_term_types |
Character vector of entity types allowed for B terms. |
validation_function |
Function to validate biomedical terms. |
A data frame with ranked discovery results.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.