This file contains 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
/******************************************************************************* | |
* Script to predict the susceptibility of an HIV protease sequence for seven | |
* drugs based on the proteochemometric model described in: | |
* Lapins M, Eklund M, Spjuth O, Prusis P, Wikberg JE. | |
* Proteochemometric modeling of HIV protease susceptibility, | |
* BMC Bioinformatics. 2008 Apr 10;9:181. . | |
* | |
* Script accepts a 99 aa sequence as input and delivers susceptbiliy values | |
* for the drugs Amprenavir, Atazanavir, Indinavir, Lopinavir, Nelfinavir, | |
* Ritonavir, and Saquinavir. |
This file contains 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
//Download PDB | |
res=ws.downloadPDBAsFile("1d66") | |
ui.open(res) | |
//Do some jmol visualization | |
jmol.run("move 0 0 90 00 0 0 0 0 1;set selectionhalos off; select all; spacefill 0; cartoon on;") | |
jmol.run("select nucleic; isosurface dna1 solvent; delay 1; color isosurface red;"); | |
jmol.run("delay 1; color isosurface blue; delay 1; color isosurface translucent; move 0 360 90 90 0 0 0 0 4;"); |
This file contains 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
/******************************************************************************* | |
* Bioclipse-script to calculate a list of descriptors for a list of molecules. | |
* This script does not support parameters to descriptors and requires the | |
* Chemoinformatics and QSAR features to be installed. | |
* | |
* Author: Ola Spjuth | |
* | |
******************************************************************************/ | |
//Set up list of descriptors |
This file contains 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
/******************************************************************************* | |
* Bioclipse script to calculate 2 descriptors for a molecule. | |
* Requires the Chemoinformatics and QSAR features to be installed. | |
* | |
* Author: Ola Spjuth | |
* | |
******************************************************************************/ | |
mol=cdk.fromSMILES("C1CNCCC1CC(COC)CCNC"); | |
descid="http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#bpol"; | |
descid2="http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#hBondDonors"; |
This file contains 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
/******************************************************************************* | |
* Bioclipse-script to generate different coordinates on a list of molecules. | |
* Author: Ola Spjuth | |
******************************************************************************/ | |
//Create list of molecules | |
mols=cdk.createMoleculeList(); | |
mols.add(cdk.fromSMILES("CCC")); | |
mols.add(cdk.fromSMILES("CCCNCC")); | |
mols.add(cdk.fromSMILES("CCNCCOC(C)CC")); |
This file contains 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
//Download PDB via Web service at EBI and open in Jmol | |
res=ws.queryPDB("1d66") | |
ui.openFiles(res) | |
//Execute some jmol script commands | |
jmol.run("select all; spacefill 0; wireframe off; cartoon on;select none") | |
jmol.run("select !dna; isosurface solvent; select none; color isosurface blue") | |
jmol.spinOn() |
This file contains 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 of multiple molecules in Bioclipse | |
//Requires sample data installed in default location | |
mols=cdk.loadMolecules("/Sample Data/SDF/Fragments2.sdf") | |
mols.size() | |
mol=mols.get(3) | |
cdk.calculateSMILES(mols.get(4)) | |
ui.open(mols) |
This file contains 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
/******************************************************************************* | |
* Bioclipse-script to iteratively build a molecule in JChemPaint | |
* Author: Ola Spjuth | |
******************************************************************************/ | |
//Start with a carbon and open in JCP | |
mol=cdk.fromSMILES("C") | |
mol2=cdk.generate2dCoordinates(mol) | |
ui.open(mol2) |
This file contains 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
/******************************************************************************* | |
* Bioclipse-script to iteratively build a molecule in JChemPaint | |
* Author: Ola Spjuth | |
* Author: Egon Willighagen | |
******************************************************************************/ | |
//Start with a carbon and open in JCP | |
mol=cdk.fromSMILES("C") | |
mol2=cdk.generate2dCoordinates(mol) | |
ui.open(mol2) |
This file contains 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
/******************************************************************************* | |
* Script to predict the susceptibility of an HIV protease sequence for seven | |
* drugs based on the proteochemometric model described in: | |
* Lapins M, Eklund M, Spjuth O, Prusis P, Wikberg JE. | |
* Proteochemometric modeling of HIV protease susceptibility, | |
* BMC Bioinformatics. 2008 Apr 10;9:181. . | |
* | |
* Script accepts a 99 aa sequence as input and delivers susceptbiliy values | |
* for the drugs Amprenavir, Atazanavir, Indinavir, Lopinavir, Nelfinavir, | |
* Ritonavir, and Saquinavir. |
OlderNewer