def python_to_workflow(as_python, galaxy_interface, workflow_directory):
 if (workflow_directory is None):
  workflow_directory = os.path.abspath('.')
 conversion_context = ConversionContext(galaxy_interface, workflow_directory)
 return _python_to_workflow(as_python, conversion_context)

def python_to_workflow ( as_python , galaxy_interface , workflow_directory ) : if ( workflow_directory is None ) : workflow_directory = os . path . abspath ( '.' ) conversion_context = ConversionContext ( galaxy_interface , workflow_directory ) return _python_to_workflow ( as_python , conversion_context )
convert a format 2 workflow into standard galaxy format from supplied dictionary .