Professional Documents
Culture Documents
2009-04-20
Booting Groovy
groovyConsole
Printed
Keyword List
Links
http://pele.farmbio.uu.se/groovy/
http://pele.farmbio.uu.se/nightly-1.2.x/
http://delicious.com/tag/cdkws2009+groovy+cdk
Intro
import org.openscience.cdk.*
import org.openscience.cdk.io.*
import org.openscience.cdk.nonotify.*
cid = 5282253
reader = new PCCompoundXMLReader(
new URL(
"http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=\$cid&disopt=SaveXML"
).newInputStream()
)
mol = reader.read(new Molecule())
println "Atom count: \$mol.atomCount"