Package chemaxon.sss.screen
Class StrucFPConfig
java.lang.Object
chemaxon.sss.screen.StrucFPConfig
Utility class for assembling and parsing structural FP configurations.
- Since:
- JChem 3.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a configuration string according to the internal values.Gets the Molecule objects for the keysGets the original strings for the keysint
Indicates the number of 32 bit units needed to store the fingerprint.int
Indicates the number of structural keys.boolean
Indicates if molecule strings should be interpreted as SMARTS.void
parseConfig
(String config) Parses a text configuration, and sets internal values accordingly.void
readMolecules
(InputStream input, boolean smartsMode) Read the structures from a stream.void
setMolStrings
(List<String> strings, boolean smartsMode)
-
Constructor Details
-
StrucFPConfig
public StrucFPConfig()
-
-
Method Details
-
getMolecules
Gets the Molecule objects for the keys- Returns:
- an ArrayList containing Molecule objects
-
getMolStrings
Gets the original strings for the keys- Returns:
- an ArrayList containing String objects
-
getSmartsMode
public boolean getSmartsMode()Indicates if molecule strings should be interpreted as SMARTS.- Returns:
true
, if strings should be interpreted as SMARTS.
-
parseConfig
Parses a text configuration, and sets internal values accordingly.- Parameters:
config
- the configuration- Throws:
MolFormatException
- if the importer encounters a problem
-
getConfig
Creates a configuration string according to the internal values.- Returns:
- the configuration string.
-
setMolStrings
- Throws:
MolFormatException
-
readMolecules
Read the structures from a stream.- Parameters:
input
- the input streamsmartsMode
- indicates if the molecule strings should be interpreted as SMARTS.- Throws:
IOException
- if the inputstream encounters a problem
-
getNumberOfKeys
public int getNumberOfKeys()Indicates the number of structural keys.- Returns:
- the number of structural keys
- Since:
- JChem 5.0
-
getNumberOfIntegersNeeded
public int getNumberOfIntegersNeeded()Indicates the number of 32 bit units needed to store the fingerprint.- Returns:
- the number of ints needed to accomodate all keys.
- Since:
- JChem 5.0
-