Skip to content

Instantly share code, notes, and snippets.

@mojaie
Last active December 10, 2015 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mojaie/4357550 to your computer and use it in GitHub Desktop.
Save mojaie/4357550 to your computer and use it in GitHub Desktop.
Reader reader = null;
try {
reader = new FileReader(new File("./temp/test/zinc_3929508.sdf"));
} catch (FileNotFoundException e) {
e.printStackTrace();
}
MDLV2000Reader mdl = new MDLV2000Reader(reader);
IMolecule molecule = null;
try {
molecule = (IMolecule)mdl.read(new Molecule());
} catch (CDKException e) {
e.printStackTrace();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment