annotate list_spaln_tables.xml @ 1:37b5e1f0b544 draft

"planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
author iuc
date Thu, 16 Jul 2020 07:57:10 -0400
parents
children dd0cd2319ae5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
1 <tool id="list_spaln_tables" name="List spaln parameter tables" version="@TOOL_VERSION@+galaxy0">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
2 <description>Given a query species, list the spaln settings tables that exist, from closest related species to most different</description>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
3 <macros>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
4 <import>macros.xml</import>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
5 </macros>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
6 <requirements>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
7 <requirement type="package" version="3.8">python</requirement>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
8 <requirement type="package" version="@TOOL_VERSION@">spaln</requirement>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
9 <requirement type="package" version="1.0.7">rust-ncbitaxonomy</requirement>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
10 </requirements>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
11 <command detect_errors="aggressive"><![CDATA[
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
12 #if $gnm2tab.gnm2tab_source == "spaln_tool"
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
13 SPALN_LOCATION=\$(dirname \$(dirname \$(which spaln))) &&
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
14 GNM2TAB_PATH="\$SPALN_LOCATION/share/spaln/table/gnm2tab" &&
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
15 if [[ -f "\$GNM2TAB_PATH" ]] ; then
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
16 ln -s "\$GNM2TAB_PATH" gnm2tab ;
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
17 else
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
18 echo "Cannot find builtin gnm2tab file \$SPALN_LOCATION : \$GNM2TAB_PATH" >&2 ; exit 1 ;
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
19 fi &&
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
20 #else
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
21 ln -s '${gnm2tab.gnm2tab_file}' gnm2tab &&
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
22 #end if
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
23 #if $taxonomy.taxonomy_source == "cached"
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
24 ln -s '${taxonomy.taxonomy_sqlite_table.fields.path}/tax.ncbitaxonomy.sqlite' tax.ncbitaxonomy.sqlite &&
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
25 #else
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
26 ln -s '${taxonomy.taxonomy_sqlite_file}' tax.ncbitaxonomy.sqlite &&
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
27 #end if
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
28 python '${__tool_directory__}/list_spaln_tables.py' --taxonomy_db tax.ncbitaxonomy.sqlite --gnm2tab_file gnm2tab '$taxon' | sort -k1n > '${output}'
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
29 ]]></command>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
30 <inputs>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
31 <param name="taxon" label="Scientific name" type="text" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
32 <conditional name="gnm2tab">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
33 <param name="gnm2tab_source" type="select" label="Choose source of gnm2tab file">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
34 <option value="spaln_tool" selected="true">From the spaln tool installation</option>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
35 <option value="history">From dataset in history</option>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
36 </param>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
37 <when value="spaln_tool" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
38 <when value="history">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
39 <param name="gnm2tab_file" type="data" format="tabular" label="gnm2tab file from spaln" help="The gnm2tab file should be from the table directory of spaln v. @TOOL_VERSION@" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
40 </when>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
41 </conditional>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
42 <conditional name="taxonomy">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
43 <param type="select" name="taxonomy_source">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
44 <option value="cached" selected="true">Use built-in NCBI Taxonomy SQLite database</option>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
45 <option value="history">Use NCBI Taxonomy SQLite database from history</option>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
46 </param>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
47 <when value="cached">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
48 <param type="select" name="taxonomy_sqlite_table" label="NCBI Taxonomy SQLite database">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
49 <options from_data_table="ncbi_taxonomy_sqlite">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
50 <filter type="sort_by" column="1" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
51 <validator type="no_options" message="No NCBI Taxonomy SQLite database is available" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
52 </options>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
53 </param>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
54 </when>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
55 <when value="history">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
56 <param name="taxonomy_sqlite_file" type="data" format="sqlite" label="NCBI Taxonomy SQLite database" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
57 </when>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
58 </conditional>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
59 </inputs>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
60 <outputs>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
61 <data name="output" format="tabular">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
62 <actions>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
63 <action name="column_names" type="metadata" default="dist_all,dist_canonical,common_ancestor,species_code,settings_group,scientific_name" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
64 </actions>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
65 </data>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
66 </outputs>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
67
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
68 <tests>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
69 <test>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
70 <param name="taxon" value="Lates calcarifer" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
71 <conditional name="gnm2tab">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
72 <param name="gnm2tab_source" value="spaln_tool" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
73 </conditional>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
74 <conditional name="taxonomy">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
75 <param name="taxonomy_source" value="history" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
76 <param name="taxonomy_sqlite_file" ftype="sqlite" value="sqlite_taxdb/tax.ncbitaxonomy.sqlite" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
77 </conditional>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
78 <output name="output">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
79 <assert_contents>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
80 <has_line_matching expression="5\t4\tActinopteri\tcynosemi\tFish_mdl\tCynoglossus semilaevis" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
81 <has_line_matching expression="30\t7\tEukaryota\tzea_mays\tMagnolio\tZea mays" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
82 </assert_contents>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
83 </output>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
84 </test>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
85 <test>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
86 <param name="taxon" value="Lates calcarifer" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
87 <conditional name="gnm2tab">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
88 <param name="gnm2tab_source" value="spaln_tool" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
89 </conditional>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
90 <conditional name="taxonomy">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
91 <param name="taxonomy_source" value="cached" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
92 <param name="taxonomy_sqlite_table" value="sample" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
93 </conditional>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
94 <output name="output">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
95 <assert_contents>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
96 <has_line_matching expression="5\t4\tActinopteri\tcynosemi\tFish_mdl\tCynoglossus semilaevis" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
97 <has_line_matching expression="30\t7\tEukaryota\tzea_mays\tMagnolio\tZea mays" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
98 </assert_contents>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
99 </output>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
100 </test>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
101 <test>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
102 <param name="taxon" value="Lates calcarifer" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
103 <conditional name="gnm2tab">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
104 <param name="gnm2tab_source" value="history" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
105 <param name="gnm2tab_file" ftype="tabular" value="gnm2tab" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
106 </conditional>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
107 <conditional name="taxonomy">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
108 <param name="taxonomy_source" value="cached" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
109 <param name="taxonomy_sqlite_table" value="sample" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
110 </conditional>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
111 <output name="output">
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
112 <assert_contents>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
113 <has_line_matching expression="5\t4\tActinopteri\tcynosemi\tFish_mdl\tCynoglossus semilaevis" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
114 <has_line_matching expression="30\t7\tEukaryota\tzea_mays\tMagnolio\tZea mays" />
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
115 </assert_contents>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
116 </output>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
117 </test>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
118 </tests>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
119 <help><![CDATA[
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
120 Spaln has a number of pre-computed settings files to tune its predictions for different species. These
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
121 are listed in a file named gnm2tab_ in the package. This tool uses the NCBI Taxonomy database to search
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
122 that able for a suitable (i.e. taxonomically close) set of settings for optimising spaln's alignment
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
123 predictions.
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
124
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
125 Input is the scientific name of a species (as reflected in the NCBI Taxonomy DB), output is
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
126 information from the gnm2tab file sorted by taxonomic distance from the query species.
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
127
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
128 .. _gnm2tab: https://github.com/ogotoh/spaln/blob/master/table/gnm2tab
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
129 ]]></help>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
130 <citations>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
131 </citations>
37b5e1f0b544 "planemo upload for repository https://github.com/ogotoh/spaln commit 4cfc21ef8456ca8b8da0a8a8c045b8a472858608"
iuc
parents:
diff changeset
132 </tool>