annotate hyphy_fubar.xml @ 0:a52fcdeacf3d draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
author rdvelazquez
date Tue, 12 Jun 2018 13:59:32 -0400
parents
children fa2236bc5ab2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
1 <?xml version="1.0"?>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
2 <tool id="hyphy_fubar" name="HyPhy-FUBAR" version="@VERSION@+galaxy0">
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
3 <description>: Fast Unconstrained Bayesian AppRoximation</description>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
4 <macros>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
5 <import>macros.xml</import>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
6 </macros>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
7 <expand macro="requirements" />
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
8 <version_command>HYPHYMP --version | tail -n 1 | awk '{print $1}'</version_command>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
9 <command detect_errors="exit_code">
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
10 <![CDATA[
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
11 ln -s '$input_file' fubar_input.fa &&
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
12 ln -s '$input_nhx' fubar_input.nhx &&
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
13 echo $gencodeid > fubar_params &&
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
14 echo `pwd`/fubar_input.fa >> fubar_params &&
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
15 echo `pwd`/fubar_input.nhx >> fubar_params &&
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
16 echo '$grid_points' >> fubar_params &&
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
17 echo '$mcmc' >> fubar_params &&
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
18 echo '$chain_length' >> fubar_params &&
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
19 echo '$samples' >> fubar_params &&
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
20 echo '$samples_per_chain' >> fubar_params &&
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
21 echo '$concentration' >> fubar_params &&
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
22 export HYPHY=`which HYPHYMP` &&
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
23 export HYPHY_PATH=`dirname \$HYPHY` &&
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
24 export HYPHY_LIB=`readlink -f \$HYPHY_PATH/../lib/hyphy` &&
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
25 cat fubar_params | HYPHYMP LIBPATH=\$HYPHY_LIB \$HYPHY_LIB/TemplateBatchFiles/SelectionAnalyses/FUBAR.bf > '$fubar_log'
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
26 ]]>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
27 </command>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
28 <inputs>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
29 <param name="input_file" type="data" format="fasta" label="Input FASTA file" />
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
30 <param name="input_nhx" type="data" format="nhx" label="Input newick file" />
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
31 <param name="gencodeid" type="select" label="Genetic code">
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
32 <option value="1">Universal code</option>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
33 <option value="2">Vertebrate mitochondrial DNA code</option>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
34 <option value="3">Yeast mitochondrial DNA code</option>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
35 <option value="4">Mold, Protozoan and Coelenterate mt; Mycloplasma/Spiroplasma</option>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
36 <option value="5">Invertebrate mitochondrial DNA code</option>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
37 <option value="6">Ciliate, Dasycladacean and Hexamita Nuclear code</option>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
38 <option value="7">Echinoderm mitochondrial DNA code</option>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
39 <option value="8">Euplotid Nuclear code</option>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
40 <option value="9">Alternative Yeast Nuclear code</option>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
41 <option value="10">Ascidian mitochondrial DNA code</option>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
42 <option value="11">Flatworm mitochondrial DNA code</option>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
43 <option value="12">Blepharisma Nuclear code</option>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
44 </param>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
45 <param name="grid_points" type="integer" value="20" min="5" max="50" label="Grid points" />
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
46 <param name="mcmc" type="integer" value="5" min="2" max="20" label="Number of MCMC chains" />
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
47 <param name="chain_length" type="integer" value="2000000" min="500000" max="50000000" label="Length of each chain" />
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
48 <param name="samples" type="integer" value="1000000" min="100000" max="1900000" label="Samples to use for burn-in" />
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
49 <param name="samples_per_chain" type="integer" value="100" min="50" max="1000000" label="Samples to draw from each chain" />
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
50 <param name="concentration" type="float" value="0.5" min="0.001" max="1" label="Concentration parameter of the Dirichlet prior" />
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
51 </inputs>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
52 <outputs>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
53 <data name="fubar_log" format="txt" />
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
54 <data name="fubar_output" format="json" from_work_dir="fubar_input.fa.FUBAR.json" />
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
55 </outputs>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
56 <tests>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
57 <test>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
58 <param name="input_file" ftype="fasta" value="fubar-in1.fa" />
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
59 <param name="input_nhx" ftype="nhx" value="fubar-in1.nhx" />
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
60 <output name="fubar_output" file="fubar-out1.json" compare="sim_size" />
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
61 </test>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
62 </tests>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
63 <help>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
64 <![CDATA[
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
65 Model-based selection analyses (such as those performed by PAML and HyPhy) can be slow, becoming impractical for large alignments. We present a method to model and detect selection much faster than existing methods and to leverage Bayesian MCMC to robustly account for parameter estimation errors.
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
66
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
67 Results: By exploiting some commonly used approximations, FUBAR can perform detection of positive selection under a model that allows rich site- to-site rate variation about 30 to 50 times faster than existing random effects likelihood methods, and 10 to 30 times faster than existing fixed effects likelihood methods. We introduce an ultra-fast MCMC routine that allows a flexible prior specification, with no parametric constraints on the prior shape. Furthermore, our method allows us to visualize Bayesian inference for each site, revealing the model supported by the data.
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
68 ]]>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
69 </help>
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
70 <expand macro="citations" />
a52fcdeacf3d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit b'32e39857cb09a483e607ddd223f3783bff328cb2\n'-dirty
rdvelazquez
parents:
diff changeset
71 </tool>