public class GsSearch extends Object implements Serializable
Constructor and Description |
---|
GsSearch(String sma)
This constructor is initialized with the query structure represented as SMARTS string.
|
Modifier and Type | Method and Description |
---|---|
int |
countMatches(Molecule mol)
Count the matches for the input molecule,
|
int |
countMatches(Molecule mol,
int max)
Count the matches for the input molecule, with a limited search
|
boolean |
matches(Molecule mol)
This method returns true if the query structure(s) match the target given in the
|
public GsSearch(String sma)
sma
- the query SMARTSpublic boolean matches(Molecule mol)
mol
- the target moleculepublic int countMatches(Molecule mol)
mol
- the input moleculepublic int countMatches(Molecule mol, int max)
mol
- the input moleculemax
- the limit for the search