Warning

This document is for an old release 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: galaxy.web.framework.helpers.grids.Grid

class EmailColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, user)[source]
class UserNameColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, user)[source]
class StatusColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, user)[source]
class GroupsColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, user)[source]
class RolesColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, user)[source]
class ExternalColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, user)[source]
class LastLoginColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, user)[source]
class TimeCreatedColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, user)[source]
class ActivatedColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, user)[source]
title = 'Users'
title_id = 'users-grid'
model_class

alias of galaxy.model.User

default_sort_key = 'email'
columns = [<galaxy.webapps.galaxy.controllers.admin.EmailColumn object>, <galaxy.webapps.galaxy.controllers.admin.UserNameColumn object>, <galaxy.webapps.galaxy.controllers.admin.GroupsColumn object>, <galaxy.webapps.galaxy.controllers.admin.RolesColumn object>, <galaxy.webapps.galaxy.controllers.admin.ExternalColumn object>, <galaxy.webapps.galaxy.controllers.admin.LastLoginColumn object>, <galaxy.webapps.galaxy.controllers.admin.StatusColumn object>, <galaxy.webapps.galaxy.controllers.admin.TimeCreatedColumn object>, <galaxy.webapps.galaxy.controllers.admin.ActivatedColumn object>, <galaxy.web.framework.helpers.grids.DeletedColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
global_actions = [<galaxy.web.framework.helpers.grids.GridAction object>]
operations = [<galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>]
standard_filters = [<galaxy.web.framework.helpers.grids.GridColumnFilter object>, <galaxy.web.framework.helpers.grids.GridColumnFilter object>, <galaxy.web.framework.helpers.grids.GridColumnFilter object>, <galaxy.web.framework.helpers.grids.GridColumnFilter object>]
num_rows_per_page = 50
use_paging = True
get_current_item(trans, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.admin.RoleListGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

class NameColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, role)[source]
class DescriptionColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, role)[source]
class TypeColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, role)[source]
class StatusColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, role)[source]
class GroupsColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, role)[source]
class UsersColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

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

alias of galaxy.model.Role

default_sort_key = 'name'
columns = [<galaxy.webapps.galaxy.controllers.admin.NameColumn object>, <galaxy.webapps.galaxy.controllers.admin.DescriptionColumn object>, <galaxy.webapps.galaxy.controllers.admin.TypeColumn object>, <galaxy.webapps.galaxy.controllers.admin.GroupsColumn object>, <galaxy.webapps.galaxy.controllers.admin.UsersColumn object>, <galaxy.webapps.galaxy.controllers.admin.StatusColumn object>, <galaxy.web.framework.helpers.grids.DeletedColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
global_actions = [<galaxy.web.framework.helpers.grids.GridAction object>]
operations = [<galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>]
standard_filters = [<galaxy.web.framework.helpers.grids.GridColumnFilter object>, <galaxy.web.framework.helpers.grids.GridColumnFilter object>, <galaxy.web.framework.helpers.grids.GridColumnFilter object>]
num_rows_per_page = 50
use_paging = True
apply_query_filter(trans, query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.admin.GroupListGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

class NameColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, group)[source]
class StatusColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, group)[source]
class RolesColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, group)[source]
class UsersColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

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

alias of galaxy.model.Group

default_sort_key = 'name'
columns = [<galaxy.webapps.galaxy.controllers.admin.NameColumn object>, <galaxy.webapps.galaxy.controllers.admin.UsersColumn object>, <galaxy.webapps.galaxy.controllers.admin.RolesColumn object>, <galaxy.webapps.galaxy.controllers.admin.StatusColumn object>, <galaxy.web.framework.helpers.grids.DeletedColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
global_actions = [<galaxy.web.framework.helpers.grids.GridAction object>]
operations = [<galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>]
standard_filters = [<galaxy.web.framework.helpers.grids.GridColumnFilter object>, <galaxy.web.framework.helpers.grids.GridColumnFilter object>, <galaxy.web.framework.helpers.grids.GridColumnFilter object>]
num_rows_per_page = 50
use_paging = True
class galaxy.webapps.galaxy.controllers.admin.QuotaListGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

class NameColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, quota)[source]
class DescriptionColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, quota)[source]
class AmountColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, quota)[source]
class StatusColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, quota)[source]
class UsersColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, quota)[source]
class GroupsColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

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

alias of galaxy.model.Quota

default_sort_key = 'name'
columns = [<galaxy.webapps.galaxy.controllers.admin.NameColumn object>, <galaxy.webapps.galaxy.controllers.admin.DescriptionColumn object>, <galaxy.webapps.galaxy.controllers.admin.AmountColumn object>, <galaxy.webapps.galaxy.controllers.admin.UsersColumn object>, <galaxy.webapps.galaxy.controllers.admin.GroupsColumn object>, <galaxy.webapps.galaxy.controllers.admin.StatusColumn object>, <galaxy.web.framework.helpers.grids.DeletedColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
global_actions = [<galaxy.web.framework.helpers.grids.GridAction object>]
operations = [<galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>]
standard_filters = [<galaxy.web.framework.helpers.grids.GridColumnFilter object>, <galaxy.web.framework.helpers.grids.GridColumnFilter object>, <galaxy.web.framework.helpers.grids.GridColumnFilter object>]
num_rows_per_page = 50
use_paging = True
class galaxy.webapps.galaxy.controllers.admin.ToolVersionListGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

class ToolIdColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, tool_version)[source]
class ToolVersionsColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, tool_version)[source]
title = 'Tool versions'
model_class

alias of galaxy.model.tool_shed_install.ToolVersion

default_sort_key = 'tool_id'
columns = [<galaxy.webapps.galaxy.controllers.admin.ToolIdColumn object>, <galaxy.webapps.galaxy.controllers.admin.ToolVersionsColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
global_actions = []
operations = []
standard_filters = []
default_filter = {}
num_rows_per_page = 50
use_paging = True
build_initial_query(trans, **kwd)[source]
class galaxy.webapps.galaxy.controllers.admin.AdminGalaxy(app)[source]

Bases: galaxy.web.base.controller.JSAppLauncher, galaxy.actions.admin.AdminActions, galaxy.web.base.controller.UsesQuotaMixin, galaxy.web.params.QuotaParamParser

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>
tool_version_list_grid = <galaxy.webapps.galaxy.controllers.admin.ToolVersionListGrid object>
delete_operation = <galaxy.web.framework.helpers.grids.GridOperation object>
undelete_operation = <galaxy.web.framework.helpers.grids.GridOperation object>
purge_operation = <galaxy.web.framework.helpers.grids.GridOperation object>
index(trans, *args, **kwargs)[source]
data_tables_list(trans, *args, **kwargs)[source]
users_list(trans, *args, **kwargs)[source]
quotas_list(trans, *args, **kwargs)[source]
create_quota(trans, *args, **kwargs)[source]
rename_quota(trans, *args, **kwargs)[source]
manage_users_and_groups_for_quota(trans, *args, **kwargs)[source]
edit_quota(trans, *args, **kwargs)[source]
set_quota_default(trans, *args, **kwargs)[source]
impersonate(trans, *args, **kwargs)[source]
check_for_tool_dependencies(trans, migration_stage)[source]
review_tool_migration_stages(trans, *args, **kwargs)[source]
tool_errors(trans, *args, **kwargs)[source]
view_datatypes_registry(trans, *args, **kwargs)[source]
display_applications(trans, *args, **kwargs)[source]
reload_display_application(trans, *args, **kwargs)[source]
center(trans, *args, **kwargs)[source]
tool_versions_list(trans, *args, **kwargs)[source]
roles_list(trans, *args, **kwargs)[source]
create_role(trans, *args, **kwargs)[source]
rename_role(trans, *args, **kwargs)[source]
manage_users_and_groups_for_role(trans, *args, **kwargs)[source]
groups_list(trans, *args, **kwargs)[source]
rename_group(trans, *args, **kwargs)[source]
manage_users_and_roles_for_group(trans, *args, **kwargs)[source]
create_group(trans, *args, **kwargs)[source]
create_new_user(trans, *args, **kwargs)[source]
reset_user_password(trans, *args, **kwargs)[source]
manage_roles_and_groups_for_user(trans, *args, **kwargs)[source]
jobs(trans, *args, **kwargs)[source]
job_info(trans, *args, **kwargs)[source]
manage_tool_dependencies(trans, *args, **kwargs)[source]
sanitize_whitelist(trans, *args, **kwargs)[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

class galaxy.webapps.galaxy.controllers.admin_toolshed.AdminToolshed(app)[source]

Bases: galaxy.webapps.galaxy.controllers.admin.AdminGalaxy

installed_repository_grid = <tool_shed.galaxy_install.grids.admin_toolshed_grids.InstalledRepositoryGrid object>
activate_repository(trans, *args, **kwargs)[source]

Activate a repository that was deactivated but not uninstalled.

browse_repository(trans, *args, **kwargs)[source]
browse_repositories(trans, *args, **kwargs)[source]
restore_repository(trans, *args, **kwargs)[source]
browse_tool_dependency(trans, *args, **kwargs)[source]
browse_tool_shed(trans, *args, **kwargs)[source]
browse_toolsheds(trans, *args, **kwargs)[source]
browse_tool_sheds(trans, *args, **kwargs)[source]
check_for_updates(trans, *args, **kwargs)[source]

Send a request to the relevant tool shed to see if there are any updates.

deactivate_or_uninstall_repository(trans, *args, **kwargs)[source]

Handle all changes when a tool shed repository is being deactivated or uninstalled. Notice that if the repository contents include a file named tool_data_table_conf.xml.sample, its entries are not removed from the defined config.shed_tool_data_table_config. This is because it becomes a bit complex to determine if other installed repositories include tools that require the same entry. For now we’ll never delete entries from config.shed_tool_data_table_config, but we may choose to do so in the future if it becomes necessary.

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

find_tools_in_tool_shed(trans, *args, **kwargs)[source]
find_workflows_in_tool_shed(trans, *args, **kwargs)[source]
generate_workflow_image(trans, *args, **kwargs)[source]

Return an svg image representation of a workflow dictionary created when the workflow was exported.

get_file_contents(trans, *args, **kwargs)[source]
get_tool_dependencies(trans, *args, **kwargs)[source]

Send a request to the appropriate tool shed to retrieve the dictionary of tool dependencies defined for the received repository name, owner and changeset revision. The received repository_id is the encoded id of the installed tool shed repository in Galaxy. We need it so that we can derive the tool shed from which it was installed.

get_updated_repository_information(trans, *args, **kwargs)[source]

Send a request to the appropriate tool shed to retrieve the dictionary of information required to reinstall an updated revision of an uninstalled tool shed repository.

import_workflow(trans, *args, **kwargs)[source]

Import a workflow contained in an installed tool shed repository into Galaxy.

initiate_tool_dependency_installation(trans, *args, **kwargs)[source]

Install specified dependencies for repository tools. The received list of tool_dependencies are the database records for those dependencies defined in the tool_dependencies.xml file (contained in the repository) that should be installed. This allows for filtering out dependencies that have not been checked for installation on the ‘Manage tool dependencies’ page for an installed tool shed repository.

install_latest_repository_revision(trans, *args, **kwargs)[source]

Install the latest installable revision of a repository that has been previously installed.

install_tool_dependencies_with_update(trans, *args, **kwargs)[source]

Updating an installed tool shed repository where new tool dependencies but no new repository dependencies are included in the updated revision.

install_repositories(trans, *args, **kwargs)[source]
manage_repository(trans, *args, **kwargs)[source]
manage_repository_tool_dependencies(trans, *args, **kwargs)[source]
manage_tool_dependencies(trans, *args, **kwargs)[source]
monitor_repository_installation(trans, *args, **kwargs)[source]
open_folder(trans, *args, **kwargs)[source]
prepare_for_install(trans, *args, **kwargs)[source]
purge_repository(trans, *args, **kwargs)[source]

Purge a “white ghost” repository from the database.

reinstall_repository(trans, *args, **kwargs)[source]

Reinstall a tool shed repository that has been previously uninstalled, making sure to handle all repository and tool dependencies of the repository.

repository_installation_status_updates(trans, *args, **kwargs)[source]
reselect_tool_panel_section(trans, *args, **kwargs)[source]

Select or change the tool panel section to contain the tools included in the tool shed repository being reinstalled. If there are updates available for the repository in the tool shed, the tool_dependencies and repository_dependencies associated with the updated changeset revision will have been retrieved from the tool shed and passed in the received kwd. In this case, the stored tool shed repository metadata from the Galaxy database will not be used since it is outdated.

reset_metadata_on_selected_installed_repositories(trans, *args, **kwargs)[source]
reset_repository_metadata(trans, *args, **kwargs)[source]

Reset all metadata on a single installed tool shed repository.

reset_to_install(trans, *args, **kwargs)[source]

An error occurred while cloning the repository, so reset everything necessary to enable another attempt.

tool_dependency_status_updates(trans, *args, **kwargs)[source]
uninstall_tool_dependencies(trans, *args, **kwargs)[source]
update_to_changeset_revision(trans, *args, **kwargs)[source]

Update a cloned repository to the latest revision possible.

view_tool_metadata(trans, *args, **kwargs)[source]
update_tool_shed_status_for_installed_repository(trans, *args, **kwargs)[source]
view_workflow(trans, *args, **kwargs)[source]

Retrieve necessary information about a workflow from the database so that it can be displayed in an svg image.

galaxy.webapps.galaxy.controllers.async module

Upload class

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

Bases: galaxy.web.base.controller.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.biostar module

Controller for integration with the Biostar application

class galaxy.webapps.galaxy.controllers.biostar.BiostarController(app)[source]

Bases: galaxy.web.base.controller.BaseUIController

Provides integration with Biostar through external authentication, see: http://liondb.com/help/x/

biostar_redirect(trans, payload=None, biostar_action=None)[source]

Generate a redirect to a Biostar site using external authentication to pass Galaxy user information and optional information about a specific tool.

biostar_tool_tag_redirect(trans, tool_id=None)[source]

Generate a redirect to a Biostar site using tag for tool.

biostar_question_redirect(trans, payload=None)[source]

Generate a redirect to a Biostar site using external authentication to pass Galaxy user information and information about a specific tool.

biostar_tool_question_redirect(trans, tool_id=None)[source]

Generate a redirect to a Biostar site using external authentication to pass Galaxy user information and information about a specific tool.

biostar_tool_bug_report(trans, hda=None, email=None, message=None)[source]

Generate a redirect to a Biostar site using external authentication to pass Galaxy user information and information about a specific tool error.

biostar_logout(trans)[source]

Log out of biostar

galaxy.webapps.galaxy.controllers.data_manager module

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

Bases: galaxy.web.base.controller.BaseUIController

index(trans, **kwd)[source]
manage_data_manager(trans, **kwd)[source]
view_job(trans, **kwd)[source]
manage_data_table(trans, **kwd)[source]
reload_tool_data_tables(trans, *args, **kwargs)[source]
tool_data_table_items(trans, *args, **kwargs)[source]
reload_tool_data_table(trans, *args, **kwargs)[source]

galaxy.webapps.galaxy.controllers.dataset module

class galaxy.webapps.galaxy.controllers.dataset.HistoryDatasetAssociationListGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

class HistoryColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, hda)[source]
class StatusColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, hda)[source]
get_accepted_filters()[source]

Returns a list of accepted filters for this column.

title = 'Saved Datasets'
model_class

alias of galaxy.model.HistoryDatasetAssociation

default_sort_key = '-update_time'
columns = [<galaxy.web.framework.helpers.grids.TextColumn object>, <galaxy.webapps.galaxy.controllers.dataset.HistoryColumn object>, <galaxy.web.framework.helpers.grids.IndividualTagsColumn object>, <galaxy.webapps.galaxy.controllers.dataset.StatusColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
operations = [<galaxy.web.framework.helpers.grids.GridOperation object>]
standard_filters = []
default_filter = {'deleted': 'False', 'name': 'All', 'tags': 'All'}
use_paging = True
num_rows_per_page = 50
build_initial_query(trans, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.dataset.DatasetInterface(app)[source]

Bases: galaxy.web.base.controller.BaseUIController, galaxy.model.item_attrs.UsesAnnotations, galaxy.model.item_attrs.UsesItemRatings, galaxy.web.base.controller.UsesExtendedMetadataMixin

stored_list_grid = <galaxy.webapps.galaxy.controllers.dataset.HistoryDatasetAssociationListGrid object>
__init__(app)[source]
errors(trans, id)[source]
stdout(trans, dataset_id=None, **kwargs)[source]
stderr(trans, dataset_id=None, **kwargs)[source]
exit_code(trans, dataset_id=None, **kwargs)[source]
default(trans, dataset_id=None, **kwd)[source]
get_metadata_file(trans, hda_id, metadata_name)[source]

Allows the downloading of metadata files associated with datasets (eg. bai index for bam files)

transfer_status(trans, *args, **kwargs)[source]

Primarily used for the S3ObjectStore - get the status of data transfer if the file is not in cache

display(trans, dataset_id=None, preview=False, filename=None, to_ext=None, offset=None, ck_size=None, **kwd)[source]
get_edit(trans, *args, **kwargs)[source]

Produces the input definitions available to modify dataset attributes

set_edit(trans, *args, **kwargs)[source]

Allows user to modify parameters of an HDA.

list(trans, *args, **kwargs)[source]

List all available datasets

imp(trans, dataset_id=None, **kwd)[source]

Import another user’s dataset via a shared URL; dataset is added to user’s current history.

Returns dataset’s name and link.

get_embed_html_async(trans, id)[source]

Returns HTML for embedding a dataset in a page.

set_accessible_async(trans, *args, **kwargs)[source]

Does nothing because datasets do not have an importable/accessible attribute. This method could potentially set another attribute.

rate_async(trans, *args, **kwargs)[source]

Rate a dataset asynchronously and return updated community data.

display_by_username_and_slug(trans, username, slug, filename=None, preview=True)[source]

Display dataset by username and slug; because datasets do not yet have slugs, the slug is the dataset’s id.

get_item_content_async(trans, id)[source]

Returns item content in HTML format.

annotate_async(trans, id, new_annotation=None, **kwargs)[source]
get_annotation_async(trans, id)[source]
display_at(trans, dataset_id, filename=None, **kwd)[source]

Sets up a dataset permissions so it is viewable at an external site

display_application(trans, dataset_id=None, user_id=None, app_name=None, link_name=None, app_action=None, action_param=None, action_param_extra=None, **kwds)[source]

Access to external display applications

delete(trans, dataset_id, filename, show_deleted_on_refresh=False)[source]
delete_async(trans, dataset_id, filename)[source]
undelete(trans, dataset_id, filename)[source]
undelete_async(trans, dataset_id, filename)[source]
unhide(trans, dataset_id, filename)[source]
purge(trans, dataset_id, filename, show_deleted_on_refresh=False)[source]
purge_async(trans, dataset_id, filename)[source]
show_params(trans, dataset_id=None, from_noframe=None, **kwd)[source]

Show the parameters used for the job associated with an HDA

copy_datasets(trans, source_history=None, source_content_ids='', target_history_id=None, target_history_ids='', new_history_name='', do_copy=False, **kwd)[source]

galaxy.webapps.galaxy.controllers.error module

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

Bases: galaxy.web.base.controller.BaseUIController

index(trans)[source]

galaxy.webapps.galaxy.controllers.external_service module

galaxy.webapps.galaxy.controllers.external_services module

galaxy.webapps.galaxy.controllers.forms module

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

Bases: galaxy.web.framework.helpers.grids.Grid

class NameColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, form)[source]
class DescriptionColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, form)[source]
class TypeColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, form)[source]
class StatusColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

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

alias of galaxy.model.FormDefinitionCurrent

default_sort_key = '-update_time'
num_rows_per_page = 50
use_paging = True
default_filter = {'deleted': 'False'}
columns = [<galaxy.webapps.galaxy.controllers.forms.NameColumn object>, <galaxy.webapps.galaxy.controllers.forms.DescriptionColumn object>, <galaxy.webapps.galaxy.controllers.forms.TypeColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.webapps.galaxy.controllers.forms.StatusColumn object>, <galaxy.web.framework.helpers.grids.DeletedColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
operations = [<galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>]
global_actions = [<galaxy.web.framework.helpers.grids.GridAction object>]
build_initial_query(trans, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.forms.Forms(app)[source]

Bases: galaxy.web.base.controller.BaseUIController

forms_grid = <galaxy.webapps.galaxy.controllers.forms.FormsGrid object>
forms_list(trans, *args, **kwargs)[source]
create_form(trans, *args, **kwargs)[source]
edit_form(trans, *args, **kwargs)[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.forms.get_form(trans, form_id)[source]

Get a FormDefinition from the database by id.

galaxy.webapps.galaxy.controllers.history module

class galaxy.webapps.galaxy.controllers.history.NameColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, history)[source]
class galaxy.webapps.galaxy.controllers.history.HistoryListGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

class ItemCountColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, history)[source]
class HistoryListNameColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.webapps.galaxy.controllers.history.NameColumn

class DeletedColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.DeletedColumn

get_value(trans, grid, history)[source]
sort(trans, query, ascending, column_name=None)[source]
build_initial_query(trans, **kwargs)[source]
title = 'Saved Histories'
model_class

alias of galaxy.model.History

default_sort_key = '-update_time'
columns = [<galaxy.webapps.galaxy.controllers.history.HistoryListNameColumn object>, <galaxy.webapps.galaxy.controllers.history.ItemCountColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.IndividualTagsColumn object>, <galaxy.web.framework.helpers.grids.SharingStatusColumn object>, <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.history.DeletedColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
operations = [<galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>]
standard_filters = [<galaxy.web.framework.helpers.grids.GridColumnFilter object>, <galaxy.web.framework.helpers.grids.GridColumnFilter object>, <galaxy.web.framework.helpers.grids.GridColumnFilter object>]
default_filter = {'deleted': 'False', 'name': 'All', 'sharing': 'All', 'tags': 'All'}
num_rows_per_page = 15
use_paging = True
info_text = 'Histories that have been deleted for more than a time period specified by the Galaxy administrator(s) may be permanently deleted.'
get_current_item(trans, **kwargs)[source]
apply_query_filter(trans, query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.history.SharedHistoryListGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

class DatasetsByStateColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, history)[source]
class SharedByColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, history)[source]
title = 'Histories shared with you by others'
model_class

alias of galaxy.model.History

default_sort_key = '-update_time'
default_filter = {}
columns = [<galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.webapps.galaxy.controllers.history.DatasetsByStateColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.webapps.galaxy.controllers.history.SharedByColumn object>]
operations = [<galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>]
standard_filters = []
build_initial_query(trans, **kwargs)[source]
apply_query_filter(trans, query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.history.HistoryAllPublishedGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

class NameURLColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.PublicURLColumn, galaxy.webapps.galaxy.controllers.history.NameColumn

title = 'Published Histories'
model_class

alias of galaxy.model.History

default_sort_key = 'update_time'
default_filter = {'public_url': 'All', 'tags': 'All', 'username': 'All'}
use_paging = True
num_rows_per_page = 50
columns = [<galaxy.webapps.galaxy.controllers.history.NameURLColumn object>, <galaxy.web.framework.helpers.grids.OwnerAnnotationColumn object>, <galaxy.web.framework.helpers.grids.OwnerColumn object>, <galaxy.web.framework.helpers.grids.CommunityRatingColumn object>, <galaxy.web.framework.helpers.grids.CommunityTagsColumn object>, <galaxy.web.framework.helpers.grids.ReverseSortColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
operations = []
build_initial_query(trans, **kwargs)[source]
apply_query_filter(trans, query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.history.HistoryController(app)[source]

Bases: galaxy.web.base.controller.BaseUIController, galaxy.web.base.controller.SharableMixin, galaxy.model.item_attrs.UsesAnnotations, galaxy.model.item_attrs.UsesItemRatings, galaxy.web.base.controller.ExportsHistoryMixin, galaxy.web.base.controller.ImportsHistoryMixin

__init__(app)[source]
index(trans)[source]
list_as_xml(trans)[source]

XML history list for functional tests

stored_list_grid = <galaxy.webapps.galaxy.controllers.history.HistoryListGrid object>
shared_list_grid = <galaxy.webapps.galaxy.controllers.history.SharedHistoryListGrid object>
published_list_grid = <galaxy.webapps.galaxy.controllers.history.HistoryAllPublishedGrid object>
list_published(trans, *args, **kwargs)[source]
list(trans, *args, **kwargs)[source]

List all available histories

list_shared(trans, *args, **kwargs)[source]

List histories shared with current user by others

as_xml(trans, id=None, show_deleted=None, show_hidden=None)[source]

Return a history in xml format.

display_structured(trans, *args, **kwargs)[source]

Display a history as a nested structure showing the jobs and workflow invocations that created each dataset (if any).

structure(trans, id=None, **kwargs)[source]
view(trans, *args, **kwargs)[source]

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

view_multiple(trans, *args, **kwargs)[source]
display_by_username_and_slug(trans, username, slug)[source]

Display history based on a username and slug.

sharing(trans, *args, **kwargs)[source]

Handle history sharing.

permissions(trans, *args, **kwargs)[source]

Sets the permissions on a history.

share(trans, *args, **kwargs)[source]
adjust_hidden(trans, id=None, **kwd)[source]

THIS METHOD IS A TEMPORARY ADDITION. It’ll allow us to fix the regression in history-wide actions, and will be removed in the first release after 17.01

share_restricted(trans, *args, **kwargs)[source]
purge_deleted_datasets(trans)[source]
delete(trans, id, purge=False)[source]

Delete the history – this does not require a logged in user.

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

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

rate_async(trans, *args, **kwargs)[source]

Rate a history asynchronously and return updated community data.

export_archive(trans, id=None, gzip=True, include_hidden=False, include_deleted=False, preview=False)[source]

Export a history to an archive.

Returns history’s name and link.

set_accessible_async(trans, *args, **kwargs)[source]

Set history’s importable attribute and slug.

rename(trans, *args, **kwargs)[source]
switch_to_history(trans, *args, **kwargs)[source]

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

get_item(trans, id)[source]
history_data(trans, history)[source]

Return the given history in a serialized, dictionary form.

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

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

current_history_json(trans, *args, **kwargs)[source]

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

create_new_current(trans, *args, **kwargs)[source]

Create a new, current history for the current user

galaxy.webapps.galaxy.controllers.interactive_environments module

API check for whether the current session’s interactive environment launch is ready

class galaxy.webapps.galaxy.controllers.interactive_environments.InteractiveEnvironmentsController(app)[source]

Bases: galaxy.web.base.controller.BaseUIController

ready(trans, *args, **kwargs)[source]

GET /interactive_environments/ready/

Queries the GIE proxy IPC to determine whether the current user’s session’s GIE launch is ready

Returns:true if ready else false
Return type:boolean

galaxy.webapps.galaxy.controllers.library module

class galaxy.webapps.galaxy.controllers.library.Library(app)[source]

Bases: galaxy.web.base.controller.BaseUIController

list(trans, **kwd)[source]

galaxy.webapps.galaxy.controllers.library_admin module

galaxy.webapps.galaxy.controllers.library_common module

galaxy.webapps.galaxy.controllers.mobile module

galaxy.webapps.galaxy.controllers.page module

galaxy.webapps.galaxy.controllers.page.format_bool(b)[source]
class galaxy.webapps.galaxy.controllers.page.PageListGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

class URLColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.PublicURLColumn

get_value(trans, grid, item)[source]
use_panels = True
title = 'Pages'
model_class

alias of galaxy.model.Page

default_filter = {'published': 'All', 'sharing': 'All', 'tags': 'All', 'title': 'All'}
default_sort_key = '-update_time'
columns = [<galaxy.web.framework.helpers.grids.TextColumn object>, <galaxy.webapps.galaxy.controllers.page.URLColumn object>, <galaxy.web.framework.helpers.grids.OwnerAnnotationColumn object>, <galaxy.web.framework.helpers.grids.IndividualTagsColumn object>, <galaxy.web.framework.helpers.grids.SharingStatusColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
global_actions = [<galaxy.web.framework.helpers.grids.GridAction object>]
operations = [<galaxy.web.framework.helpers.grids.DisplayByUsernameAndSlugGridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>]
apply_query_filter(trans, query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.page.PageAllPublishedGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

use_panels = True
title = 'Published Pages'
model_class

alias of galaxy.model.Page

default_sort_key = 'update_time'
default_filter = {'title': 'All', 'username': 'All'}
columns = [<galaxy.web.framework.helpers.grids.PublicURLColumn object>, <galaxy.web.framework.helpers.grids.OwnerAnnotationColumn object>, <galaxy.web.framework.helpers.grids.OwnerColumn object>, <galaxy.web.framework.helpers.grids.CommunityRatingColumn object>, <galaxy.web.framework.helpers.grids.CommunityTagsColumn object>, <galaxy.web.framework.helpers.grids.ReverseSortColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
build_initial_query(trans, **kwargs)[source]
apply_query_filter(trans, query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.page.ItemSelectionGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

Base class for pages’ item selection grids.

class NameColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, item)[source]
show_item_checkboxes = True
default_filter = {'deleted': 'False', 'sharing': 'All'}
default_sort_key = '-update_time'
use_paging = True
num_rows_per_page = 10
apply_query_filter(trans, query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.page.HistorySelectionGrid[source]

Bases: galaxy.webapps.galaxy.controllers.page.ItemSelectionGrid

Grid for selecting histories.

title = 'Saved Histories'
model_class

alias of galaxy.model.History

columns = [<galaxy.webapps.galaxy.controllers.page.NameColumn object>, <galaxy.web.framework.helpers.grids.IndividualTagsColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.DeletedColumn object>, <galaxy.web.framework.helpers.grids.SharingStatusColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
apply_query_filter(trans, query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.page.HistoryDatasetAssociationSelectionGrid[source]

Bases: galaxy.webapps.galaxy.controllers.page.ItemSelectionGrid

Grid for selecting HDAs.

title = 'Saved Datasets'
model_class

alias of galaxy.model.HistoryDatasetAssociation

columns = [<galaxy.webapps.galaxy.controllers.page.NameColumn object>, <galaxy.web.framework.helpers.grids.IndividualTagsColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.DeletedColumn object>, <galaxy.web.framework.helpers.grids.SharingStatusColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
apply_query_filter(trans, query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.page.WorkflowSelectionGrid[source]

Bases: galaxy.webapps.galaxy.controllers.page.ItemSelectionGrid

Grid for selecting workflows.

title = 'Saved Workflows'
model_class

alias of galaxy.model.StoredWorkflow

columns = [<galaxy.webapps.galaxy.controllers.page.NameColumn object>, <galaxy.web.framework.helpers.grids.IndividualTagsColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.DeletedColumn object>, <galaxy.web.framework.helpers.grids.SharingStatusColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
class galaxy.webapps.galaxy.controllers.page.PageSelectionGrid[source]

Bases: galaxy.webapps.galaxy.controllers.page.ItemSelectionGrid

Grid for selecting pages.

title = 'Saved Pages'
model_class

alias of galaxy.model.Page

columns = [<galaxy.web.framework.helpers.grids.TextColumn object>, <galaxy.web.framework.helpers.grids.IndividualTagsColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.DeletedColumn object>, <galaxy.web.framework.helpers.grids.SharingStatusColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
class galaxy.webapps.galaxy.controllers.page.VisualizationSelectionGrid[source]

Bases: galaxy.webapps.galaxy.controllers.page.ItemSelectionGrid

Grid for selecting visualizations.

title = 'Saved Visualizations'
model_class

alias of galaxy.model.Visualization

columns = [<galaxy.web.framework.helpers.grids.TextColumn object>, <galaxy.web.framework.helpers.grids.TextColumn object>, <galaxy.web.framework.helpers.grids.IndividualTagsColumn object>, <galaxy.web.framework.helpers.grids.SharingStatusColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
class galaxy.webapps.galaxy.controllers.page.PageController(app)[source]

Bases: galaxy.web.base.controller.BaseUIController, galaxy.web.base.controller.SharableMixin, galaxy.web.base.controller.UsesStoredWorkflowMixin, galaxy.web.base.controller.UsesVisualizationMixin, galaxy.model.item_attrs.UsesItemRatings

__init__(app)[source]
list(trans, *args, **kwargs)[source]

List user’s pages.

list_published(trans, *args, **kwargs)[source]
create(trans, *args, **kwargs)[source]

Create a new page.

edit(trans, *args, **kwargs)[source]

Edit a page’s attributes.

edit_content(trans, *args, **kwargs)[source]

Render the main page editor interface.

sharing(trans, *args, **kwargs)[source]

Handle page sharing.

share(trans, *args, **kwargs)[source]

Handle sharing with an individual user.

save(trans, *args, **kwargs)[source]
display(trans, *args, **kwargs)[source]
display_by_username_and_slug(trans, username, slug)[source]

Display page based on a username and slug.

set_accessible_async(trans, *args, **kwargs)[source]

Set page’s importable attribute and slug.

rate_async(trans, *args, **kwargs)[source]

Rate a page asynchronously and return updated community data.

get_embed_html_async(trans, id)[source]

Returns HTML for embedding a workflow in a page.

Returns page’s name and link.

list_histories_for_selection(trans, *args, **kwargs)[source]

Returns HTML that enables a user to select one or more histories.

list_workflows_for_selection(trans, *args, **kwargs)[source]

Returns HTML that enables a user to select one or more workflows.

list_visualizations_for_selection(trans, *args, **kwargs)[source]

Returns HTML that enables a user to select one or more visualizations.

list_pages_for_selection(trans, *args, **kwargs)[source]

Returns HTML that enables a user to select one or more pages.

list_datasets_for_selection(trans, *args, **kwargs)[source]

Returns HTML that enables a user to select one or more datasets.

get_editor_iframe(trans)[source]

Returns the document for the page editor’s iframe.

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

Get a page from the database by id.

get_item(trans, id)[source]

galaxy.webapps.galaxy.controllers.request_type module

galaxy.webapps.galaxy.controllers.requests module

galaxy.webapps.galaxy.controllers.requests_admin module

galaxy.webapps.galaxy.controllers.requests_common module

galaxy.webapps.galaxy.controllers.root module

Contains the main interface in the Universe class

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

Bases: galaxy.web.base.controller.JSAppLauncher, galaxy.model.item_attrs.UsesAnnotations

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

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

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

index(trans, 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, redirect=None, **kwd)[source]

User login path for client-side.

Searches the tool database and returns data for any tool whose text matches the query.

Data are returned in JSON format.

tool_help(trans, id)[source]

Return help page for tool identified by ‘id’ if available

display(trans, id=None, hid=None, tofile=None, toext='.txt', encoded_id=None, **kwd)[source]

Returns data directly into the browser.

Sets the mime-type according to the extension.

Used by the twill tool test driver - used anywhere else? Would like to drop hid argument and path if unneeded now. Likewise, would like to drop encoded_id=XXX and use assume id is encoded (likely id wouldn’t be coming in encoded if this is used anywhere else though.)

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

Returns a file in a format that can successfully be displayed in display_app.

history_delete(trans, id)[source]

Backward compatibility with check_galaxy script.

clear_history(trans)[source]

Clears the history for a user.

history_import(trans, id=None, confirm=False, **kwd)[source]
history_new(trans, name=None)[source]

Create a new history with the given name and refresh the history panel.

history_add_to(trans, history_id=None, file_data=None, name='Data Added to History', info=None, ext='txt', dbkey='?', copy_access_from=None, **kwd)[source]

Adds a POSTed file to a History.

dataset_make_primary(trans, id=None)[source]

Copies a dataset and makes primary.

welcome(trans)[source]
bucket_proxy(trans, bucket=None, **kwd)[source]
echo(trans, **kwd)[source]

Echos parameters (debugging).

echo_json(trans, *args, **kwargs)[source]

Echos parameters as JSON (debugging).

Attempts to parse values passed as boolean, float, then int. Defaults to string. Non-recursive (will not parse lists).

generate_error(trans, code=500)[source]

Raises an exception (debugging).

generate_json_error(trans, *args, **kwargs)[source]

Raises an exception (debugging).

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: galaxy.web.base.controller.BaseUIController, galaxy.web.base.controller.UsesTagsMixin

get_tagging_elt_async(trans, *args, **kwargs)[source]

Returns HTML for editing an item’s tags.

add_tag_async(trans, *args, **kwargs)[source]

Add tag to an item.

remove_tag_async(trans, *args, **kwargs)[source]

Remove tag from an item.

retag_async(trans, *args, **kwargs)[source]

Apply a new set of tags to an item; previous tags are deleted.

tag_autocomplete_data(trans, *args, **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: galaxy.web.base.controller.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

redirect(trans, redirect_url=None, **kwd)[source]

galaxy.webapps.galaxy.controllers.user module

Contains the user interface in the Universe class

class galaxy.webapps.galaxy.controllers.user.UserOpenIDGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

title = 'OpenIDs linked to your account'
model_class

alias of galaxy.model.UserOpenID

default_filter = {'openid': 'All'}
default_sort_key = '-create_time'
columns = [<galaxy.web.framework.helpers.grids.TextColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>]
global_actions = [<galaxy.web.framework.helpers.grids.GridAction object>]
operations = [<galaxy.web.framework.helpers.grids.GridOperation object>]
build_initial_query(trans, **kwd)[source]
class galaxy.webapps.galaxy.controllers.user.User(app)[source]

Bases: galaxy.web.base.controller.BaseUIController, galaxy.web.base.controller.UsesFormDefinitionsMixin, galaxy.web.base.controller.CreatesUsersMixin, galaxy.web.base.controller.CreatesApiKeysMixin

user_openid_grid = <galaxy.webapps.galaxy.controllers.user.UserOpenIDGrid object>
installed_len_files = None
openid_auth(trans, **kwd)[source]

Handles user request to access an OpenID provider

openid_process(trans, **kwd)[source]

Handle’s response from OpenID Providers

openid_associate(trans, cntrller='user', **kwd)[source]

Associates a user with an OpenID log in

create_openid(trans, *args, **kwargs)[source]
openids_list(trans, *args, **kwargs)[source]

List of availabel OpenIDs for user

login(trans, refresh_frames=[], **kwd)[source]

Handle Galaxy Log in

proceed_login(trans, user, redirect)[source]

Function processes user login. It is called in case all the login requirements are valid.

resend_verification(trans)[source]

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

resend_verification_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, cntrller='user', redirect_url='', refresh_frames=[], **kwd)[source]
send_verification_email(trans, email, username)[source]

Send the verification email containing the activation link to the user’s email.

Prepare the account activation link for the user.

get_activation_token(trans, email)[source]

Check for the activation token. Create new activation token and store it in the database if no token found.

activate(trans, **kwd)[source]

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

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

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

get_most_recently_used_tool_async(trans, *args, **kwargs)[source]

Returns information about the most recently used tool.

set_user_pref_async(trans, pref_name, pref_value)[source]

Set a user preference asynchronously. If user is not logged in, do nothing.

log_user_action_async(trans, action, context, params)[source]

Log a user action asynchronously. If user is not logged in, do nothing.

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

Provides a form with which one can change their password. If token is provided, don’t require current password.

NOTE: This endpoint has been temporarily returned to the user controller, and will go away once there is a suitable replacement.

edit_info(trans, *args, **kwargs)[source]

TEMPORARY ENDPOINT - added back to support admin-level user info editing prior to adminjs. This is code that was prematurely removed from the user controller when the user-side editing functionality was replaced.

The method manage_user_info, which follows this, should also be removed at that time.

Edit user information = username, email or password.

galaxy.webapps.galaxy.controllers.userskeys module

Contains the user interface in the Universe class

class galaxy.webapps.galaxy.controllers.userskeys.User(app)[source]

Bases: galaxy.web.base.controller.BaseUIController, galaxy.web.base.controller.UsesFormDefinitionsMixin

index(trans, *args, **kwargs)[source]
admin_api_keys(trans, *args, **kwargs)[source]
all_users(trans, *args, **kwargs)[source]
get_all_users(trans, *args, **kwargs)[source]

galaxy.webapps.galaxy.controllers.visualization module

class galaxy.webapps.galaxy.controllers.visualization.HistoryDatasetsSelectionGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

class DbKeyColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

filter(trans, user, query, dbkey)[source]

Filter by dbkey through a raw SQL b/c metadata is a BLOB.

class HistoryColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

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

Sort query using this column.

available_tracks = None
title = 'Add Datasets'
model_class

alias of galaxy.model.HistoryDatasetAssociation

default_filter = {'deleted': 'False', 'shared': 'All'}
default_sort_key = '-hid'
columns = [<galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.TextColumn object>, <galaxy.web.framework.helpers.grids.TextColumn object>, <galaxy.web.framework.helpers.grids.TextColumn object>, <galaxy.webapps.galaxy.controllers.visualization.HistoryColumn object>, <galaxy.webapps.galaxy.controllers.visualization.DbKeyColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
build_initial_query(trans, **kwargs)[source]
apply_query_filter(trans, query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.visualization.LibraryDatasetsSelectionGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

available_tracks = None
title = 'Add Datasets'
model_class

alias of galaxy.model.LibraryDatasetDatasetAssociation

default_filter = {'deleted': 'False'}
default_sort_key = '-id'
columns = [<galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.TextColumn object>, <galaxy.web.framework.helpers.grids.TextColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
build_initial_query(trans, **kwargs)[source]
apply_query_filter(trans, query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.visualization.TracksterSelectionGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

title = 'Insert into visualization'
model_class

alias of galaxy.model.Visualization

default_sort_key = '-update_time'
use_paging = False
show_item_checkboxes = True
columns = [<galaxy.web.framework.helpers.grids.TextColumn object>, <galaxy.web.framework.helpers.grids.TextColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>]
build_initial_query(trans, **kwargs)[source]
apply_query_filter(trans, query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.visualization.VisualizationListGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

get_url_args(item)[source]

Returns dictionary used to create item link.

get_display_name(trans, item)[source]
title = 'Saved Visualizations'
model_class

alias of galaxy.model.Visualization

default_sort_key = '-update_time'
default_filter = {'deleted': 'False', 'sharing': 'All', 'tags': 'All', 'title': 'All'}
columns = [<galaxy.web.framework.helpers.grids.TextColumn object>, <galaxy.web.framework.helpers.grids.TextColumn object>, <galaxy.web.framework.helpers.grids.TextColumn object>, <galaxy.web.framework.helpers.grids.IndividualTagsColumn object>, <galaxy.web.framework.helpers.grids.SharingStatusColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
operations = [<galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>]
apply_query_filter(trans, query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.visualization.VisualizationAllPublishedGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

use_panels = True
title = 'Published Visualizations'
model_class

alias of galaxy.model.Visualization

default_sort_key = 'update_time'
default_filter = {'title': 'All', 'username': 'All'}
columns = [<galaxy.web.framework.helpers.grids.PublicURLColumn object>, <galaxy.web.framework.helpers.grids.OwnerAnnotationColumn object>, <galaxy.web.framework.helpers.grids.OwnerColumn object>, <galaxy.web.framework.helpers.grids.CommunityRatingColumn object>, <galaxy.web.framework.helpers.grids.CommunityTagsColumn object>, <galaxy.web.framework.helpers.grids.ReverseSortColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
build_initial_query(trans, **kwargs)[source]
apply_query_filter(trans, query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.visualization.VisualizationController(app)[source]

Bases: galaxy.web.base.controller.BaseUIController, galaxy.web.base.controller.SharableMixin, galaxy.web.base.controller.UsesVisualizationMixin, galaxy.model.item_attrs.UsesAnnotations, galaxy.model.item_attrs.UsesItemRatings

__init__(app)[source]
list_libraries(trans, *args, **kwargs)[source]

List all libraries that can be used for selecting datasets.

list_history_datasets(trans, *args, **kwargs)[source]

List a history’s datasets that can be added to a visualization.

list_library_datasets(trans, *args, **kwargs)[source]

List a library’s datasets that can be added to a visualization.

list_tracks(trans, *args, **kwargs)[source]
list_published(trans, *args, **kwargs)[source]
list(trans, *args, **kwargs)[source]
index(trans, *args, **kwargs)[source]

Lists user’s saved visualizations.

copy(trans, *args, **kwargs)[source]
set_accessible_async(trans, *args, **kwargs)[source]

Set visualization’s importable attribute and slug.

rate_async(trans, *args, **kwargs)[source]

Rate a visualization asynchronously and return updated community data.

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

Import a visualization into user’s workspace.

sharing(trans, *args, **kwargs)[source]

Handle visualization sharing.

share(trans, *args, **kwargs)[source]

Handle sharing a visualization with a particular user.

display_by_username_and_slug(trans, username, slug)[source]

Display visualization based on a username and slug.

Returns visualization’s name and link.

get_item_content_async(trans, id)[source]

Returns item content in HTML format.

save(trans, *args, **kwargs)[source]

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

edit(trans, *args, **kwargs)[source]

Edit a visualization’s attributes.

render(trans, *args, **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, *args, **kwargs)[source]

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

trackster(trans, *args, **kwargs)[source]

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

circster(trans, id=None, hda_ldda=None, dataset_id=None, dbkey=None)[source]

Display a circster visualization.

sweepster(trans, id=None, hda_ldda=None, dataset_id=None, regions=None)[source]

Displays a sweepster visualization using the incoming parameters. If id is available, get the visualization with the given id; otherwise, create a new visualization using a given dataset and regions.

get_item(trans, id)[source]
phyloviz(trans, id=None, dataset_id=None, tree_index=0, **kwargs)[source]
gie_list(trans, *args, **kwargs)[source]
bookmarks_from_dataset(trans, *args, **kwargs)[source]

galaxy.webapps.galaxy.controllers.workflow module

class galaxy.webapps.galaxy.controllers.workflow.StoredWorkflowListGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

class StepsColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, target=None, delayed=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, workflow)[source]
use_panels = True
title = 'Saved Workflows'
model_class

alias of galaxy.model.StoredWorkflow

default_filter = {'name': 'All', 'tags': 'All'}
default_sort_key = '-update_time'
columns = [<galaxy.web.framework.helpers.grids.TextColumn object>, <galaxy.web.framework.helpers.grids.IndividualTagsColumn object>, <galaxy.webapps.galaxy.controllers.workflow.StepsColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.GridColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
operations = [<galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>]
apply_query_filter(trans, query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.workflow.StoredWorkflowAllPublishedGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

title = 'Published Workflows'
model_class

alias of galaxy.model.StoredWorkflow

default_sort_key = 'update_time'
default_filter = {'public_url': 'All', 'tags': 'All', 'username': 'All'}
columns = [<galaxy.web.framework.helpers.grids.PublicURLColumn object>, <galaxy.web.framework.helpers.grids.OwnerAnnotationColumn object>, <galaxy.web.framework.helpers.grids.OwnerColumn object>, <galaxy.web.framework.helpers.grids.CommunityRatingColumn object>, <galaxy.web.framework.helpers.grids.CommunityTagsColumn object>, <galaxy.web.framework.helpers.grids.ReverseSortColumn object>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object>]
operations = [<galaxy.web.framework.helpers.grids.GridOperation object>, <galaxy.web.framework.helpers.grids.GridOperation object>]
num_rows_per_page = 50
use_paging = True
build_initial_query(trans, **kwargs)[source]
apply_query_filter(trans, query, **kwargs)[source]
class galaxy.webapps.galaxy.controllers.workflow.SingleTagContentsParser(target_tag)[source]

Bases: HTMLParser.HTMLParser

__init__(target_tag)[source]
handle_starttag(tag, attrs)[source]

Called for each start tag.

handle_data(text)[source]

Called for each block of plain text.

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

Bases: galaxy.web.base.controller.BaseUIController, galaxy.web.base.controller.SharableMixin, galaxy.web.base.controller.UsesStoredWorkflowMixin, galaxy.model.item_attrs.UsesItemRatings

stored_list_grid = <galaxy.webapps.galaxy.controllers.workflow.StoredWorkflowListGrid object>
published_list_grid = <galaxy.webapps.galaxy.controllers.workflow.StoredWorkflowAllPublishedGrid object>
list_grid(trans, *args, **kwargs)[source]

List user’s stored workflows.

list(trans, *args, **kwargs)[source]

Render workflow main page (management of existing workflows)

list_published(trans, *args, **kwargs)[source]
display_by_username_and_slug(trans, username, slug, format='html')[source]

Display workflow based on a username and slug. Format can be html, json, or json-download.

display_by_id(trans, id)[source]

Display workflow based on id.

get_item_content_async(trans, id)[source]

Returns item content in HTML format.

share(trans, *args, **kwargs)[source]
sharing(trans, *args, **kwargs)[source]

Handle workflow sharing.

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

Imports a workflow shared by other users.

rename_async(trans, *args, **kwargs)[source]
annotate_async(trans, *args, **kwargs)[source]
rate_async(trans, *args, **kwargs)[source]

Rate a workflow asynchronously and return updated community data.

set_accessible_async(trans, *args, **kwargs)[source]

Set workflow’s importable attribute and slug.

get_embed_html_async(trans, id)[source]

Returns HTML for embedding a workflow in a page.

Returns workflow’s name and link.

gen_image(trans, *args, **kwargs)[source]
copy(trans, *args, **kwargs)[source]
create(trans, *args, **kwargs)[source]
save_workflow_as(trans, *args, **kwargs)[source]

Creates a new workflow based on Save As command. It is a new workflow, but is created with workflow_data already present.

delete(trans, id=None)[source]

Mark a workflow as deleted

editor(trans, *args, **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, *args, **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.

export_to_myexp(trans, *args, **kwargs)[source]

Exports a workflow to myExperiment website.

for_direct_import(trans, *args, **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, *args, **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.

import_workflow(trans, *args, **kwargs)[source]

Import a workflow through 3rd party services, e.g. myExperiment.

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)[source]
get_item(trans, id)[source]
tag_outputs(trans, id, **kwargs)[source]