This function downloads chemical compound structures from PubChem database using their CIDs.
Usage
download_ligand(cids, output_dir = "ligands", verify_ssl = TRUE)
Arguments
- cids
Character vector of PubChem Compound IDs (CIDs) to download
- output_dir
Character, output directory for downloaded files, default "ligands"
- verify_ssl
Logical, whether to verify SSL certificates, default TRUE
Value
List of successfully downloaded file paths
Examples
if (FALSE) { # \dontrun{
files <- download_ligand(c("2244", "5090"), output_dir = "compounds")
} # }