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.
tool_shed.tools package¶
Submodules¶
tool_shed.tools.data_table_manager module¶
-
class
tool_shed.tools.data_table_manager.
ShedToolDataTableManager
(app)[source]¶ Bases:
object
-
generate_repository_info_elem
(tool_shed, repository_name, changeset_revision, owner, parent_elem=None, **kwd)[source]¶ Create and return an ElementTree repository info Element.
-
generate_repository_info_elem_from_repository
(tool_shed_repository, parent_elem=None, **kwd)[source]¶
-
get_tool_index_sample_files
(sample_files)[source]¶ Try to return the list of all appropriate tool data sample files included in the repository.
-
handle_missing_data_table_entry
(relative_install_dir, tool_path, repository_tools_tups)[source]¶ Inspect each tool to see if any have input parameters that are dynamically generated select lists that require entries in the tool_data_table_conf.xml file. This method is called only from Galaxy (not the tool shed) when a repository is being installed or reinstalled.
-
handle_sample_tool_data_table_conf_file
(filename, persist=False)[source]¶ Parse the incoming filename and add new entries to the in-memory self.app.tool_data_tables dictionary. If persist is True (should only occur if call is from the Galaxy side, not the tool shed), the new entries will be appended to Galaxy’s shed_tool_data_table_conf.xml file on disk.
-
-
tool_shed.tools.data_table_manager.
ToolDataTableManager
¶ alias of
ShedToolDataTableManager
tool_shed.tools.tool_validator module¶
-
class
tool_shed.tools.tool_validator.
ToolValidator
(app)[source]¶ Bases:
object
-
can_use_tool_config_disk_file
(repository, repo, file_path, changeset_revision)[source]¶ Determine if repository’s tool config file on disk can be used. This method is restricted to tool config files since, with the exception of tool config files, multiple files with the same name will likely be in various directories in the repository and we’re comparing file names only (not relative paths).
-
check_tool_input_params
(repo_dir, tool_config_name, tool, sample_files)[source]¶ Check all of the tool’s input parameters, looking for any that are dynamically generated using external data files to make sure the files exist.
-
copy_disk_sample_files_to_dir
(repo_files_dir, dest_path)[source]¶ Copy all files currently on disk that end with the .sample extension to the directory to which dest_path refers.
-
get_latest_tool_config_revision_from_repository_manifest
(repo, filename, changeset_revision)[source]¶ Get the latest revision of a tool config file named filename from the repository manifest up to the value of changeset_revision. This method is restricted to tool_config files rather than any file since it is likely that, with the exception of tool config files, multiple files will have the same name in various directories within the repository.
-
get_list_of_copied_sample_files
(repo, ctx, dir)[source]¶ Find all sample files (files in the repository with the special .sample extension) in the reversed repository manifest up to ctx. Copy each discovered file to dir and return the list of filenames. If a .sample file was added in a changeset and then deleted in a later changeset, it will be returned in the deleted_sample_files list. The caller will set the value of app.config.tool_data_path to dir in order to load the tools and generate metadata for them.
-
handle_sample_files_and_load_tool_from_disk
(repo_files_dir, repository_id, tool_config_filepath, work_dir)[source]¶ Copy all sample files from disk to a temporary directory since the sample files may be in multiple directories.
-
handle_sample_files_and_load_tool_from_tmp_config
(repo, repository_id, changeset_revision, tool_config_filename, work_dir)[source]¶
-
load_tool_from_changeset_revision
(repository_id, changeset_revision, tool_config_filename)[source]¶ Return a loaded tool whose tool config file name (e.g., filtering.xml) is the value of tool_config_filename. The value of changeset_revision is a valid (downloadable) changeset revision. The tool config will be located in the repository manifest between the received valid changeset revision and the first changeset revision in the repository, searching backwards.
-