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)

Nan Xiao <https://nanx.me>

Examples

1
2
3
4
5
6
7
8
9
sdf = system.file('sysdata/OptAA3d.sdf', package = 'Rcpi')
# 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')

Example output

OpenJDK 64-Bit Server VM warning: Can't detect primordial thread stack location - find_vma failed

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