view alveo_get_item_list.xml @ 10:e2989a1d751d draft

planemo upload commit 063e049d569aeb45e1008cbf044f2dad850eca3d-dirty
author stevecassidy
date Wed, 07 Dec 2016 19:09:55 -0500
parents 2f4907372748
children fd22df0c6d9b
line wrap: on
line source

<tool id="alveo_get_item_list" name="Get Item URLs for Item List" version="0.01">
    <description>Retrieves Item URLs from an Alveo Item List</description>

    <requirements>
        <requirement type="package" version="0.7">pyalveo</requirement>
    </requirements>

    <command interpreter="python">
        alveo_get_item_list.py --api_key $api_key --item_list_url $item_list_url --output $output
    </command>

    <inputs>
        <param name="api_key" type="data" format="auth_token" label="API Key" help="Your Alveo API key"/>
        <param name="import_list" type="data" format="tabular" label="Imported Alveo Item List" help=""/>

        <param name="item_list_url" type="select" label="Alveo Item List" help="The Alveo Item List you wish to import">
            <options from_dataset="import_list">
                <column name="name" index="0"/>
                <column name="value" index="1"/>
            </options>
        </param>

        <param name="job_name" type="text" size="25"
               label="Supply a name for the outputs to remind you what they contain" value="Item List"/>
    </inputs>

    <outputs>
        <data format="item_list" name="output" label="${job_name}"/>
    </outputs>

    <tests>
        <test>
            <param name="api_key" value="api-key.dat"/>
            <param name="import_list" value="item-lists.dat"/>
            <param name="item_list_url" value="https://app.alveo.edu.au/item_lists/180"/>
            <param name="job_name" value="test_output_180.dat"/>
            <output name="output" file="item_list_180.dat"/>
        </test>
    </tests>

    <help>Get the URLs of all of the items from an Alveo item list.</help>
    <citations>
        <citation type='bibtex'>
            @article{cassidy2014alveo,
              title={The alveo virtual laboratory: a web based repository API},
              author={Cassidy, Steve and Estival, Dominique and Jones, Tim and Sefton, Peter and Burnham, Denis and Burghold, Jared and others},
              year={2014},
              publisher={Reykjavik, Iceland: European Language Resources Association}
            }
        </citation>
    </citations>
</tool>