view data_manager/data_manager_snpEff_databases.xml @ 4:47ddc9f4d0b6

Add tests to datamanagers
author Jim Johnson <jj@umn.edu>
date Mon, 07 Oct 2013 10:59:44 -0500
parents 6ad9205c1307
children 8952990fcab9
line wrap: on
line source

<tool id="data_manager_snpeff_databases" name="SnpEff Databases" version="3.3" tool_type="manage_data">
	<description>Read the list of available snpEff databases</description>
	<requirements>
		<requirement type="package" version="3.3">snpEff</requirement>
	</requirements>
	<command interpreter="python">
        data_manager_snpEff_databases.py --jar_path \$SNPEFF_JAR_PATH/snpEff.jar "$out_file"
        </command>
	<inputs>
	</inputs>
	<outputs>
           <data name="out_file" format="data_manager_json"/>
	</outputs>
        <stdio>
          <exit_code range=":-1"  level="fatal"   description="Error: Cannot open file" />
          <exit_code range="1:"  level="fatal"   description="Error" />
        </stdio>
        <tests>
            <test>
                <output name="out_file">
                    <assert_contents>
                        <!-- Check that a genome was added -->
                        <has_text text="GRCh37.72" />
                    </assert_contents>
                </output>
            </test>
        </tests>
	<help>

This tool updatess the list of SnpEff databases for the SnpEff Download data manager.
It should only need to be run once for a snpEff version, 
since it populates the SnpEff Download data manager from the snpEff config file.

For information about snpEff:    http://snpEff.sourceforge.net

	</help>
</tool>