Mercurial > repos > jjohnson > snpeff
diff snpEff.xml @ 21:c780e3f75b3d
Filter genome history snpeffdb by snpeff_version
| author | Jim Johnson <jj@umn.edu> |
|---|---|
| date | Wed, 14 Jan 2015 12:03:21 -0600 |
| parents | 2e37b58fc24d |
| children | bb0797deab78 |
line wrap: on
line diff
--- a/snpEff.xml Tue Jan 13 16:01:31 2015 -0600 +++ b/snpEff.xml Wed Jan 14 12:03:21 2015 -0600 @@ -1,4 +1,4 @@ -<tool id="snpEff" name="SnpEff" version="@WRAPPER_VERSION@.2"> +<tool id="snpEff" name="SnpEff" version="@WRAPPER_VERSION@.3"> <description>Variant effect and annotation</description> <expand macro="requirements" /> <macros> @@ -118,7 +118,7 @@ <param name="genomeVersion" type="select" label="Genome"> <!--GENOME DESCRIPTION--> <options from_data_table="snpeffv_genomedb"> - <filter type="static_value" name="snpeff_version" value="SnpEff4.0" column="1"/> + <filter type="static_value" name="snpeff_version" value="@SNPEFF_VERSION@" column="1"/> <filter type="unique_value" column="2" /> </options> </param> @@ -138,7 +138,12 @@ </param> </when> <when value="history"> - <param format="snpeffdbv40" name="snpeff_db" type="data" label="SnpEff Genome Version Data"/> + <param format="snpeffdb" name="snpeff_db" type="data" label="@SNPEFF_VERSION@ Genome Data"> + <options options_filter_attribute="metadata.snpeff_version" > + <filter type="add_value" value="@SNPEFF_VERSION@" /> + </options> + <validator type="expression" message="This version of SnpEff will only work with @SNPEFF_VERSION@ Genome databases.">value is not None and value.metadata.snpeff_version == "@SNPEFF_VERSION@"</validator> + </param> <!-- From metadata --> <param name="extra_annotations" type="select" display="checkboxes" multiple="true" label="Additional annotations"> <help>These are available for only a few genomes</help>
