webSDF: Import sdf string from an online source

View source: R/webSDF.R

webSDFR Documentation

Import sdf string from an online source

Description

The function imports sdf file information from online databases like PubChem and ChemSpider.

NOTE: for the moment it only works for PubChem.

Usage

webSDF(query, origin)

Arguments

query

Introduce the name of the molecule or other string that can be used to identify chemical structures in online databases.

origin

The source where sdf string is exported from (e.g. "pubchem", "chemspider"...).

Details

The function needs a internet connection in order to search the chemical structure. Also needs access to ChemmineR package from BioConductor.

Examples

  SDFset <- webSDF("methotrexate", "pubchem")

gindeanikita/Chem documentation built on May 1, 2022, 5:20 p.m.