This vignette demonstrates how to query each database module in the UniTCM platform.
UniTCM IDs are flexible: all get_* and
export_* functions accept either the prefixed display form
shown on the website (e.g. "UNITCM_H001",
"UNITCM_I00001") or the bare numeric ID
(e.g. "1", 1L). The package normalizes them
internally before calling the API.
# Full compound record
compound <- get_compound("UNITCM_I00001")
compound$component_name
compound$xref$pubchem_cid
# ADMET predictions (~90 endpoints)
admet <- get_compound_admet("UNITCM_I00001")
admet$caco2_permeability
admet$hia
# Predicted targets (DrugCLIP deep learning)
targets_dc <- get_compound_targets("UNITCM_I00001", method = "drugclip")
# ChEMBL similarity-based targets
targets_ch <- get_compound_targets("UNITCM_I00001", method = "chembl")
# Both sources combined
targets_all <- get_compound_targets("UNITCM_I00001", method = "both")
table(targets_all$source)# Search by text
formulas <- search_formulas(q = "insomnia")
# Filter by ICD-11 classification
formulas <- search_formulas(
level1 = "Neoplasms",
mapping_confidence = c("high", "medium")
)
# Browse the disease classification tree
tree <- fetch_disease_tree()
# Available filter options
list_book_sources()
list_origin_sources()
list_dosage_forms()