-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hi guys, trying to determine how to format the $inputs variable in such a way that a 'list' is created. Read below for more details:
So we have a workflow that accepts inputs (files) as a 'list'
Each file is uploaded using the code:
$file = tripal_galaxy_upload_file($galaxy_conn, $species_files_fid[$i], $history['id'], $history_contents);
And saved in the $galaxy_files array variable.
This file gets put into the $inputs variable like this:
array_push($inputs, array( 'id' => $galaxy_files[$i]['id'], 'src' => $galaxy_files[$i]['hda_ldda'], ) );
This causes the $inputs array to show create something like
$input[0], $input[1] etc each containing the file information.
I'm wondering though if Galaxy will understand that this is a 'list'.
Full code can be seen here (please excuse the code - this is development code):
https://gitlab.com/TreeGenes/orthoquery_advanced/blob/master/includes/orthoquery_advanced_galaxy.inc#L212
You can see the workflow where you can see the inputs required should be in a 'list':
https://gitlab.com/TreeGenes/orthoquery_advanced/blob/master/workflows/Galaxy-Workflow-OrthoQuery_proteome.ga
Any help would be appreciated? Thanks!