User 2938454c70
21-01-2009 09:32:02
I get wierd output where the smiles string has explicit (numbered) hydrogens. I tried running with smiles:-H to no avail. Attached is my input SDF and my output smiles file
User 2938454c70
21-01-2009 09:32:02
ChemAxon 25dcd765a3
21-01-2009 21:41:27
User 2938454c70
22-01-2009 06:50:10
ChemAxon 8b644e6bf4
27-01-2009 15:47:07
Code: |
import chemaxon.formats.MolImporter; import chemaxon.struc.Molecule; import java.io.IOException; /** * Read molecules from System.in, remove atom maps and write the modified * molecules to System.out in SMILES format */ public class ClearMaps { public static void main( String [] args ) throws IOException { MolImporter mi = new MolImporter( System.in ); Molecule m = new Molecule(); while ( mi.read(m) ) { for( int i = 0; i < m.getAtomCount(); i++ ) { m.getAtom(i).setAtomMap(0); } System.out.println( m.toFormat( "smiles" ) ); } } } |
Code: |
$ cat test.smi | java ClearMaps [H]O[C@@]1(C)N([H])C=C2CN=C(C3=CC=CC=C3F)C3=C(C=CC(Cl)=C3)N12 [H]O[C@H]1N=C(C2=CC=CC=C2)C2=C(C=CC(Cl)=C2)N2C(C)=NN=C12 [H]O[C@H]1N=C(C2=C(F)C=CC=C2)C2=C(C=CC(Cl)=C2)N2C(C)=NC=C12 |
Code: |
$ cat test.smi | java ClearMaps | molconvert smiles:-H - C[C@]1(O)NC=C2CN=C(C3=CC=CC=C3F)C3=C(C=CC(Cl)=C3)N12 CC1=NN=C2[C@@H](O)N=C(C3=CC=CC=C3)C3=C(C=CC(Cl)=C3)N12 CC1=NC=C2[C@@H](O)N=C(C3=C(F)C=CC=C3)C3=C(C=CC(Cl)=C3)N12 |
ChemAxon 8b644e6bf4
27-01-2009 16:04:41
ChemAxon d76e6e95eb
27-01-2009 16:14:48
Code: |
standardize input.sdf -c "unmap" -o output.smiles |
User 2938454c70
28-01-2009 11:14:55
ChemAxon d76e6e95eb
28-01-2009 11:45:43