Skip to content

How to upload files to a 'list' specified in the workflow #156

@risharde

Description

@risharde

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions