blend4php  v0.1
A PHP API for interacting with Galaxy
 All Classes Functions Variables Pages
GalaxyToolShedRepositories Class Reference

Public Member Functions

 __construct (GalaxyInstance $galaxy)
 
 checkForUpdates ($params)
 
 exportedWorkflows ($params)
 
 install ($params)
 
 getLatestInstallable ($params)
 
 importWorkflow ($params)
 
 importWorkflows ($params)
 
 index ()
 
 install_repository_revision ($params)
 
 repair_repository_revision ($params)
 
 reset_metadata_on_installed_repositories ()
 
 show ($params)
 
 status ($params)
 

Constructor & Destructor Documentation

GalaxyToolShedRepositories::__construct ( GalaxyInstance  $galaxy)

The Tools constructor.

Parameters
GalaxyInstance$galaxyA GalaxyInstance object.
Returns
An instance of a Tool shed repositories object.

Member Function Documentation

GalaxyToolShedRepositories::checkForUpdates (   $params)

Check for updates to the specified repository, or all installed repositories. GET /api/tool_shed_repositories/check_for_updates

Parameters
$paramsAn associative array containing the input parameters for this function. The following parameters are available:
  • id: the galaxy-side encoded repository ID
Returns
GalaxyToolShedRepositories::exportedWorkflows (   $params)

Displays a list of dictionaries containing information about this tool shed repository's exported workflows

Corresponds to the Galaxy API/path at GET /api/tool_shed_repositories/{encoded_tool_shed_repository_id}/ exported_workflows

Parameters
$paramsAn associative array containing the input parameters for this function. The following parameters are available:
  • tool_shed_repo_id: Encoded Tool Shed Repository object encoded ID. To obtain a tool shed repository id, please use this class's index() function.
Returns
An array containing information about a tool shed repository's exported workflow.
GalaxyToolShedRepositories::getLatestInstallable (   $params)

Get the latest installable revision of a specified repository from a specified Tool Shed.

Corresponds to the Galaxy API/path at POST /api/tool_shed_repositories/get_latest_installable_revision

Parameters
$paramsAn associative array containing the input parameters for this function. The following parameters are available:
Returns
A changeset_revision hash (describes the revison 'number' of the tool) i.e 1:7002b364c3f8

1 being the true rev. number (the larger the more changes it's been through, behind the colon is a supposed unique hash string, though collisions happen)

GalaxyToolShedRepositories::importWorkflow (   $params)

Import the specified exported workflow contained in a tool shed repo.

Corresponds to the Galaxy API/method at POST /api/tool_shed_repositories/import_workflow

Parameters
$paramsAn associative array containing the input parameters for this function. The following parameters are available:
  • tool_shed_repo_id: The encoded id of the Tool Shed Repository object.
  • index: The location of the workflow to import from within the specified toolshed, defaults to 0 the index location of the workflow tuple in the list of exported workflows stored in the metadata for the specified repository.
Returns
An array containing informaiton of the imported workflow.
GalaxyToolShedRepositories::importWorkflows (   $params)

Import all of the exported workflows contained in the specified installed tool shed repository into Galaxy. POST /api/tool_shed_repositories/import_workflows

Parameters
$paramsAn associative array containing the input parameters for this function. The following parameters are available:
  • id: the encoded id of the ToolShedRepository object.
Returns
GalaxyToolShedRepositories::index ( )

Display metadata on external tool shed repositories in galaxy instance

Corresponds to the Galaxy API/path at GET /api/tool_shed_repositories

Returns
An array containing metadata on remote toolsheds galaxy instance.
GalaxyToolShedRepositories::install (   $params)

Initiate the installation of a repository. POST /api/tool_shed_repositories/install

Parameters
$paramsAn associative array containing the input parameters for this function. The following parameters are available:
  • tool_shed_url: The URL for the toolshed whence this repository is being installed.
  • name: The name of the tool shed.
  • owner: The owner of the tool shed.
  • install_tool_dependencies (Optional): True to install tool dependencies.
  • tool_panel_section_id (Optional): The unique identifier for an existing tool panel section
  • install_repository_dependencies (Optional): True to install repository dependencies.
  • new_tool_panel_section_label (Optional): Create a new tool panel section with this label.
  • shed_tool_conf (Optional): The shed tool config file to use for this installation.
  • changeset (Optional): The changeset to update to after cloning the repository.
Returns
A URL linking to the tool shed's installation progress on the local server.
GalaxyToolShedRepositories::install_repository_revision (   $params)

Install a specified repository revision from a specified tool shed repo.

Corresponds to the Galaxy API/path POST /api/tool_shed_repositories/install_repository_revision

Parameters
$paramsAn associative array containing the input parameters for this function. The following parameters are available:
  • tool_shed_url: The base URL of the Tool Shed from which to install the repository.
  • name: The name of the repository.
  • owner: The name of the owner of the repository.
  • changeset_revision: The changeset_revision of the Repository Meta Data object associated with the Repository.
  • new_tool_panel_section_label (Optional): Label of a new section to be added to the Galaxy tool panel in which to load tools contained in the Repository. Either this parameter must be an empty string or the tool_panel_section_id paramter must be an empty string or both must be an empty string. BOTH CANNOT BE USED SIMULTANEOUSLY
  • tool_panel_section_id (Optional): Id of the Galaxy tool panel section in which to load tools contained in the Repository. Either this parameter must be an empty string or new_tool_panel_section_label paramter must be an empty string or both must be an empty string. BOTH CANNOT BE USED SIMULTANEOUSLY
  • install_repository_dependencies (Optional): Set to True if you want to install repository dependencies defined for the specified repository being installed. The default setting is False.
  • install_tool_dependencies (Optional): Set to True if you want to install tool dependencies defined for the specified repository being installed. The default setting is False.
  • shed_tool_conf (Optional): The shed-related tool panel configuration file configured in the "tool_config_file" setting in the Galaxy config file (ex: galaxy.ini). At least oneshed-reelated tool panel config file is required to be configured. Setting this paramter to a specific file enables you to choose where the specified repository will be installed because the tool_path attribute of the toolbox from the specified file is used as the installation location (ex: toolbox tool_path="../shed_tools"). If this parameter is not set, a shed-related tool ppanel configuration file will be selected automatically.
GalaxyToolShedRepositories::repair_repository_revision (   $params)

Repair a specified repository revision previously installed into Galaxy

Corresponds to the Galaxy method/path POST /api/tool_shed_repositories/repair_repository_revision

Parameters
$paramsAn associative array containing the input parameters for this function. The following parameters are available:
  • tool_shed_url: The base URL of the Tool Shed from which the Repo was installed.
  • name: The name of the Repository.
  • owner: The owner of the Repository.
  • changeset_revision: The changeset_revision of the Repository Meta data object associated with the Repository.
GalaxyToolShedRepositories::reset_metadata_on_installed_repositories ( )

Resets all metadata on all repositories installed.

Corresponds to the Galaxy API/path PUT /api/tool_shed_repositories/reset_metadata_on_installed_repositories

GalaxyToolShedRepositories::show (   $params)

Display a dictionary containing information about a specified tool_shed_repository. GET /api/tool_shed_repositories/{encoded_tool_shed_repsository_id}

Parameters
$paramsAn associative array containing the input parameters for this function. The following parameters are available:
  • id: the encoded id of the ToolShedRepository object.
Returns
GalaxyToolShedRepositories::status (   $params)

Display a dictionary containing information about a specified repository's installation status and a list of its dependencies and the status of each. GET /api/tool_shed_repositories/{id}/status

Parameters
$paramsAn associative array containing the input parameters for this function. The following parameters are available:
  • id: the repository's encoded id
Returns

The documentation for this class was generated from the following file: