|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnet.sf.ciccgrid.pws.Structure
public class Structure
Methods to get various aspects of PubChem structures.
| Constructor Summary | |
|---|---|
Structure()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getCIDByInChI(java.lang.String inchi)
Get CID by InChI. |
java.lang.String |
getCIDByInChIKey(java.lang.String inchikey)
Get CID by InChI key. |
java.lang.String[] |
getCIDBySimilarity(java.lang.String smiles,
double sim,
int howMany,
int speedup)
Find compounds that are similar to the supplied molecule. |
java.lang.String[] |
getSmilesByCID(java.lang.String[] cids)
Get the SMILES corresponding to a compound ID. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Structure()
throws java.sql.SQLException,
java.lang.ClassNotFoundException
java.sql.SQLException
java.lang.ClassNotFoundException| Method Detail |
|---|
public java.lang.String[] getSmilesByCID(java.lang.String[] cids)
throws java.lang.Exception
cids - An array of strings representing the compound ID's for which the SMILES are desired
java.lang.Exception
public java.lang.String getCIDByInChI(java.lang.String inchi)
throws java.lang.Exception
inchi - The InChI string
java.lang.Exception
public java.lang.String getCIDByInChIKey(java.lang.String inchikey)
throws java.lang.Exception
inchikey - The InChI key string
java.lang.Exception
public java.lang.String[] getCIDBySimilarity(java.lang.String smiles,
double sim,
int howMany,
int speedup)
throws java.lang.Exception
smiles - The target SMILESsim - The Tanimoto similarity cutoff (between 0 and 1)howMany - How many should be returned? A negative number will return everything (which may be
a huge number and will take a very long time)speedup - If set to 0 then the speedup described by Swamidass & Baldi will not be employed. If
any other value it will be employed. Note that the speedup is only relevant for relatively
high similarity values and ends up being equivalent to linear search for low similarity values.
For now this is ignored
java.lang.Exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||