Next-Generation Organic Chemistry Toolkit from SciTouch LLC
The following items are included:
cano.net.dll — .Net 2.0 assemblycano.dll — C++ library exposing C interface
cano.dll is offered in 32-bit and 64-bit versions. Depending on the architecture, proper DLLs are loaded automatically from lib32 or lib64 directories. Path to those directories may be set up when creating a library instance.
Cano class has only static methods.
String getVersion ()
Returns the version of the library.
String getCanonicalSmiles (String molecule, String options)
Computes the canonical SMILES of the given molecule with given options. The molecule is SMILES or MDL (Symyx) Molfile (the format is detected automatically). The options string can contain space-separated words AROMATICITY, TETRAHEDRAL, and CISTRANS, each preceded with plus or minus sign. You can pass null in place of options string. The default option is all options on: +AROMATICITY, +TETRAHEDRAL, and +CISTRANS.
When something goes wrong, Cano throws CanoException (which inherits the system Exception class). The Message field normally contains the error information passed by the underlying C++ library.
try
{
System.Console.WriteLine(Cano.getVersion());
System.Console.WriteLine(Cano.getCanonicalSmiles("C1C=CC=CC=1", null));
System.Console.WriteLine(Cano.getCanonicalSmiles("C1C=CC=CC=1", "-AROMATICITY"));
}
catch (Exception ex)
{
System.Console.WriteLine(ex.Message);
}