Пример #1
0
 def createJobInst(self, jobType, command):
     jobInstance = None
         
     if "emanrecon" == jobType:
         jobInstance = apRefineJobEman.EmanRefineJob(command)
     elif "frealignrecon" == jobType:
         jobInstance = apRefineJobFrealign.FrealignRefineJob(command)
     elif "xmipprecon" == jobType:
         jobInstance = apRefineJobXmipp.XmippSingleModelRefineJob(command)
     elif "xmippml3d" == jobType:
         jobInstance = apRefineJobXmippML3D.XmippML3DRefineJob(command)
     elif "jobtest" == jobType:
         jobInstance = jobtest.jobtestClass()
     else:
         jobInstance = apGenericJob.genericJob(command)
     print jobType, command
     return jobInstance
 def createJobInst(self, jobType, command):
         jobInstance = None
                 
         if "emanrecon" == jobType:
                 jobInstance = apRefineJobEman.EmanRefineJob(command)
         elif "frealignrecon" == jobType:
                 jobInstance = apRefineJobFrealign.FrealignRefineJob(command)
         elif "xmipprecon" == jobType:
                 jobInstance = apRefineJobXmipp.XmippSingleModelRefineJob(command)
         elif "relionrecon" == jobType:
                 jobInstance = apRefineJobRelion.RelionSingleModelRefineJob(command)
         elif "xmippml3d" == jobType:
                 jobInstance = apRefineJobXmippML3D.XmippML3DRefineJob(command)
         elif "jobtest" == jobType:
                 jobInstance = jobtest.jobtestClass()
         else:
                 jobInstance = apGenericJob.genericJob(command)
         print jobType, command
         return jobInstance
Пример #3
0
 def createJobInst(self, jobType, command):
     jobInstance = None
     print "Job type: %s" % (jobType)
     if "emanrecon" == jobType:
         jobInstance = apRefineJobEman.EmanRefineJob(command)
     elif "frealignrecon" == jobType:
         jobInstance = apRefineJobFrealign.FrealignRefineJob(command)
     elif "xmipprecon" == jobType:
         jobInstance = apRefineJobXmipp.XmippSingleModelRefineJob(command)
     elif "relionrecon" == jobType:
         jobInstance = apRefineJobRelion.RelionSingleModelRefineJob(command)
     elif "xmippml3d" == jobType:
         jobInstance = apRefineJobXmippML3D.XmippML3DRefineJob(command)
     elif "sparxisac" == jobType:
         jobInstance = apSparxISAC.ISACJob(command)
     elif "jobtest" == jobType:
         jobInstance = jobtest.jobtestClass()
     else:
         jobInstance = apGenericJob.genericJob(command)
     print jobType, command
     return jobInstance