powered by
Joins cross-domain PubChem tables into a single analysis-ready tibble using configurable key mappings and join type.
pc_cross_domain_join( compounds, substances = NULL, assays = NULL, targets = NULL, by = list(compound_substance = "CID", compound_assay = "CID", assay_target = "AID"), join = c("left", "inner", "full") )
A joined tibble suitable for downstream analysis workflows.
Base compound table.
Optional substance table.
Optional assay table.
Optional target table.
Named list of join keys for each join edge.
Join type (`"left"`, `"inner"`, `"full"`).
Join steps are applied in order: compounds-substances, compounds-assays, then assays-targets when corresponding tables are supplied.
compounds <- tibble::tibble(CID = c("1", "2"), MW = c(100, 200)) assays <- tibble::tibble(CID = c("1", "2"), AID = c("10", "11")) pc_cross_domain_join(compounds, assays = assays)
Run the code above in your browser using DataLab