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
)A data frame with ranked discovery results.
A co-occurrence matrix produced by create_cooccurrence_matrix().
Character string, the source term (A).
Number of intermediate B terms to consider.
Character string, the entity type for C terms. If NULL, all types are considered.
Minimum score threshold for results.
Maximum number of results to return.
Logical. If TRUE, enforces strict biomedical term filtering.
Character vector of entity types allowed for B terms.
Function to validate biomedical terms.