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.tool_shed.galaxy_install package¶
Subpackages¶
- galaxy.tool_shed.galaxy_install.datatypes package
- galaxy.tool_shed.galaxy_install.metadata package
- Submodules
- galaxy.tool_shed.galaxy_install.metadata.installed_repository_metadata_manager module
InstalledRepositoryMetadataManager
InstalledRepositoryMetadataManager.__init__()
InstalledRepositoryMetadataManager.build_repository_ids_select_field()
InstalledRepositoryMetadataManager.get_query_for_setting_metadata_on_repositories()
InstalledRepositoryMetadataManager.get_repository_tools_tups()
InstalledRepositoryMetadataManager.reset_all_metadata_on_installed_repository()
InstalledRepositoryMetadataManager.reset_metadata_on_selected_repositories()
InstalledRepositoryMetadataManager.set_repository()
InstalledRepositoryMetadataManager.tool_shed_from_repository_clone_url()
InstalledRepositoryMetadataManager.update_in_shed_tool_config()
- galaxy.tool_shed.galaxy_install.repository_dependencies package
- Submodules
- galaxy.tool_shed.galaxy_install.repository_dependencies.repository_dependency_manager module
RepositoryDependencyInstallManager
RepositoryDependencyInstallManager.__init__()
RepositoryDependencyInstallManager.build_repository_dependency_relationships()
RepositoryDependencyInstallManager.create_repository_dependency_objects()
RepositoryDependencyInstallManager.get_or_create_tool_shed_repository()
RepositoryDependencyInstallManager.get_repository_dependencies_for_installed_tool_shed_repository()
RepositoryDependencyInstallManager.get_repository_dependency_by_repository_id()
RepositoryDependencyInstallManager.get_required_repo_info_dicts()
RepositoryDependencyInstallManager.is_in_repo_info_dicts()
RepositoryDependencyInstallManager.reset_previously_installed_repository()
- galaxy.tool_shed.galaxy_install.tools package
- Submodules
- galaxy.tool_shed.galaxy_install.tools.data_manager module
- galaxy.tool_shed.galaxy_install.tools.tool_panel_manager module
ToolPanelManager
ToolPanelManager.__init__()
ToolPanelManager.app
ToolPanelManager.add_to_shed_tool_config()
ToolPanelManager.add_to_tool_panel()
ToolPanelManager.config_elems_to_xml_file()
ToolPanelManager.generate_tool_elem()
ToolPanelManager.generate_tool_panel_dict_for_new_install()
ToolPanelManager.generate_tool_panel_dict_for_tool_config()
ToolPanelManager.generate_tool_panel_dict_from_shed_tool_conf_entries()
ToolPanelManager.generate_tool_panel_elem_list()
ToolPanelManager.generate_tool_section_dicts()
ToolPanelManager.generate_tool_section_element_from_dict()
ToolPanelManager.get_or_create_tool_section()
ToolPanelManager.get_shed_tool_conf_dict()
ToolPanelManager.handle_tool_panel_section()
ToolPanelManager.handle_tool_panel_selection()
ToolPanelManager.remove_from_shed_tool_config()
ToolPanelManager.remove_repository_contents()
ToolPanelManager.update_tool_panel_dict()
Submodules¶
galaxy.tool_shed.galaxy_install.install_manager module¶
- class galaxy.tool_shed.galaxy_install.install_manager.InstallRepositoryManager(app: StructuredApp, tpm: Optional[ToolPanelManager] = None)[source]¶
Bases:
object
- __init__(app: StructuredApp, tpm: Optional[ToolPanelManager] = None)[source]¶
- app: StructuredApp¶
- tpm: ToolPanelManager¶
- install(tool_shed_url: str, name: str, owner: str, changeset_revision: str, install_options: Dict[str, Any])[source]¶
- install_tool_shed_repository(tool_shed_repository, repo_info_dict, tool_panel_section_key, shed_tool_conf, tool_path, install_resolver_dependencies, install_tool_dependencies, reinstalling=False, tool_panel_section_mapping=None, install_options=None)[source]¶
- update_tool_shed_repository(repository, tool_shed_url, latest_ctx_rev, latest_changeset_revision, install_new_dependencies=True, install_options=None)[source]¶
- order_components_for_installation(tsr_ids, repo_info_dicts, tool_panel_section_keys)[source]¶
Some repositories may have repository dependencies that are required to be installed before the dependent repository. This method will inspect the list of repositories about to be installed and make sure to order them appropriately. For each repository about to be installed, if required repositories are not contained in the list of repositories about to be installed, then they are not considered. Repository dependency definitions that contain circular dependencies should not result in an infinite loop, but obviously prior installation will not be handled for one or more of the repositories that require prior installation.
galaxy.tool_shed.galaxy_install.installed_repository_manager module¶
Class encapsulating the management of repositories installed into Galaxy from the Tool Shed.
- class galaxy.tool_shed.galaxy_install.installed_repository_manager.InstalledRepositoryManager(app: MinimalManagerApp)[source]¶
Bases:
object
- __init__(app: MinimalManagerApp)[source]¶
Among other things, keep in in-memory sets of tuples defining installed repositories and tool dependencies along with the relationships between each of them. This will allow for quick discovery of those repositories or components that can be uninstalled. The feature allowing a Galaxy administrator to uninstall a repository should not be available to repositories or tool dependency packages that are required by other repositories or their contents (packages). The uninstall feature should be available only at the repository hierarchy level where every dependency will be uninstalled. The exception for this is if an item (repository or tool dependency package) is not in an INSTALLED state - in these cases, the specific item can be uninstalled in order to attempt re-installation.
- app: MinimalManagerApp¶
- repository_dependencies_of_installed_repositories: Dict[Tuple[str, str, str, str], List[Tuple[str, str, str, str]]]¶
- installed_repository_dependencies_of_installed_repositories: Dict[Tuple[str, str, str, str], List[Tuple[str, str, str, str]]]¶
- installed_dependent_repositories_of_installed_repositories: Dict[Tuple[str, str, str, str], List[Tuple[str, str, str, str]]]¶
- activate_repository(repository: ToolShedRepository) None [source]¶
Activate an installed tool shed repository that has been marked as deactivated.
- add_entry_to_installed_repository_dependencies_of_installed_repositories(repository: ToolShedRepository) None [source]¶
Add an entry to self.installed_repository_dependencies_of_installed_repositories. A side-effect of this method is the population of self.installed_dependent_repositories_of_installed_repositories. Since this method discovers all repositories required by the received repository, it can use the list to add entries to the reverse dictionary.
- add_entry_to_repository_dependencies_of_installed_repositories(repository: ToolShedRepository) None [source]¶
Add an entry to self.repository_dependencies_of_installed_repositories.
- get_containing_repository_for_tool_dependency(tool_dependency_tup: tuple) ToolShedRepository [source]¶
- get_dependencies_for_repository(tool_shed_url: str, repo_info_dict: Dict[str, Union[Tuple[str, str, str, str, str, Dict[str, Union[Dict[str, Any], List[Dict[str, Any]]]]], Tuple[str, str, str, str, str, Optional[Any], Dict[str, Union[Dict[str, Any], List[Dict[str, Any]]]]]]], includes_tool_dependencies, updating=False) Dict[str, Any] [source]¶
Return dictionaries containing the sets of installed and missing tool dependencies and repository dependencies associated with the repository defined by the received repo_info_dict.
- get_installed_and_missing_repository_dependencies(repository: ToolShedRepository) Tuple[Dict[str, Any], Dict[str, Any]] [source]¶
Return the installed and missing repository dependencies for a tool shed repository that has a record in the Galaxy database, but may or may not be installed. In this case, the repository dependencies are associated with the repository in the database. Do not include a repository dependency if it is required only to compile a tool dependency defined for the dependent repository since these special kinds of repository dependencies are really a dependency of the dependent repository’s contained tool dependency, and only if that tool dependency requires compilation.
- get_installed_and_missing_repository_dependencies_for_new_or_updated_install(repo_info_tuple) Tuple[Dict[str, Any], Dict[str, Any]] [source]¶
Parse the received repository_dependencies dictionary that is associated with a repository being installed into Galaxy for the first time and attempt to determine repository dependencies that are already installed and those that are not.
- get_installed_and_missing_tool_dependencies_for_repository(tool_dependencies_dict: Dict[str, Union[Dict[str, Any], List[Dict[str, Any]]]]) Tuple[Dict[str, Union[Dict[str, Any], List[Dict[str, Any]]]], Dict[str, Union[Dict[str, Any], List[Dict[str, Any]]]]] [source]¶
Return the lists of installed tool dependencies and missing tool dependencies for a set of repositories being installed into Galaxy.
- get_repository_dependency_tups_for_installed_repository(repository, dependency_tups=None, status=None) List[Tuple[str, str, str, str]] [source]¶
Return a list of of tuples defining tool_shed_repository objects (whose status can be anything) required by the received repository. The returned list defines the entire repository dependency tree. This method is called only from Galaxy.
- get_repository_tuple_for_installed_repository_manager(repository: ToolShedRepository) Tuple[str, str, str, str] [source]¶
- get_repository_install_dir(tool_shed_repository: ToolShedRepository) Optional[str] [source]¶
- handle_existing_tool_dependencies_that_changed_in_update(repository: ToolShedRepository, original_dependency_dict, new_dependency_dict) Tuple[List[str], List[str]] [source]¶
This method is called when a Galaxy admin is getting updates for an installed tool shed repository in order to cover the case where an existing tool dependency was changed (e.g., the version of the dependency was changed) but the tool version for which it is a dependency was not changed. In this case, we only want to determine if any of the dependency information defined in original_dependency_dict was changed in new_dependency_dict. We don’t care if new dependencies were added in new_dependency_dict since they will just be treated as missing dependencies for the tool.
- uninstall_repository(repository: ToolShedRepository, remove_from_disk=True) str [source]¶
- remove_entry_from_installed_repository_dependencies_of_installed_repositories(repository: ToolShedRepository) None [source]¶
Remove an entry from self.installed_repository_dependencies_of_installed_repositories. A side-effect of this method is removal of appropriate value items from self.installed_dependent_repositories_of_installed_repositories.
- remove_entry_from_repository_dependencies_of_installed_repositories(repository: ToolShedRepository) None [source]¶
Remove an entry from self.repository_dependencies_of_installed_repositories.
- repository_dependency_needed_only_for_compiling_tool_dependency(repository: ToolShedRepository, repository_dependency) bool [source]¶
galaxy.tool_shed.galaxy_install.update_repository_manager module¶
Determine if installed tool shed repositories have updates available in their respective tool sheds.
- class galaxy.tool_shed.galaxy_install.update_repository_manager.UpdateToChangeset(changeset_revision, ctx_rev)[source]¶
Bases:
tuple
- property changeset_revision¶
Alias for field number 0
- property ctx_rev¶
Alias for field number 1
- class galaxy.tool_shed.galaxy_install.update_repository_manager.UpdateRepositoryManager(app)[source]¶
Bases:
object
- get_update_to_changeset_revision_and_ctx_rev(repository: ToolShedRepository) UpdateToChangeset [source]¶
Return the changeset revision hash to which the repository can be updated.
- update_repository_record(repository: ToolShedRepository, updated_metadata_dict, updated_changeset_revision, updated_ctx_rev) ToolShedRepository [source]¶
Update a tool_shed_repository database record with new information retrieved from the Tool Shed. This happens when updating an installed repository to a new changeset revision.