Hi All,
I'm try to write ringSets to a SD-file.
Strangly enough I can write them to a molfile using MDLWriter but when I
write them to a SD-file using the SDFWriter I'm getting this error:
Only supported is writing of ChemFile, MoleculeSet, AtomContainer and
Molecule objects.
I'm using this code:
MDLWriter mwrings = new MDLWriter(new FileWriter(this.outputDir +
\\allRings.sdf"));
List <IRingSet> rings = gf.getRingFragments();
for (int i =0;i<rings.size();i++){
IAtomContainer ringw =
RingPartitioner.convertToAtomContainer(rings.get(i));
mwrings.write(ringw);
}
Is this a BUG or am I doing something wrong here?
Thanks,
Peter
------------------------------------------------------
Specs
Kluyverweg 6
2629 HT DELFT
The Netherlands
p +31 15 2518111 (office)
p +31 15 2518139 (direct)
f +31 15 2518181
[email protected]
www.specs.net
------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user