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.tool_shed.controllers package¶
Galaxy tool shed controllers.
Submodules¶
galaxy.webapps.tool_shed.controllers.admin module¶
-
class
galaxy.webapps.tool_shed.controllers.admin.
AdminController
(app)[source]¶ Bases:
galaxy.web.base.controller.BaseUIController
,tool_shed.util.admin_util.Admin
-
user_list_grid
= <tool_shed.grids.admin_grids.UserGrid object>¶
-
role_list_grid
= <tool_shed.grids.admin_grids.RoleGrid object>¶
-
group_list_grid
= <tool_shed.grids.admin_grids.GroupGrid object>¶
-
manage_category_grid
= <tool_shed.grids.admin_grids.ManageCategoryGrid object>¶
-
repository_grid
= <tool_shed.grids.admin_grids.AdminRepositoryGrid object>¶
-
repository_metadata_grid
= <tool_shed.grids.admin_grids.RepositoryMetadataGrid 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>¶
-
edit_category
(trans, *args, **kwargs)[source]¶ Handle requests to edit TS category name or description
-
galaxy.webapps.tool_shed.controllers.groups module¶
galaxy.webapps.tool_shed.controllers.hg module¶
galaxy.webapps.tool_shed.controllers.repository module¶
-
galaxy.webapps.tool_shed.controllers.repository.
get_mercurial_default_options_dict
(command)[source]¶ Borrowed from repoman - get default parameters for a mercurial command.
-
class
galaxy.webapps.tool_shed.controllers.repository.
RepositoryController
(app)[source]¶ Bases:
galaxy.web.base.controller.BaseUIController
,galaxy.webapps.tool_shed.util.ratings_util.ItemRatings
-
category_grid
= <tool_shed.grids.repository_grids.CategoryGrid object>¶
-
datatypes_grid
= <tool_shed.grids.repository_grids.DatatypesGrid object>¶
-
deprecated_repositories_i_own_grid
= <tool_shed.grids.repository_grids.DeprecatedRepositoriesIOwnGrid object>¶
-
email_alerts_repository_grid
= <tool_shed.grids.repository_grids.EmailAlertsRepositoryGrid object>¶
-
docker_image_grid
= <tool_shed.grids.repository_grids.DockerImageGrid object>¶
-
install_matched_repository_grid
= <tool_shed.grids.repository_grids.InstallMatchedRepositoryGrid object>¶
-
matched_repository_grid
= <tool_shed.grids.repository_grids.MatchedRepositoryGrid object>¶
-
my_writable_repositories_grid
= <tool_shed.grids.repository_grids.MyWritableRepositoriesGrid object>¶
-
my_writable_repositories_missing_tool_test_components_grid
= <tool_shed.grids.repository_grids.MyWritableRepositoriesMissingToolTestComponentsGrid object>¶
-
repositories_by_user_grid
= <tool_shed.grids.repository_grids.RepositoriesByUserGrid object>¶
-
repositories_i_own_grid
= <tool_shed.grids.repository_grids.RepositoriesIOwnGrid object>¶
-
repositories_i_can_administer_grid
= <tool_shed.grids.repository_grids.RepositoriesICanAdministerGrid object>¶
-
repositories_in_category_grid
= <tool_shed.grids.repository_grids.RepositoriesInCategoryGrid object>¶
-
repositories_missing_tool_test_components_grid
= <tool_shed.grids.repository_grids.RepositoriesMissingToolTestComponentsGrid object>¶
-
repositories_with_invalid_tools_grid
= <tool_shed.grids.repository_grids.RepositoriesWithInvalidToolsGrid object>¶
-
repository_dependencies_grid
= <tool_shed.grids.repository_grids.RepositoryDependenciesGrid object>¶
-
repository_grid
= <tool_shed.grids.repository_grids.RepositoryGrid object>¶
-
repository_metadata_grid
= <tool_shed.grids.repository_grids.RepositoryMetadataGrid object>¶
-
tool_dependencies_grid
= <tool_shed.grids.repository_grids.ToolDependenciesGrid object>¶
-
tools_grid
= <tool_shed.grids.repository_grids.ToolsGrid object>¶
-
valid_category_grid
= <tool_shed.grids.repository_grids.ValidCategoryGrid object>¶
-
valid_repository_grid
= <tool_shed.grids.repository_grids.ValidRepositoryGrid object>¶
-
browse_repositories_by_user
(trans, **kwd)[source]¶ Display the list of repositories owned by a specified user.
-
browse_valid_categories
(trans, **kwd)[source]¶ Filter repositories per category by those that are valid for installing into Galaxy.
-
browse_valid_repositories
(trans, **kwd)[source]¶ Filter repositories to those that are installable into Galaxy.
-
deprecate
(trans, *args, **kwargs)[source]¶ Mark a repository in the tool shed as deprecated or not deprecated.
-
display_image_in_repository
(trans, **kwd)[source]¶ Open an image file that is contained in 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
-
download
(trans, repository_id, changeset_revision, file_type, **kwd)[source]¶ Download an archive of the repository files compressed as zip, gz or bz2.
-
export_via_api
(trans, **kwd)[source]¶ Return an exported gzip compressed repository archive file opened for reading.
-
generate_workflow_image
(trans, workflow_name, repository_metadata_id=None)[source]¶ Return an svg image representation of a workflow dictionary created when the workflow was exported.
-
get_changeset_revision_and_ctx_rev
(trans, **kwd)[source]¶ Handle a request from a local Galaxy instance to retrieve the changeset revision hash to which an installed repository can be updated.
-
get_ctx_rev
(trans, **kwd)[source]¶ Given a repository and changeset_revision, return the correct ctx.rev() value.
-
get_latest_downloadable_changeset_revision
(trans, *args, **kwargs)[source]¶ Return the latest installable changeset revision for the repository associated with the received name and owner. This method is called from Galaxy when attempting to install the latest revision of an installed repository.
-
get_readme_files
(trans, *args, **kwargs)[source]¶ This method is called when installing or re-installing a single repository into a Galaxy instance. If the received changeset_revision includes one or more readme files, return them in a dictionary.
-
get_repository_dependencies
(trans, *args, **kwargs)[source]¶ Return an encoded dictionary of all repositories upon which the contents of the received repository depends.
-
get_repository_id
(trans, **kwd)[source]¶ Given a repository name and owner, return the encoded repository id.
-
get_repository_information
(trans, *args, **kwargs)[source]¶ Generate a list of dictionaries, each of which contains the information about a repository that will be necessary for installing it into a local Galaxy instance.
-
get_required_repo_info_dict
(trans, *args, **kwargs)[source]¶ Retrieve and return a dictionary that includes a list of dictionaries that each contain all of the information needed to install the list of repositories defined by the received encoded_str.
-
get_tool_dependencies
(trans, **kwd)[source]¶ Handle a request from a Galaxy instance to get the tool_dependencies entry from the metadata for a specified changeset revision.
-
get_tool_dependencies_config_contents
(trans, **kwd)[source]¶ Handle a request from a Galaxy instance to get the tool_dependencies.xml file contents for a specified changeset revision.
-
get_tool_dependency_definition_metadata
(trans, *args, **kwargs)[source]¶ Given a repository name and ownerof a repository whose type is tool_dependency_definition, return the current metadata.
-
get_tool_versions
(trans, **kwd)[source]¶ For each valid /downloadable change set (up to the received changeset_revision) in the repository’s change log, append the changeset tool_versions dictionary to the list that will be returned.
-
get_updated_repository_information
(trans, *args, **kwargs)[source]¶ Generate a dictionary that contains the information about a repository that is necessary for installing it into a local Galaxy instance.
-
install_repositories_by_revision
(trans, **kwd)[source]¶ Send the list of repository_ids and changeset_revisions to Galaxy so it can begin the installation process. If the value of repository_ids is not received, then the name and owner of a single repository must be received to install a single repository.
-
next_installable_changeset_revision
(trans, **kwd)[source]¶ Handle a request from a Galaxy instance where the changeset_revision defined for a repository in a dependency definition file is older than the changeset_revision associated with the installed repository.
-
previous_changeset_revisions
(trans, from_tip=False, **kwd)[source]¶ Handle a request from a local Galaxy instance. This method will handle two scenarios: (1) the repository was previously installed using an older changeset_revsion, but later the repository was updated in the tool shed and the Galaxy admin is trying to install the latest changeset revision of the same repository instead of updating the one that was previously installed. (2) the admin is attempting to get updates for an installed repository that has a repository dependency and both the repository and its dependency have available updates. In this case, the from_tip parameter will be True because the repository dependency definition may define a changeset hash for the dependency that is newer than the installed changeset revision of the dependency (this is due to the behavior of “Tool dependency definition” repositories, whose metadata is always the tip), so the complete list of changset hashes in the changelog must be returned.
-
reset_all_metadata
(trans, id, **kwd)[source]¶ Reset all metadata on the complete changelog for a single repository in the tool shed.
-
sharable_owner
(trans, owner)[source]¶ Support for sharable URL for each repository owner’s tools, e.g. http://example.org/view/owner.
-
sharable_repository
(trans, owner, name)[source]¶ Support for sharable URL for a specified repository, e.g. http://example.org/view/owner/name.
-
sharable_repository_revision
(trans, owner, name, changeset_revision)[source]¶ Support for sharable URL for a specified repository revision, e.g. http://example.org/view/owner/name/changeset_revision.
-
updated_changeset_revisions
(trans, **kwd)[source]¶ Handle a request from a local Galaxy instance to retrieve the list of changeset revisions to which an installed repository can be updated. This method will return a string of comma-separated changeset revision hashes for all available updates to the received changeset revision. Among other things , this method handles the scenario where an installed tool shed repository’s tool_dependency definition file defines a changeset revision for a complex repository dependency that is outdated. In other words, a defined changeset revision is older than the current changeset revision for the required repository, making it impossible to discover the repository without knowledge of revisions to which it could have been updated.
-
galaxy.webapps.tool_shed.controllers.repository_review module¶
-
class
galaxy.webapps.tool_shed.controllers.repository_review.
RepositoryReviewController
(app)[source]¶ Bases:
galaxy.web.base.controller.BaseUIController
,galaxy.webapps.tool_shed.util.ratings_util.ItemRatings
-
component_grid
= <tool_shed.grids.repository_review_grids.ComponentGrid object>¶
-
repositories_ready_for_review_grid
= <tool_shed.grids.repository_review_grids.RepositoriesReadyForReviewGrid object>¶
-
repositories_reviewed_by_me_grid
= <tool_shed.grids.repository_review_grids.RepositoriesReviewedByMeGrid object>¶
-
repositories_with_reviews_grid
= <tool_shed.grids.repository_review_grids.RepositoriesWithReviewsGrid object>¶
-
repositories_without_reviews_grid
= <tool_shed.grids.repository_review_grids.RepositoriesWithoutReviewsGrid object>¶
-
repository_reviews_by_user_grid
= <tool_shed.grids.repository_review_grids.RepositoryReviewsByUserGrid object>¶
-
reviewed_repositories_i_own_grid
= <tool_shed.grids.repository_review_grids.ReviewedRepositoriesIOwnGrid object>¶
-
repositories_with_no_tool_tests_grid
= <tool_shed.grids.repository_review_grids.RepositoriesWithNoToolTestsGrid object>¶
-
manage_repositories_ready_for_review
(trans, *args, **kwargs)[source]¶ A repository is ready to be reviewed if one of the following conditions is met: 1) It contains no tools 2) It contains tools the tools_functionally_correct flag is set to True. This implies that the repository metadata revision was installed and tested
by the Tool Shed’s install and test framework.
-
manage_repositories_with_invalid_tests
(trans, *args, **kwargs)[source]¶ Display a list of repositories that contain tools, have not yet been reviewed, and have invalid functional tests. Tests are defined as invalid if they are missing from the tool config or if defined test data is not included in the repository.
-