User dffd8eb48a
06-07-2006 18:21:11
Hi,
I am using the following code to react acid and amine.
I am expecting my amide to have one AND stereo group (from the amine) and one ABS stereo center (from the acid), but I am seeing three ABS stereo centers in the product. If I re-export the racemic reagent as V3 mol file, I see one AND stereo group as expected.
I am very new to JChem (less than a week), so please go slow. Am I missing something?
Thanks,
dak
I am using the following code to react acid and amine.
Reactor r = new Reactor() ;
r.setMappingStyle(1) ;
r.setReactionString(args[0]) ;
MolImporter im = new MolImporter() ;
MolExporter xp = new MolExporter(System.err,"mol:V3ec") ;
Molecule[] reagents = new Molecule[args.length-1] ;
for(int i=1;i<args.length;i++) {
im.setFileName(args) ;
reagents = im.read() ;
}
r.setReactants(reagents) ;
Molecule[] p ;
int k = 0 ;
while( (p = r.react()) != null ) {
++k ;
for(int i=0;i<p.length;i++) {
p.clean(2,null) ;
p.setName(k + "." + i) ;
xp.write(p);
}
}
([C;$(C=O):1][OH][H]).([N;!H0;!$(N[C,S]=O);!$(N[a]);!$(NC=N):3][H])>>([C:1][N:3])
I am expecting my amide to have one AND stereo group (from the amine) and one ABS stereo center (from the acid), but I am seeing three ABS stereo centers in the product. If I re-export the racemic reagent as V3 mol file, I see one AND stereo group as expected.
I am very new to JChem (less than a week), so please go slow. Am I missing something?
Thanks,
dak