convMolFormat: Chemical File Formats Conversion

Description Usage Arguments Details Value Note Author(s) Examples

Description

Chemical File Formats Conversion

Usage

1
convMolFormat(infile, outfile, from, to)

Arguments

infile

A character string. Indicating the input file location.

outfile

A character string. Indicating the output file location.

from

The format of infile. A character string supported by OpenBabel. See the note section for the supported formats.

to

The desired format of outfile. A character string supported by OpenBabel. See the note section for the supported formats.

Details

This function converts between various chemical file formats via OpenBabel. The complete supported file format list could be found at http://openbabel.org/docs/dev/FileFormats/Overview.html.

Value

NULL

Note

The supported formats include:

Author(s)

Min-feng Zhu <wind2zhu@163.com>, Nan Xiao <http://r2s.name>

Examples

1
2
3
4
5
6
7
8
9
sdf = system.file('sysdata/OptAA3d.sdf', package = 'BioMedR')
# SDF to SMILES

convMolFormat(infile = sdf, outfile = 'aa.smi',
              from = 'sdf', to = 'smiles')
# SMILES to MOPAC Cartesian format

convMolFormat(infile = 'aa.smi', outfile = 'aa.mop',
              from = 'smiles', to = 'mop')

wind22zhu/BioMedR documentation built on Oct. 21, 2019, 12:51 p.m.