This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Demonstrates how to convert a CDKReactionScheme to ISpectrum | |
reactionScheme = reaction.loadReactionScheme("Sample Data/Reactions/reactionList.1.cml"); | |
cmlSpectrum = medea.convertToSpectrum(reactionScheme) | |
spectrum.saveSpectrum(cmlSpectrum,"Virtual/spectrum.cml","cml") | |
ui.open("/Virtual/spectrum.cml"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Demonstrates how to convert a CDKReactionScheme to ISpectrum | |
reactionScheme = reaction.loadReactionScheme("Sample Data/Reactions/reactionList.1.cml"); | |
cmlSpectrum = medea.convertToSpectrum(reactionScheme) | |
spectrum.saveSpectrum(cmlSpectrum,"Virtual/spectrum.cml","cml") | |
ui.open("/Virtual/spectrum.cml"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Demonstrates basic manipulation to predict a EI-MS in Bioclipse | |
//Requires medea data installed in default location | |
mol = cdk.loadMolecule("/Sample Data/Molecules/30460-92-5-2d.mol"); | |
mol = cdk.generate2dCoordinates(mol); | |
ui.open(mol); | |
cmlSpectrum = medea.predictMassSpectrum(mol) | |
spectrum.saveSpectrum(cmlSpectrum,"Virtual/predictedSpectrum.cml","cml") | |
ui.open("/Virtual/predictedSpectrum.cml"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Demonstrates basic manipulation to predict a EI-MS in Bioclipse using | |
//a sdf file containing a list of molecule. | |
//Requires medea data installed in default location | |
var mols = cdk.loadMolecules("/Sample Data/SDFfiles/CAS.5.sdf"); | |
for (var i = 0; i < mols.size(); i++) { | |
var mol = mols.get(i); | |
mol = cdk.generate2dCoordinates(mol); | |
ui.open(mol); | |
cmlSpectrum = medea.predictMassSpectrum(mol) |