// ############################## START FUNC ############################################ // This function remove missed ring duplicates and fat_group multiplicates dependent of // several end points. Halogens are also set. It would be a pity to have the feature routine // handling that. Double- or triplebonds which are not cis- or trans- are set here. function complete(sumstring, atom_sorts, d_conn, x, y, z, arom_atoms) { var number_of_atoms=atom_sorts.length; var au=sumstring.split("#"); var saml=""; var prefix=""; var sx=0; var sy=0; var sz=0; var n=0; var m=0; var r_matrix=new Array(0); // Later 2 dimension var xl=0; var yl=0; var zl=0; var dist=0; // Remove duplicates for(n=0;n-1) prefix=" =C= "; if(d_conn[n].indexOf("d")>-1) prefix=" double_bond "; if(d_conn[n].indexOf("t")>-1) prefix=" triple_bond "; if(prefix!=" =C= "){ if(d_conn[opp].indexOf("s")>-1) continue; // =C= are set at the central carbon if(n