view bulk-operations.xml @ 3:d40860663861 draft

planemo upload commit 1a35e82b210719d58263c618f9a67801db26d391
author nathandunn
date Sat, 02 Dec 2017 16:41:34 -0500
parents 88e1bd76b069
children
line wrap: on
line source

<tool id="monarch-bulk-operations" name="Bulk Operations" version="0.1.0">
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="frontmatter" />
    <command><![CDATA[
curl --silent -X GET --header 'Accept: application/json' 'https://api.monarchinitiative.org/api/mart/$association/$object_category/$taxon?rows=$rows&fetch_objects=true' > $output
	]]></command>
    <inputs>
        <param name="taxon" type="text" format="txt" multiple="false" label="Taxon (e.g. NCBITaxon:9606)"/>
        <param name="object_category" type="text" format="txt" multiple="false" label="Object Category (e.g. phenotype, disease)"/>
        <param name="association" type="select" multiple="false" display="radio" label="Type">
            <option value="gene">Gene</option>
            <option value="disease">Disease</option>
            <option value="case">Case</option>
        </param>
        <param name="rows" type="text" format="txt" multiple="false" value="1000" label="Num Rows"/>
    </inputs>
    <expand macro="outputs" />
    <tests>
        <!--NOTE: these take way too long to run because fo the large amount of data involved-->
        <!--<test>-->
            <!--<param name="type" value="gene"/>-->
            <!--<param name="taxon" value="NCBITaxon:9606"/>-->
            <!--<param name="rows" value="1"/>-->
            <!--<param name="object_category" value="phenotype"/>-->
            <!--<output name="output" file="gene-mart-for-phenotype.json"/>-->
        <!--</test>-->
        <!--<test>-->
            <!--<param name="type" value="disease"/>-->
            <!--<param name="taxon" value="NCBITaxon:9606"/>-->
            <!--<param name="rows" value="1"/>-->
            <!--<param name="object_category" value="phenotype"/>-->
            <!--<output name="output" file="disease-mart-for-phenotype.json"/>-->
        <!--</test>-->
        <!--<test>-->
            <!--<param name="type" value="case"/>-->
            <!--<param name="taxon" value="NCBITaxon:9606"/>-->
            <!--<param name="rows" value="1"/>-->
            <!--<param name="object_category" value="phenotype"/>-->
            <!--<output name="output" file="case-mart-for-phenotype.json"/>-->
        <!--</test>-->
    </tests>
    <expand macro="citations" />
</tool>