From MAILER-DAEMON@www.ccl.net  Thu Nov 28 15:49:52 1996
Received: from schiele  for MAILER-DAEMON@www.ccl.net
	by www.ccl.net (8.8.3/950822.1) id PAA13014; Thu, 28 Nov 1996 15:23:27 -0500 (EST)
Received: by schiele (950911.SGI.8.6.12.PATCH825/940406.SGI.AUTO)
	 id VAA18233; Thu, 28 Nov 1996 21:23:10 +0100
From: "Wolf-Dietrich Ihlenfeldt" <wdi@eros.ccc.uni-erlangen.de>
Message-Id: <9611282123.ZM18231@eros.ccc.uni-erlangen.de>
Date: Thu, 28 Nov 1996 21:23:06 +0100
In-Reply-To: iguana@one.net (Ray Crawford)
        "CCL:Formula names from SMILES" (Nov 28, 10:55)
References: <199611281555.KAA08038@one.net>
Reply-To: wdi@eros.ccc.uni-erlangen.de
X-Phones: +49-9131-85-6579
X-Fax: +49-9131-85-6566
X-Mailer: Z-Mail (3.2.2 10apr95 MediaMail)
To: iguana@one.net (Ray Crawford)
Subject: Re: CCL:Formula names from SMILES
Cc: chemistry@www.ccl.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit


On Nov 28, 10:55, Ray Crawford wrote:
> Subject: CCL:Formula names from SMILES
> Howdy!!
>
>         I was wondering if anyone out there knows of a program (or script)
> that converts Daylight SMILES to molecular formulas...  I was getting ready
> to write my own script in PERL but decided to ask before dedicating a few
> hours to the task...

Assuming that your want something like 'C3H8' from SMILES
string 'CCC':

Get the CACTVS tools (http://schiele.organik.uni-erlangen.de/cactvs).
The structure editor (csed) can convert SMILES to structures and
will also display the formula.

For batch processing, write a script for the GUI-less
'tclserver' program in the package:
(reads from stdin, writes to stdout)

#!/usr/local/bin/tclserver
while 1 {
	set smiles [gets]
	if {$smiles==""} exit
	set ehandle [ens create $smiles]
	puts [ens get $ehandle E_FORMULA]
	ens delete $ehandle
}


-- 
Dr. Wolf-D. Ihlenfeldt
Computer Chemistry Center, University of Erlangen-Nuernberg
Naegelsbachstrasse 25, D-91052 Erlangen (Germany)
Tel (+49)-(0)9131-85-6579  Fax (+49)-(0)9131-85-6566
---
The three proven methods for ultimate success and fame:
1) Nakanu nara koroshite shimae hototogisu
2) Nakanu nara nakasete miseyou hototogisu
3) Nakanu nara naku made matou hototogisu

