Beispiel #1
0
    apply(DownloadSaveDir_5.inputPortByName['url'].configure, (),
          {'defaultValue': None})
    DownloadSaveDir_5.inputPortByName['url'].rebindWidget()
    DownloadSaveDir_5.inputPortByName['url'].widget.set(r"", run=False)
    DownloadSaveDir_5.inputPortByName['url'].unbindWidget()
    apply(DownloadSaveDir_5.configure, (), {'paramPanelImmediate': 1})
except:
    print "WARNING: failed to restore DownloadSaveDirNode named DownloadSaveDir in network masterNet"
    print_exc()
    DownloadSaveDir_5 = None

try:
    ## saving node Output Directory Browser ##
    from Vision.StandardNodes import DirBrowserNE
    Output_Directory_Browser_6 = DirBrowserNE(constrkw={},
                                              name='Output Directory Browser',
                                              library=stdlib)
    masterNet.addNode(Output_Directory_Browser_6, 456, 245)
    Output_Directory_Browser_6.inputPortByName['directory'].widget.set(
        r"AutoDockSL_0.1_output", run=False)
    apply(Output_Directory_Browser_6.configure, (), {'paramPanelImmediate': 1})
except:
    print "WARNING: failed to restore DirBrowserNE named Output Directory Browser in network masterNet"
    print_exc()
    Output_Directory_Browser_6 = None

try:
    ## saving node GetMainURLFromList ##
    from WebServices.VisionInterface.WSNodes import GetMainURLFromListNode
    GetMainURLFromList_7 = GetMainURLFromListNode(constrkw={},
                                                  name='GetMainURLFromList',
try:
    ## saving node RMSD ##
    from Vision.StandardNodes import EntryNE
    RMSD_9 = EntryNE(constrkw={}, name='RMSD', library=stdlib)
    masterNet.addNode(RMSD_9,772,46)
    RMSD_9.inputPortByName['entry'].widget.set(r"0.08", run=False)
    apply(RMSD_9.configure, (), {'paramPanelImmediate': 1})
except:
    print "WARNING: failed to restore EntryNE named RMSD in network masterNet"
    print_exc()
    RMSD_9=None

try:
    ## saving node OutputDirectory ##
    from Vision.StandardNodes import DirBrowserNE
    OutputDirectory_10 = DirBrowserNE(constrkw={}, name='OutputDirectory', library=stdlib)
    masterNet.addNode(OutputDirectory_10,1025,38)
    OutputDirectory_10.inputPortByName['directory'].widget.set(r"GROMOSClustering_0.1_output", run=False)
    apply(OutputDirectory_10.configure, (), {'paramPanelImmediate': 1})
except:
    print "WARNING: failed to restore DirBrowserNE named OutputDirectory in network masterNet"
    print_exc()
    OutputDirectory_10=None

try:
    ## saving node DPFTemplateBrowser ##
    from Adt.Input.DPFTemplateBrowser import DPFTemplateBrowser
    DPFTemplateBrowser_11 = DPFTemplateBrowser(constrkw={}, name='DPFTemplateBrowser', library=Adt)
    masterNet.addNode(DPFTemplateBrowser_11,633,265)
    DPFTemplateBrowser_11.inputPortByName['dpf_template_file'].widget.set(r"GROMOSClustering_0.1_input/2HTY_A.dpf", run=False)
    apply(DPFTemplateBrowser_11.configure, (), {'paramPanelImmediate': 1})
from Pmv.VisionInterface.PmvNodes import pmvlib
from Vision.StandardNodes import stdlib
try:
    masterNet
except (NameError, AttributeError): # we run the network outside Vision
    from NetworkEditor.net import Network
    masterNet = Network()

masterNet.getEditor().addLibraryInstance(pmvlib,"Pmv.VisionInterface.PmvNodes", "pmvlib")

masterNet.getEditor().addLibraryInstance(stdlib,"Vision.StandardNodes", "stdlib")

try:
    ## saving node AutoDock VS Result Directory ##
    from Vision.StandardNodes import DirBrowserNE
    AutoDock_VS_Result_Directory_28 = DirBrowserNE(constrkw={}, name='AutoDock VS Result Directory', library=stdlib)
    masterNet.addNode(AutoDock_VS_Result_Directory_28,47,27)
    AutoDock_VS_Result_Directory_28.inputPortByName['directory'].widget.set(r"visualization_0.1.1_input", run=False)
    apply(AutoDock_VS_Result_Directory_28.configure, (), {'paramPanelImmediate': 1})
except:
    print "WARNING: failed to restore DirBrowserNE named AutoDock VS Result Directory in network masterNet"
    print_exc()
    AutoDock_VS_Result_Directory_28=None

try:
    ## saving node GetReceptors ##
    from Vision.StandardNodes import Generic
    GetReceptors_29 = Generic(constrkw={}, name='GetReceptors', library=stdlib)
    masterNet.addNode(GetReceptors_29,47,123)
    apply(GetReceptors_29.addInputPort, (), {'singleConnection': True, 'name': 'dir', 'cast': True, 'datatype': 'string', 'defaultValue': None, 'required': True, 'height': 8, 'width': 12, 'shape': 'oval', 'color': 'white', 'originalDatatype': 'None'})
    apply(GetReceptors_29.addOutputPort, (), {'name': 'receptors', 'datatype': 'list', 'height': 12, 'width': 12, 'shape': 'oval', 'color': 'cyan'})
masterNet.getEditor().addLibraryInstance(Adt,"AutoDockTools.VisionInterface.Adt", "Adt")

masterNet.getEditor().addLibraryInstance(wslib,"WebServices.VisionInterface.WSNodes", "wslib")

masterNet.getEditor().addLibraryInstance(stdlib,"Vision.StandardNodes", "stdlib")

from WebServices.VisionInterface.WSNodes import addOpalServerAsCategory
try:
    addOpalServerAsCategory("http://kryptonite.nbcr.net/opal2", replace=False)
except:
    pass
try:
    ## saving node Directory_Containing_Input_PDB_Files ##
    from Vision.StandardNodes import DirBrowserNE
    Directory_Containing_Input_PDB_Files_0 = DirBrowserNE(constrkw={}, name='Directory_Containing_Input_PDB_Files', library=stdlib)
    masterNet.addNode(Directory_Containing_Input_PDB_Files_0,45,40)
    Directory_Containing_Input_PDB_Files_0.inputPortByName['directory'].widget.set(r"TrajQRClustering_0.1_input", run=False)
    apply(Directory_Containing_Input_PDB_Files_0.configure, (), {'paramPanelImmediate': 1})
except:
    print "WARNING: failed to restore DirBrowserNE named Directory_Containing_Input_PDB_Files in network masterNet"
    print_exc()
    Directory_Containing_Input_PDB_Files_0=None

try:
    ## saving node RMSD ##
    from Vision.StandardNodes import EntryNE
    RMSD_1 = EntryNE(constrkw={}, name='RMSD', library=stdlib)
    masterNet.addNode(RMSD_1,379,44)
    RMSD_1.inputPortByName['entry'].widget.set(r"0.5", run=False)
    apply(RMSD_1.configure, (), {'paramPanelImmediate': 1})
Beispiel #5
0
    LocalLigandDirectory_42.outputPorts[1].configure(datatype='string')
    ## configure MacroNode output ports
    LocalLigandDirectory_42.shrink()
    apply(LocalLigandDirectory_42.configure, (), {
        'paramPanelImmediate': 1,
        'expanded': False
    })
except:
    print "WARNING: failed to restore LocalLigandDirectory named LocalLigandDirectory in network masterNet"
    print_exc()
    LocalLigandDirectory_42 = None

try:
    ## saving node Local Ligand Directory Browser ##
    from Vision.StandardNodes import DirBrowserNE
    Local_Ligand_Directory_Browser_52 = DirBrowserNE(
        constrkw={}, name='Local Ligand Directory Browser', library=stdlib)
    masterNet.addNode(Local_Ligand_Directory_Browser_52, 704, 28)
    Local_Ligand_Directory_Browser_52.inputPortByName['directory'].widget.set(
        r"AutoDockVSlocal_0.1_input/ligands", run=False)
    apply(Local_Ligand_Directory_Browser_52.configure, (),
          {'paramPanelImmediate': 1})
except:
    print "WARNING: failed to restore DirBrowserNE named Local Ligand Directory Browser in network masterNet"
    print_exc()
    Local_Ligand_Directory_Browser_52 = None

try:
    ## saving node Output Directory Browser ##
    from Vision.StandardNodes import DirBrowserNE
    Output_Directory_Browser_53 = DirBrowserNE(constrkw={},
                                               name='Output Directory Browser',
    apply(DownloadSaveDir_26.inputPortByName['url'].configure, (),
          {'defaultValue': None})
    DownloadSaveDir_26.inputPortByName['url'].rebindWidget()
    DownloadSaveDir_26.inputPortByName['url'].widget.set(r"", run=False)
    DownloadSaveDir_26.inputPortByName['url'].unbindWidget()
    apply(DownloadSaveDir_26.configure, (), {'paramPanelImmediate': 1})
except:
    print "WARNING: failed to restore DownloadSaveDirNode named DownloadSaveDir in network masterNet"
    print_exc()
    DownloadSaveDir_26 = None

try:
    ## saving node Output_Directory ##
    from Vision.StandardNodes import DirBrowserNE
    Output_Directory_27 = DirBrowserNE(constrkw={},
                                       name='Output_Directory',
                                       library=stdlib)
    masterNet.addNode(Output_Directory_27, 495, 256)
    Output_Directory_27.inputPortByName['directory'].widget.set(
        r"VinaVSlocal_0.1_output", run=False)
    apply(Output_Directory_27.configure, (), {'paramPanelImmediate': 1})
except:
    print "WARNING: failed to restore DirBrowserNE named Output_Directory in network masterNet"
    print_exc()
    Output_Directory_27 = None

try:
    ## saving node LocalLigandDirectory ##
    from Adt.Input.LocalLigandDirectory import LocalLigandDirectory
    LocalLigandDirectory_28 = LocalLigandDirectory(constrkw={},
                                                   name='LocalLigandDirectory',
Beispiel #7
0
"""
    GetOrdering_88.configure(function=code)
    apply(GetOrdering_88.configure, (), {
        'paramPanelImmediate': 1,
        'expanded': False
    })
except:
    print "WARNING: failed to restore Generic named GetOrdering in network masterNet"
    print_exc()
    GetOrdering_88 = None

try:
    ## saving node Input Directory Browser ##
    from Vision.StandardNodes import DirBrowserNE
    Input_Directory_Browser_89 = DirBrowserNE(constrkw={},
                                              name='Input Directory Browser',
                                              library=stdlib)
    masterNet.addNode(Input_Directory_Browser_89, 375, 8)
    Input_Directory_Browser_89.inputPortByName['directory'].widget.set(
        r"NAMDNBCR_0.1_input", run=False)
    apply(Input_Directory_Browser_89.configure, (), {'paramPanelImmediate': 1})
except:
    print "WARNING: failed to restore DirBrowserNE named Input Directory Browser in network masterNet"
    print_exc()
    Input_Directory_Browser_89 = None

try:
    ## saving node NumProcessors ##
    from Vision.StandardNodes import EntryNE
    NumProcessors_90 = EntryNE(constrkw={},
                               name='NumProcessors',