blend4php
v0.1
A PHP API for interacting with Galaxy
|
Public Member Functions | |
__construct (GalaxyInstance $galaxy) | |
index () | |
show ($viz_id) | |
create ($type, $title, $dbkey, $import_id=NULL) | |
update ($viz_id, $title=NULL, $dbkey=NULL, $config=NULL) | |
GalaxyVisualizations::__construct | ( | GalaxyInstance | $galaxy | ) |
The visualizations constructor.
GalaxyInstance | $galaxy | A GalaxyInstance object |
GalaxyVisualizations::create | ( | $type, | |
$title, | |||
$dbkey, | |||
$import_id = NULL |
|||
) |
Imports copy of existing visualizatiion into the workplace.
Corresponds to the Galaxy API/paths at POST /api/visualizations or POST /api/visualizations?import_id={encoded_visualization_id}
$type | The visualization type for the new visualization. |
$title | The title for the visualization. |
$dbkey | The db key. |
$import_id | (optional) The id of the visualization to import, if the user desires to import a visualization. |
GalaxyVisualizations::index | ( | ) |
Retreive a list of all visualizations.
Corresponds to the Galaxy API/path GET /api/visualizations
GalaxyVisualizations::show | ( | $viz_id | ) |
Retreive detailed information about a specific visualization.
Corresponds to the Galaxy API/path GET /api/visualizations/{viz_id}
$viz_id | The visualization id whos details to display. |
GalaxyVisualizations::update | ( | $viz_id, | |
$title = NULL , |
|||
$dbkey = NULL , |
|||
$config = NULL |
|||
) |
Update a specific visualization
Corresponds to the Galaxy API/path at PUT /api/visualizations/{visualizations id}
$viz_id | visualization id of the visualization to update. To obtain this id please use this class's index method. |
$title | If the user is changing the title, include the new title. |
$dbkey | If the user is changing the new db key, include the new dbkey. |
$config | The configuration of the visualization. |