The Target2NP module provides access to a large-scale compound–target interaction database covering multiple experimental sources (BindingDB, HERB2, NPASS, BATMAN, etc.) as well as computational predictions from DrugCLIP (deep learning) and SEA (ChEMBL similarity). This vignette walks through the main workflows.
Look up interactions for multiple genes in one call (up to 50 identifiers):
The target2np_multi_source_summary() function queries
experimental records, DrugCLIP, and SEA for the same term and returns an
integrated overview: source counts, overlap statistics, confidence
distributions, and cross-validated compound–target pairs.
summary <- target2np_multi_source_summary(
search = "TP53",
search_field = "gene_symbol"
)
# How many results per source?
summary$source_counts
# Target overlap across data sources
summary$target_overlap
# Confidence-level distribution for each source
summary$confidence_distribution
# Compound-target pairs found in >= 2 sources
summary$cross_validated
# Natural-language interpretation
cat(summary$suggestion_text)The aggregated view groups experimental interaction records by compound–target pair (InChIKey + UniProt ID) and returns pairs supported by multiple source databases. This is useful for identifying well-evidenced interactions.
A common workflow is to start with a compound of interest, query all three data sources, and use cross-validation to prioritise targets.
# 1. Check experimental evidence
exp <- search_target2np(
search = "quercetin",
search_field = "compound_name",
search_mode = "fuzzy",
all_pages = TRUE
)
nrow(exp)
# 2. Get multi-source summary in one call
ms <- target2np_multi_source_summary(
search = "quercetin",
search_field = "compound_name",
search_mode = "fuzzy"
)
ms$source_counts
ms$cross_validated
# 3. Batch-check the top cross-validated targets
top_genes <- unique(vapply(
ms$cross_validated, `[[`, character(1), "gene_symbol"
))
if (length(top_genes) > 0) {
batch_detail <- batch_target2np(top_genes)
batch_detail
}