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
// downloading as IMolecule or List<IMolecule> | |
mol = pubchem.download(176) | |
mols = pubchem.download(pubchem.search("HIV")) | |
// download as String | |
mol = cdk.fromString(pubchem.downloadAsString(176)) |
The search allows using PubChem Filters which provides many simple means to restrict the search results. For example, we can search molecules and restrict on the molecular weight:
lists = pubchem.download(pubchem.search("malaria 300:500[MW]"))Other filters you can use in pubchem.search (provided by PubChem itself), includes (with examples):
- [el]: pubchem.search("Au[el]")
- [inchi]: pubchem.search("\"InChI=1S/CH4/h1H4\"[inchi]")
- [inchikey]: pubchem.search("VNWKTOKETHGBQD-UHFFFAOYSA-N[inchikey]")
- [mimass]: pubchem.search("375.9785:375.9786[mimass]")
Now, you surely want to look at the hits, for which we use the molecular table editor:
list = pubchem.download(pubchem.search("375.9785:375.9786[mimass]"))Resulting in:
cdk.saveSDFile("/Virtual/hits.sdf", list)
ui.open("/Virtual/hits.sdf")

No comments:
Post a Comment