Warning

This document is for an in-development version of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

galaxy.webapps.galaxy.controllers package

Galaxy web controllers.

Submodules

galaxy.webapps.galaxy.controllers.admin module

class galaxy.webapps.galaxy.controllers.admin.UserListGrid[source]

Bases: GridData

class StatusColumn(label, key=None, model_class=None, method=None, format=None, escape=True)[source]

Bases: GridColumn

get_value(trans, grid, user)[source]
class GroupsColumn(label, key=None, model_class=None, method=None, format=None, escape=True)[source]

Bases: GridColumn

get_value(trans, grid, user)[source]
class RolesColumn(label, key=None, model_class=None, method=None, format=None, escape=True)[source]

Bases: GridColumn

get_value(trans, grid, user)[source]
class LastLoginColumn(label, key=None, model_class=None, method=None, format=None, escape=True)[source]

Bases: GridColumn

get_value(trans, grid, user)[source]
sort(trans, query, ascending, column_name=None)[source]

Sort query using this column.

class DiskUsageColumn(label, key=None, model_class=None, method=None, format=None, escape=True)[source]

Bases: GridColumn

get_value(trans, grid, user)[source]
sort(trans, query, ascending, column_name=None)[source]

Sort query using this column.

title = 'Users'
title_id = 'users-grid'
model_class

alias of User

default_sort_key = 'email'
columns: List[GridColumn] = [<galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.webapps.galaxy.controllers.admin.UserListGrid.LastLoginColumn object>, <galaxy.webapps.galaxy.controllers.admin.UserListGrid.DiskUsageColumn object>, <galaxy.webapps.galaxy.controllers.admin.UserListGrid.StatusColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.webapps.galaxy.controllers.admin.UserListGrid.GroupsColumn object>, <galaxy.webapps.galaxy.controllers.admin.UserListGrid.RolesColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>]
apply_query_filter(query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.admin.RoleListGrid[source]

Bases: GridData

class GroupsColumn(label, key=None, model_class=None, method=None, format=None, escape=True)[source]

Bases: GridColumn

get_value(trans, grid, role)[source]
class UsersColumn(label, key=None, model_class=None, method=None, format=None, escape=True)[source]

Bases: GridColumn

get_value(trans, grid, role)[source]
title = 'Roles'
title_id = 'roles-grid'
model_class

alias of Role

default_sort_key = 'name'
columns: List[GridColumn] = [<galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.webapps.galaxy.controllers.admin.RoleListGrid.GroupsColumn object>, <galaxy.webapps.galaxy.controllers.admin.RoleListGrid.UsersColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>]
apply_query_filter(query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.admin.GroupListGrid[source]

Bases: GridData

class RolesColumn(label, key=None, model_class=None, method=None, format=None, escape=True)[source]

Bases: GridColumn

get_value(trans, grid, group)[source]
class UsersColumn(label, key=None, model_class=None, method=None, format=None, escape=True)[source]

Bases: GridColumn

get_value(trans, grid, group)[source]
title = 'Groups'
title_id = 'groups-grid'
model_class

alias of Group

default_sort_key = 'name'
columns: List[GridColumn] = [<galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.webapps.galaxy.controllers.admin.GroupListGrid.UsersColumn object>, <galaxy.webapps.galaxy.controllers.admin.GroupListGrid.RolesColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>]
apply_query_filter(query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.admin.QuotaListGrid[source]

Bases: GridData

class AmountColumn(label, key=None, model_class=None, method=None, format=None, escape=True)[source]

Bases: GridColumn

get_value(trans, grid, quota)[source]
class DefaultTypeColumn(label, key=None, model_class=None, method=None, format=None, escape=True)[source]

Bases: GridColumn

get_value(trans, grid, quota)[source]
class UsersColumn(label, key=None, model_class=None, method=None, format=None, escape=True)[source]

Bases: GridColumn

get_value(trans, grid, quota)[source]
class GroupsColumn(label, key=None, model_class=None, method=None, format=None, escape=True)[source]

Bases: GridColumn

get_value(trans, grid, quota)[source]
title = 'Quotas'
model_class

alias of Quota

default_sort_key = 'name'
columns: List[GridColumn] = [<galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.webapps.galaxy.controllers.admin.QuotaListGrid.AmountColumn object>, <galaxy.webapps.galaxy.controllers.admin.QuotaListGrid.UsersColumn object>, <galaxy.webapps.galaxy.controllers.admin.QuotaListGrid.GroupsColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.webapps.galaxy.controllers.admin.QuotaListGrid.DefaultTypeColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>]
apply_query_filter(query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.admin.DatatypesEntryT[source]

Bases: TypedDict

status: str
data: list
message: str
class galaxy.webapps.galaxy.controllers.admin.AdminGalaxy(app: StructuredApp)[source]

Bases: JSAppLauncher

user_list_grid = <galaxy.webapps.galaxy.controllers.admin.UserListGrid object>
role_list_grid = <galaxy.webapps.galaxy.controllers.admin.RoleListGrid object>
group_list_grid = <galaxy.webapps.galaxy.controllers.admin.GroupListGrid object>
quota_list_grid = <galaxy.webapps.galaxy.controllers.admin.QuotaListGrid object>
__init__(app: StructuredApp)[source]

Initialize an interface for application ‘app’

data_tables_list(trans, **kwd)[source]
data_types_list(trans, **kwd) DatatypesEntryT[source]
users_list(trans, **kwd)[source]
quotas_list(trans, payload=None, **kwargs)[source]
create_quota(trans, payload=None, **kwd)[source]
rename_quota(trans, payload=None, **kwd)[source]
manage_users_and_groups_for_quota(trans, payload=None, **kwd)[source]
edit_quota(trans, payload=None, **kwd)[source]
set_quota_default(trans, payload=None, **kwd)[source]
impersonate(trans, **kwd)[source]
roles_list(trans, **kwargs)[source]
create_role(trans, payload=None, **kwd)[source]
rename_role(trans, payload=None, **kwd)[source]
manage_users_and_groups_for_role(trans, payload=None, **kwd)[source]
groups_list(trans, **kwargs)[source]
rename_group(trans, payload=None, **kwd)[source]
manage_users_and_roles_for_group(trans, payload=None, **kwd)[source]
create_group(trans, payload=None, **kwd)[source]
create_new_user(trans, **kwd)[source]
reset_user_password(trans, payload=None, **kwd)[source]
manage_roles_and_groups_for_user(trans, payload=None, **kwd)[source]
galaxy.webapps.galaxy.controllers.admin.build_select_input(name, label, options, value)[source]
galaxy.webapps.galaxy.controllers.admin.get_user(trans, user_id)[source]

Get a User from the database by id.

galaxy.webapps.galaxy.controllers.admin.get_role(trans, id)[source]

Get a Role from the database by id.

galaxy.webapps.galaxy.controllers.admin.get_group(trans, id)[source]

Get a Group from the database by id.

galaxy.webapps.galaxy.controllers.admin.get_quota(trans, id)[source]

Get a Quota from the database by id.

galaxy.webapps.galaxy.controllers.admin_toolshed module

galaxy.webapps.galaxy.controllers.admin_toolshed.legacy_tool_shed_endpoint(func)[source]
class galaxy.webapps.galaxy.controllers.admin_toolshed.AdminToolshed(app: StructuredApp)[source]

Bases: AdminGalaxy

activate_repository(trans, **kwd)[source]

Activate a repository that was deactivated but not uninstalled.

restore_repository(trans, **kwd)[source]
display_image_in_repository(trans, **kwd)[source]

Open an image file that is contained in an installed tool shed repository or that is referenced by a URL for display. The image can be defined in either a README.rst file contained in the repository or the help section of a Galaxy tool config that is contained in the repository. The following image definitions are all supported. The former $PATH_TO_IMAGES is no longer required, and is now ignored. .. image:: https://raw.github.com/galaxy/some_image.png .. image:: $PATH_TO_IMAGES/some_image.png .. image:: /static/images/some_image.gif .. image:: some_image.jpg .. image:: /deep/some_image.png

manage_repository_json(trans, **kwd)[source]
quota_manager: QuotaManager

galaxy.webapps.galaxy.controllers.async module

Controller to handle communication of tools of type data_source_async

class galaxy.webapps.galaxy.controllers.async.ASync(app)[source]

Bases: BaseUIController

default(trans, tool_id=None, data_id=None, data_secret=None, **kwd)[source]

Catches the tool id and redirects as needed

index(trans, tool_id=None, data_secret=None, **kwd)[source]

Manages ascynchronous connections

galaxy.webapps.galaxy.controllers.authnz module

OAuth 2.0 and OpenID Connect Authentication and Authorization Controller.

class galaxy.webapps.galaxy.controllers.authnz.OIDC(app)[source]

Bases: JSAppLauncher

index(trans, **kwargs)[source]
GET /authnz/

returns a list of third-party identities associated with the user.

Parameters:
Return type:

list of dicts

Returns:

a list of third-party identities associated with the user account.

login(trans, provider, idphint=None, next=None)[source]
callback(trans, provider, idphint=None, **kwargs)[source]
create_user(trans, provider, **kwargs)[source]
disconnect(trans, provider, email=None, **kwargs)[source]
logout(trans, provider, **kwargs)[source]
get_logout_url(trans, provider=None, **kwargs)[source]
get_cilogon_idps(trans, **kwargs)[source]

galaxy.webapps.galaxy.controllers.data_manager module

class galaxy.webapps.galaxy.controllers.data_manager.DataManager(app)[source]

Bases: BaseUIController

data_managers_list(trans, **kwd)[source]
jobs_list(trans, **kwd)[source]
job_info(trans, **kwd)[source]
tool_data_table_info(trans, **kwd)[source]
tool_data_table_info_1(trans, **kwd)[source]
reload_tool_data_tables(trans, table_name=None, **kwd)[source]
tool_data_table_items(trans, **kwd)[source]
reload_tool_data_table(trans, **kwd)[source]

galaxy.webapps.galaxy.controllers.dataset module

galaxy.webapps.galaxy.controllers.error module

class galaxy.webapps.galaxy.controllers.error.Error(app)[source]

Bases: BaseUIController

index(trans)[source]

galaxy.webapps.galaxy.controllers.forms module

class galaxy.webapps.galaxy.controllers.forms.FormsGrid[source]

Bases: GridData

class NameColumn(label, key=None, model_class=None, method=None, format=None, escape=True)[source]

Bases: GridColumn

get_value(trans, grid, form)[source]
class DescriptionColumn(label, key=None, model_class=None, method=None, format=None, escape=True)[source]

Bases: GridColumn

get_value(trans, grid, form)[source]
class TypeColumn(label, key=None, model_class=None, method=None, format=None, escape=True)[source]

Bases: GridColumn

get_value(trans, grid, form)[source]
title = 'Forms'
model_class

alias of FormDefinitionCurrent

default_sort_key = 'update_time'
columns: List[GridColumn] = [<galaxy.webapps.galaxy.controllers.forms.FormsGrid.NameColumn object>, <galaxy.webapps.galaxy.controllers.forms.FormsGrid.DescriptionColumn object>, <galaxy.webapps.galaxy.controllers.forms.FormsGrid.TypeColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>]
apply_query_filter(query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.forms.Forms(app)[source]

Bases: BaseUIController

forms_grid = <galaxy.webapps.galaxy.controllers.forms.FormsGrid object>
forms_list(trans, payload=None, **kwd)[source]
create_form(trans, payload=None, **kwd)[source]
edit_form(trans, payload=None, **kwd)[source]
get_current_form(trans, payload=None, **kwd)[source]

This method gets all the unsaved user-entered form details and returns a dictionary containing the name, desc, type, layout & fields of the form

save_form_definition(trans, form_id=None, payload=None, **kwd)[source]

This method saves a form given an id

galaxy.webapps.galaxy.controllers.history module

class galaxy.webapps.galaxy.controllers.history.HistoryController(app: StructuredApp)[source]

Bases: BaseUIController, SharableMixin, UsesAnnotations, UsesItemRatings

history_manager: HistoryManager = GalaxyTypeDepends(_do_resolve)
history_serializer: HistorySerializer = GalaxyTypeDepends(_do_resolve)
slug_builder: SlugBuilder = GalaxyTypeDepends(_do_resolve)
__init__(app: StructuredApp)[source]

Initialize an interface for application ‘app’

index(trans)[source]
view(trans, id=None, show_deleted=False, show_hidden=False, use_panels=True)[source]

View a history. If a history is importable, then it is viewable by any user.

permissions(trans, payload=None, **kwd)[source]

Sets the permissions on a history.

make_private(trans, history_id=None, all_histories=False, **kwd)[source]

Sets the datasets within a history to private. Also sets the default permissions for the history to private, for future datasets.

purge_deleted_datasets(trans)[source]
resume_paused_jobs(trans, current=False, ids=None, **kwargs)[source]

Resume paused jobs for the active history – this does not require a logged in user.

rename(trans, payload=None, **kwd)[source]
switch_to_history(trans, hist_id=None, **kwargs)[source]

Change the current user’s current history to one with hist_id.

get_item(trans, id)[source]

Return item based on id.

history_data(trans, history)[source]

Return the given history in a serialized, dictionary form.

set_as_current(trans, id, **kwargs)[source]

Change the current user’s current history to one with id.

current_history_json(trans, since=None, **kwargs)[source]

Return the current user’s current history in a serialized, dictionary form.

create_new_current(trans, name=None, **kwargs)[source]

Create a new, current history for the current user

galaxy.webapps.galaxy.controllers.library module

galaxy.webapps.galaxy.controllers.page module

class galaxy.webapps.galaxy.controllers.page.PageController(app: StructuredApp)[source]

Bases: BaseUIController, SharableMixin, UsesStoredWorkflowMixin, UsesVisualizationMixin, UsesItemRatings

page_manager: PageManager = GalaxyTypeDepends(_do_resolve)
history_manager: HistoryManager = GalaxyTypeDepends(_do_resolve)
history_serializer: HistorySerializer = GalaxyTypeDepends(_do_resolve)
hda_manager: HDAManager = GalaxyTypeDepends(_do_resolve)
workflow_manager: WorkflowsManager = GalaxyTypeDepends(_do_resolve)
slug_builder: SlugBuilder = GalaxyTypeDepends(_do_resolve)
__init__(app: StructuredApp)[source]

Initialize an interface for application ‘app’

create(trans, payload=None, **kwd)[source]

Create a new page.

edit(trans, payload=None, **kwd)[source]

Edit a page’s attributes.

display(trans, id, **kwargs)[source]
get_page(trans, id, check_ownership=True, check_accessible=False)[source]

Get a page from the database by id.

galaxy.webapps.galaxy.controllers.root module

Contains the main interface in the Universe class

class galaxy.webapps.galaxy.controllers.root.RootController(app: StructuredApp)[source]

Bases: JSAppLauncher, UsesAnnotations

Controller class that maps to the url root of Galaxy (i.e. ‘/’).

history_manager: HistoryManager = GalaxyTypeDepends(_do_resolve)
__init__(app: StructuredApp)[source]

Initialize an interface for application ‘app’

default(trans, target1=None, target2=None, **kwd)[source]

Called on any url that does not match a controller method.

index(trans: GalaxyWebTransaction, tool_id=None, workflow_id=None, history_id=None, m_c=None, m_a=None, **kwd)[source]

Root and entry point for client-side web app.

Parameters:
  • tool_id (str or None) – load center panel with given tool if not None

  • workflow_id (encoded id or None) – load center panel with given workflow if not None

  • history_id (encoded id or None) – switch current history to given history if not None

  • m_c (str or None) – controller name (e.g. ‘user’)

  • m_a (str or None) – controller method/action (e.g. ‘dbkeys’)

If m_c and m_a are present, the center panel will be loaded using the controller and action as a url: (e.g. ‘user/dbkeys’).

login(trans: GalaxyWebTransaction, redirect=None, is_logout_redirect=False, **kwd)[source]

User login path for client-side.

display_as(trans: GalaxyWebTransaction, id=None, display_app=None, **kwd)[source]

Returns a file in a format that can successfully be displayed in display_app; if the file could not be returned, returns a message as a string.

welcome(trans: GalaxyWebTransaction, **kwargs)[source]

galaxy.webapps.galaxy.controllers.shed_tool_static module

class galaxy.webapps.galaxy.controllers.shed_tool_static.ShedToolStatic(app)[source]

Bases: BaseUIController

index(trans, shed, owner, repo, tool, version, image_file, **kwargs)[source]

Open an image file that is contained in an installed tool shed repository or that is referenced by a URL for display. The image can be defined in either a README.rst file contained in the repository or the help section of a Galaxy tool config that is contained in the repository. The following image definitions are all supported. The former $PATH_TO_IMAGES is no longer required, and is now ignored. .. image:: https://raw.github.com/galaxy/some_image.png .. image:: $PATH_TO_IMAGES/some_image.png .. image:: /static/images/some_image.gif .. image:: some_image.jpg .. image:: /deep/some_image.png

galaxy.webapps.galaxy.controllers.tag module

Tags Controller: handles tagging/untagging of entities and provides autocomplete support.

class galaxy.webapps.galaxy.controllers.tag.TagsController(app)[source]

Bases: BaseUIController, UsesTagsMixin

add_tag_async(trans, item_id=None, item_class=None, new_tag=None, context=None, **kwargs)[source]

Add tag to an item.

remove_tag_async(trans, item_id=None, item_class=None, tag_name=None, context=None, **kwargs)[source]

Remove tag from an item.

tag_autocomplete_data(trans, q=None, limit=None, timestamp=None, item_id=None, item_class=None, **kwargs)[source]

Get autocomplete data for an item’s tags.

galaxy.webapps.galaxy.controllers.tool_runner module

Controller handles external tool related requests

class galaxy.webapps.galaxy.controllers.tool_runner.ToolRunner(app)[source]

Bases: BaseUIController

biomart(trans, tool_id='biomart', **kwd)[source]

Catches the tool id and redirects as needed

hapmapmart(trans, tool_id='hapmapmart', **kwd)[source]

Catches the tool id and redirects as needed

default(trans, tool_id=None, **kwd)[source]

Catches the tool id and redirects as needed

index(trans, tool_id=None, from_noframe=None, **kwd)[source]
rerun(trans, id=None, job_id=None, **kwd)[source]

Given a HistoryDatasetAssociation id, find the job and that created the dataset, extract the parameters, and display the appropriate tool form with parameters already filled in.

data_source_redirect(trans, tool_id=None)[source]

Redirects a user accessing a Data Source tool to its target action link. This method will subvert mix-mode content blocking in several browsers when accessing non-https data_source tools from an https galaxy server.

Tested as working on Safari 7.0 and FireFox 26 Subverting did not work on Chrome 31

galaxy.webapps.galaxy.controllers.user module

Contains the user interface in the Universe class

class galaxy.webapps.galaxy.controllers.user.User(app: StructuredApp)[source]

Bases: BaseUIController, UsesFormDefinitionsMixin

user_manager: UserManager = GalaxyTypeDepends(_do_resolve)
installed_len_files = None
__init__(app: StructuredApp)[source]

Initialize an interface for application ‘app’

login(trans, payload=None, **kwd)[source]
resend_verification(trans, **kwargs)[source]

Exposed function for use outside of the class. E.g. when user click on the resend link in the masthead.

resend_activation_email(trans, email, username)[source]

Function resends the verification email in case user wants to log in with an inactive account or he clicks the resend link.

is_outside_grace_period(trans, create_time)[source]

Function checks whether the user is outside the config-defined grace period for inactive accounts.

logout(trans, logout_all=False, **kwd)[source]
create(trans, payload=None, **kwd)[source]
activate(trans, **kwd)[source]

Check whether token fits the user and then activate the user’s account.

change_password(trans, payload=None, **kwd)[source]

Allows to change own password.

Parameters:

payload (dict) – dictionary structure containing: * id: encoded user id * current: current user password * token: temporary token to change password (instead of id and current) * password: new password * confirm: new password (confirmation)

reset_password(trans, payload=None, **kwd)[source]

Reset the user’s password. Send an email with token that allows a password change.

galaxy.webapps.galaxy.controllers.visualization module

class galaxy.webapps.galaxy.controllers.visualization.VisualizationController(app: StructuredApp)[source]

Bases: BaseUIController, SharableMixin, UsesVisualizationMixin, UsesAnnotations, UsesItemRatings

hda_manager: HDAManager = GalaxyTypeDepends(_do_resolve)
slug_builder: SlugBuilder = GalaxyTypeDepends(_do_resolve)
__init__(app: StructuredApp)[source]

Initialize an interface for application ‘app’

get_visualization(trans, visualization_id, check_ownership=True, check_accessible=False)[source]

Get a Visualization from the database by id, verifying ownership.

copy(trans, id, **kwargs)[source]
imp(trans, id, **kwargs)[source]

Import a visualization into user’s workspace.

save(trans, vis_json=None, type=None, id=None, title=None, dbkey=None, annotation=None, **kwargs)[source]

Save a visualization; if visualization does not have an ID, a new visualization is created. Returns JSON of visualization.

edit(trans, payload=None, **kwd)[source]

Edit a visualization’s attributes.

render(trans, visualization_name, embedded=None, **kwargs)[source]

Render the appropriate visualization template, parsing the kwargs into appropriate variables and resources (such as ORM models) based on this visualizations param data in visualizations_conf.xml.

URL: /visualization/show/{visualization_name}

saved(trans, id=None, revision=None, type=None, config=None, title=None, **kwargs)[source]

Save (on POST) or load (on GET) a visualization then render.

trackster(trans, **kwargs)[source]

Display browser for the visualization denoted by id and add the datasets listed in dataset_ids.

galaxy.webapps.galaxy.controllers.workflow module

class galaxy.webapps.galaxy.controllers.workflow.WorkflowController(app: StructuredApp)[source]

Bases: BaseUIController, SharableMixin, UsesStoredWorkflowMixin, UsesItemRatings

history_manager: HistoryManager = GalaxyTypeDepends(_do_resolve)
slug_builder = <galaxy.managers.sharable.SlugBuilder object>
__init__(app: StructuredApp)[source]

Initialize an interface for application ‘app’

imp(trans, id, **kwargs)[source]

Imports a workflow shared by other users.

gen_image(trans, id, embed='false', version='', **kwargs)[source]
editor(trans, id=None, workflow_id=None, version=None, **kwargs)[source]

Render the main workflow editor interface. The canvas is embedded as an iframe (necessary for scrolling to work properly), which is rendered by editor_canvas.

load_workflow(trans, id, version=None, **kwargs)[source]

Get the latest Workflow for the StoredWorkflow identified by id and encode it as a json string that can be read by the workflow editor web interface.

for_direct_import(trans, id, **kwargs)[source]

Get the latest Workflow for the StoredWorkflow identified by id and encode it as a json string that can be imported back into Galaxy

This has slightly different information than the above. In particular, it does not attempt to decode forms and build UIs, it just stores the raw state.

export_to_file(trans, id)[source]

Get the latest Workflow for the StoredWorkflow identified by id and export it to a JSON file that can be imported back into Galaxy.

This has slightly different information than the above. In particular, it does not attempt to decode forms and build UIs, it just stores the raw state.

build_from_current_history(trans, job_ids=None, dataset_ids=None, dataset_collection_ids=None, workflow_name=None, dataset_names=None, dataset_collection_names=None, history_id=None, **kwargs)[source]