getDrugStructure: Get drug chemical structure diagram data

Description Usage Arguments Details Value Author(s) Examples

View source: R/getDrugStructure.R

Description

'getDrugStructure()' outputs the chemical structure graph data of the drug or compound based on the input drug label by the user. The results can be visualized by the 'plot' function.

Usage

1
getDrugStructure(drug.label = "", main = "", sub = "")

Arguments

drug.label

A character string of drug label to determine which drug to use for visualization.

main

An overall title for the chemical structure graph.

sub

A sub title for the chemical structure graph.

Details

getDrugStructure

Value

A sdfset object.

Author(s)

Xudong Han, Junwei Han, Chonghui Liu

Examples

1
2
3
4
5
require(rvest)
require(ChemmineR)
# Plot the chemical structure of drug pirenperone.
# Chem_str<-getDrugStructure(drug.label="pirenperone.")
# plot(Chem_str)

SubtypeDrug documentation built on May 17, 2021, 9:09 a.m.