コード例 #1
0
ファイル: BuildComposite.py プロジェクト: mivicms/clusfps
def SetDefaults(runDetails=None):
    """  initializes a details object with default values

      **Arguments**

        - details:  (optional) a _CompositeRun.CompositeRun_ object.
          If this is not provided, the global _runDetails will be used.

      **Returns**

        the initialized _CompositeRun_ object.


  """
    if runDetails is None: runDetails = _runDetails
    return CompositeRun.SetDefaults(runDetails)
コード例 #2
0
ファイル: EnrichPlot.py プロジェクト: sb123456789sb/rdkit

if __name__ == '__main__':
    import getopt
    try:
        args, extras = getopt.getopt(
            sys.argv[1:], 'd:t:a:N:p:cSTHF:v:',
            ('thresh=', 'plotFile=', 'showPlot', 'pickleCol=', 'OOB', 'noSort',
             'pickBase=', 'doROC', 'rocThresh=', 'enrich='))
    except Exception:
        import traceback
        traceback.print_exc()
        Usage()

    details = CompositeRun.CompositeRun()
    CompositeRun.SetDefaults(details)

    details.activeTgt = [1]
    details.doTraining = 0
    details.doHoldout = 0
    details.dbTableName = ''
    details.plotFile = ''
    details.showPlot = 0
    details.pickleCol = -1
    details.errorEstimate = 0
    details.sortIt = 1
    details.pickBase = ''
    details.doROC = 0
    details.rocThresh = -1
    for arg, val in args:
        if arg == '-d':