Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 734 Bytes

FromSMILES.code.md

File metadata and controls

29 lines (26 loc) · 734 Bytes

FromSMILES.groovy

Source code

The source code may use or refer to content in a local workspace. This Bioclipse workspace used can be found on GitHub.

Bioclipse 2.6

mol = cdk.fromSMILES("COC")
println mol

Bacting

To run this code, you first need to install Bacting (Groovy) or pyBacting (Python).

@Grab(group='io.github.egonw.bacting', module='managers-cdk', version='0.1.2')

workspaceRoot = "../ws"
cdk = new net.bioclipse.managers.CDKManager(workspaceRoot);

mol = cdk.fromSMILES("COC")
println mol

Output

CDKMolecule:C2H6O