JSDraw2.Table - Chemistry Spreadsheet with Name2Structure

JSDraw Web Services are needed to get this work.

Source Code:
    dojo.addOnLoad(function () {
        var jss = new JSDraw2.Table("",
            { searchable: true, columns: [
                { key: 'compid', caption: 'Comp ID', width: 120 },
                { key: 'compstructure', caption: 'Comp Structure', type: 'compstructure', width: 200 },
                { key: 'mf', caption: 'MF', type: 'mf' },
                { key: 'mw', caption: 'MW', type: 'mw' },
                { key: 'ic50', caption: 'IC50', type: 'float' },
                { key: 'note', caption: 'Note', width: 300 }
                ]
            }, "Div1");
    });
This example demonistrate how to convert text into structures.  To try it:
1). add a row
2). type a compound name (trade name, chemical name, cas, SMILES etc.) in Comp ID cell. e.g. Gleevec, 137862-53-4, c1ccccc1
3). compound structure will be automatically populated using JSDraw Web Services
4). MW and MF will be automatically calculated




Copyright 2014, Scilligence (http://www.scilligence.com/)