Store joining rules read from a file and provide access methods.
|
__init__(self,
source)
Read and store joining rules. |
|
|
|
|
|
|
|
explainNe(self,
other)
Explain why two rule sets differ; silent if they do not differ |
|
|
|
readDb(self,
source)
Read a joining-rules table from a DB. |
|
|
|
writeDb(self,
conn,
cur,
dbname='
' )
Write joining-rules tables into a DB with the specified connection
and cursor object |
|
|
|
readFile(self,
fname=None)
Read the rules from a file, or stdin in fname is not specified. |
|
|
|
checkRules(self)
Throw an exception if something is amiss |
|
|
|
writeRules(self,
fname=None,
use_def_names=False)
Write the rules to a file, or to stdout if fname is not specified. |
|
|
|
getDefNamesAll(self)
Return the list of definition names |
|
|
|
getDefByName(self,
name)
Return the SMARTS corresponding to this definition |
|
|
|
getPatternsAll(self)
Return all match patterns that have been defined for any purpose |
|
|
|
getPatternsOk(self)
Return all patterns that have SMARTS joining rules |
|
|
|
getPatternsOkm(self)
Return all patterns that have disfavored SMARTS joining rules |
|
|
|
getRulesOk(self)
Return all SMARTS joining rules allowed by patterns |
|
|
|
getRulesOkm(self)
Return all SMARTS disfavored joining rules allowed by patterns |
|
|
|
getPatternsOblig(self)
Return all patterns that encode obligate attachments |
|
|
|
getOkRule(self,
pattern)
Return allowed SMARTS for the specified pattern |
|
|
|
getOkmRule(self,
pattern)
Return disfavored SMARTS for the specified pattern |
|
|
|
getOblig(self,
pattern)
Return True if pattern has obligate attachment; else False |
|
|
|
getOkPattern(self,
rule)
Return all patterns for which this is an allowed SMARTS rule |
|
|
|
getOkmPattern(self,
rule)
Return all patterns for which this is a disfavored SMARTS rule |
|
|