getDrug: Retrieve Drug Molecules in MOL and SMILES Format from...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/106-getDrug.R

Description

Retrieve Drug Molecules in MOL and SMILES Format from Databases

Usage

1
2
getDrug(id, from = c("pubchem", "chembl", "cas", "kegg", "drugbank"),
  type = c("mol", "smile"), parallel = 5)

Arguments

id

A character vector, as the drug ID(s).

from

The database, one of 'pubchem', 'chembl', 'cas', 'kegg', 'drugbank'.

type

The returned molecule format, mol or smile.

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.

Details

This function retrieves drug molecules in MOL and SMILES format from five databases.

Value

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

Author(s)

Nan Xiao <https://nanx.me>

See Also

See getProt for retrieving protein sequences from three databases.

Examples

1
2
3
id = c('DB00859', 'DB00860')

getDrug(id, 'drugbank', 'smile')

Rcpi documentation built on Nov. 8, 2020, 8:23 p.m.