Skip to contents

Retrieve Drug Molecules in MOL Format from the DrugBank Database

Usage

getMolFromDrugBank(id, parallel = 5)

Arguments

id

A character vector, as the DrugBank drug ID.

parallel

An integer, the parallel parameter, indicates how many process the user would like to use for retrieving the data (using RCurl), default is 5. For regular cases, we recommend a number less than 20.

Value

A length of id character vector, each element containing the corresponding drug molecule.

Details

This function retrieves drug molecules in MOL format from the DrugBank database.

See also

See getSmiFromDrugBank for retrieving drug molecules in SMILES format from the DrugBank database.

Examples

id = 'DB00859'  # Penicillamine
# \donttest{
getMolFromDrugBank(id)# }
#> [1] "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body>\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>cloudflare</center>\r\n</body>\r\n</html>\r\n"