Package Biskit :: Package Mod :: Module ModelMaster :: Class ModelMaster
[hide private]
[frames] | no frames]

Class ModelMaster

source code


Instance Methods [hide private]
  __init__(self, hosts, folders, fastaTarget=None, f_pir=None, template_folder=None, fout=None, starting_model=1, ending_model=10, ferror=None, verbose=1, **kw)
  __dir_or_none(self, folder, filename)
{{str}} setupJobs(self)
Prepare the job dictionnary for 'ModelSlave'
{param:value} getInitParameters(self, slave_tid)
Hand over parameters to slave once.
  cleanup(self)
Called after exit.
  done(self)
Called by finish() after exit(), cleanup(), and reportProgress(), but before thread notification (notifyAll() ) and before executing the callBack method.

Inherited from PVM.TrackingJobMaster.TrackingJobMaster: calculateResult, finish, getResult, getRst, hostnameFromTID, is_valid_slave, job_done, mark_slow_slaves, notifyAll, reportProgress, saveRst, setCallback, setRst, start_job

Inherited from PVM.dispatcher.JobMaster: bindMessages, get_slave_chunk, initializationDone, spawn, spawnAll, start

Inherited from PVM.PVMThread.PVMMasterSlave: exit, initialize, messageLoopIsUp, startMessageLoop

Inherited from PVM.PVMThread.PVMThread: bind, getBindings, getMessageLoopDelay, getParent, getPingTimeout, getTID, getTasks, isStopped, log, messageLoopIsStopped, nicknameFromTID, ping, post, post_execute_method, post_message_received, post_message_sent, rm_log, run, send, sendToAll, send_primitive, setMessageLoopDelay, setPingTimeout, stop, stopMessageLoop, unbind

Inherited from PVM.PVMThread.PVMThread (private): _ping

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, join, setDaemon, setName

Inherited from threading.Thread (private): _set_daemon

Inherited from threading._Verbose (private): _note

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__


Class Variables [hide private]
  slave_script = projectRoot()+ '/Biskit/Mod/ModelSlave.py'

Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, hosts, folders, fastaTarget=None, f_pir=None, template_folder=None, fout=None, starting_model=1, ending_model=10, ferror=None, verbose=1, **kw)
(Constructor)

source code 
Parameters:
  • hosts ([str]) - list of host-names
  • folders ([str]) - list of project directories (path)
  • fastaTarget (str) - path to find 'target.fasta'
  • f_pir (str) - alignment filename
  • template_folder (str) - directories for input atom files
  • fout (str) - default modeller input file 'modeller.top'
  • starting_model (int) - index of the first model (default: 1)
  • ending_model (int) - index of the last model (default: 10)
  • ferror (str) - filename to output errors from the Slave
  • verbose (1|0) - verbosity level (default: 1)
  • kw (param=value) - additional TrackingJobMaster arguments:
       chunk_size   - int, number of items that are processed per job
       niceness     - {str_host-name: int_niceness}
       slave_script - str, absolute path to slave-script
       show_output  - 1|0, display one xterm per slave [0]
       add_hosts    - 1|0, add hosts to PVM before starting [1]
    
Overrides: PVM.TrackingJobMaster.TrackingJobMaster.__init__

__dir_or_none(self, folder, filename)

source code 

setupJobs(self)

source code 

Prepare the job dictionnary for 'ModelSlave'
Returns: {{str}}
input informations for modeller for each project

getInitParameters(self, slave_tid)

source code 

Hand over parameters to slave once.
Parameters:
  • slave_tid (int) - slave task id
Returns: {param:value}
dictionary with init parameters
Overrides: PVM.dispatcher.JobMaster.getInitParameters

cleanup(self)

source code 

Called after exit. Override.
Overrides: PVM.TrackingJobMaster.TrackingJobMaster.cleanup
(inherited documentation)

done(self)

source code 

Called by finish() after exit(), cleanup(), and reportProgress(), but before thread notification (notifyAll() ) and before executing the callBack method. Override.
Overrides: PVM.TrackingJobMaster.TrackingJobMaster.done
(inherited documentation)

Class Variable Details [hide private]

slave_script

Value:
projectRoot()+ '/Biskit/Mod/ModelSlave.py'