[Iplant-api-dev] Example/docs for multiple file selection

Matthew Vaughn vaughn at tacc.utexas.edu
Sun Feb 22 17:56:21 MST 2015


I’m working on publishing an Agave app that expects multiple filenames passed as the value of a single parameter. In other words, the maxCardinality of this input is > 1.  I have a few related questions:

1. For the input specified below, what does it look like to pass multiple values in at job submission time
2. How do I write in my template script the ability to unpack the multi-file submission and present it as a space-delimited list 
3. Will the Agave files service move all the files specified at job submission time?

==command-line

python3 script.py -miRNAfile FILE1 FILE2 FILE3 

==wrapper

I suspect its more complex that this, which is what I would do if this were a single file input 

python3 script.py ${miRNAfiles}

==input

{
    "id": "miRNAFiles",
    "value": {
        "default": "",
        "type": "string",
        "validator": "",
        "visible": true,
        "required": true
    },
    "details": {
        "label": "miRNA sequence files",
        "description": "Contains one or more miRNA sequences in FASTA format",
        "argument": "-miRNAFile ",
        "showArgument": true
    },
    "semantics": {
        "ontology": [
            "http://sswapmeet.sswap.info/mime/application/X-fasta"
        ],
        "minCardinality": 1,
        "maxCardinality": 20,
        "fileTypes": [
            "fasta-0",
            "text-0",
            "raw-0"
        ]
    }
}



More information about the Iplant-api-dev mailing list