def runWithPermutationsScript(permutationsFilePath, options, outputLabel, permWorkDir):
 global g_currentVerbosityLevel
 if ('verbosityCount' in options):
  g_currentVerbosityLevel = options['verbosityCount']
  del options['verbosityCount']
 else:
  g_currentVerbosityLevel = 1
 _setupInterruptHandling()
 options['permutationsScriptPath'] = permutationsFilePath
 options['outputLabel'] = outputLabel
 options['outDir'] = permWorkDir
 options['permWorkDir'] = permWorkDir
 runOptions = _injectDefaultOptions(options)
 _validateOptions(runOptions)
 return _runAction(runOptions)

def runWithPermutationsScript ( permutationsFilePath , options , outputLabel , permWorkDir ) : global g_currentVerbosityLevel if ( 'verbosityCount' in options ) : g_currentVerbosityLevel = options [ 'verbosityCount' ] del options [ 'verbosityCount' ] else : g_currentVerbosityLevel = 1 _setupInterruptHandling ( ) options [ 'permutationsScriptPath' ] = permutationsFilePath options [ 'outputLabel' ] = outputLabel options [ 'outDir' ] = permWorkDir options [ 'permWorkDir' ] = permWorkDir runOptions = _injectDefaultOptions ( options ) _validateOptions ( runOptions ) return _runAction ( runOptions )
starts a swarm .