- RandomAccessMDLReader reader = new RandomAccessMDLReader(new File("compounds.sdf"));
- EncodingFingerprint fingerprinter = new Encoding2DMolprint();
- Molecule molecule = reader.getMol(0);
- FeatureMap fingerprints = new FeatureMap(fingerprinter.getFingerprint(molecule));
- for (IFeature fingerprint : fingerprints.getKeySet()) {
- System.out.println(fingerprint.featureToString());
- }