annotate hyphy_sm19.xml @ 35:72549fa158f0 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
author iuc
date Tue, 07 Oct 2025 20:38:19 +0000
parents f9bc57c376e6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34
f9bc57c376e6 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit e7a89841d59689e87db592e112f9c8fb5331d954
iuc
parents: 32
diff changeset
1 <tool id="hyphy_sm19" name="HyPhy-SM2019" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
0
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
2 <description>Partition Tree using Modified Slatkin-Maddison Test</description>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
3 <macros>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
4 <import>macros.xml</import>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
5 </macros>
32
833bfaa71e41 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 4bb2092ac089e709bdc0ec3c3680f47e17be509a"
iuc
parents: 31
diff changeset
6 <expand macro="bio_tools"/>
0
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
7 <expand macro="requirements"/>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
8 <command detect_errors="exit_code"><![CDATA[
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
9 ln -s '$input_file' sm19_input.nhx &&
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
10 @HYPHYMP@ sm --tree ./sm19_input.nhx
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
11 --groups '$len($partitions)'
0
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
12 #for $n, $partition in enumerate($partitions):
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
13 --description-${n+1} '${partition.label}'
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
14 --regexp-${n+1} '${partition.regex}'
0
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
15 #end for
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
16 --replicates '$replicates'
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
17 --weight '$weight'
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
18 --use-bootstrap '$use_bootstrap'
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
19 --output '$sm19_output' > sm19_stdout.md
25
585054421fa5 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 3908306ffa6f6cbc7b83303b2d4c581406d2fad9"
iuc
parents: 23
diff changeset
20 @ERRORS@
0
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
21 ]]></command>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
22 <inputs>
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
23 <param name="input_file" type="data" format="nhx,newick,nexus" label="Input tree" help="The Newick tree string defining the topology to use for testing."/>
0
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
24 <repeat name="partitions" min="2" max="50" title="Partitions">
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
25 <param name="label" type="text" label="Partition label" help="Description for sequences in this compartment."/>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
26 <param name="regex" type="text" label="Regular expression" help="Regular expression to select the branches in this compartment.">
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
27 <expand macro="regex_sanitizer"/>
0
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
28 </param>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
29 </repeat>
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
30 <param name="replicates" type="integer" min="1" max="1000000" value="100" label="Number of bootstrap replicates" help="The number of bootstrap replicates."/>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
31 <param argument="--weight" type="float" value="0.2" min="0" max="1" label="Probability of branch selection for structured permutation" help="0 = classical Slatkin-Maddison, 1 = fully structured."/>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
32 <param argument="--use-bootstrap" type="boolean" truevalue="Yes" falsevalue="No" checked="true" label="Use bootstrap weights to respect well supported clades" help="Use bootstrap weights to respect well supported clades."/>
0
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
33 </inputs>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
34 <outputs>
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
35 <data name="sm19_output" format="hyphy_results.json" label="SM2019 results on ${on_string}" />
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
36 <data name="sm19_md_report" format="markdown" from_work_dir="sm19_stdout.md" label="SM2019 Report (Markdown) for ${tool.name} on ${on_string}" />
0
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
37 </outputs>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
38 <tests>
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
39 <test expect_num_outputs="2">
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
40 <param name="input_file" value="sm19-in1.nhx"/>
0
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
41 <repeat name="partitions">
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
42 <param name="label" value="Blood"/>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
43 <param name="regex" value="B[0-9]+"/>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
44 </repeat>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
45 <repeat name="partitions">
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
46 <param name="label" value="Semen"/>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
47 <param name="regex" value="S[0-9]+"/>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
48 </repeat>
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
49 <param name="replicates" value="1000"/>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
50 <param name="weight" value="0.2"/>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
51 <param name="use_bootstrap" value="Yes"/>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
52 <output name="sm19_output">
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
53 <assert_contents>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
54 <has_text text='"compartments":2'/>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
55 <has_text text='"leaf-count":50'/>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
56 </assert_contents>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
57 </output>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
58 <output name="sm19_md_report">
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
59 <assert_contents>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
60 <has_text text="Inferred **16** migration events"/>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
61 </assert_contents>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
62 </output>
0
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
63 </test>
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
64 <test expect_num_outputs="2">
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
65 <param name="input_file" value="sm19-in2.nhx"/>
0
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
66 <repeat name="partitions">
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
67 <param name="label" value="Blood"/>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
68 <param name="regex" value="B[0-9]+"/>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
69 </repeat>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
70 <repeat name="partitions">
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
71 <param name="label" value="Semen"/>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
72 <param name="regex" value="S[0-9]+"/>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
73 </repeat>
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
74 <param name="replicates" value="1000"/>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
75 <param name="weight" value="0.2"/>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
76 <param name="use_bootstrap" value="Yes"/>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
77 <output name="sm19_output">
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
78 <assert_contents>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
79 <has_text text='"compartments":2'/>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
80 <has_text text='"leaf-count":64'/>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
81 </assert_contents>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
82 </output>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
83 <output name="sm19_md_report">
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
84 <assert_contents>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
85 <has_text text="Inferred **18** migration events"/>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
86 </assert_contents>
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
87 </output>
0
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
88 </test>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
89 </tests>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
90 <help><![CDATA[
5
a57d5219632c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit ca299e9bbfc25f8e57b5001b8057f2b9e42d0df6"
iuc
parents: 0
diff changeset
91 SM2019 : Structured Slatkin-Maddison
a57d5219632c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit ca299e9bbfc25f8e57b5001b8057f2b9e42d0df6"
iuc
parents: 0
diff changeset
92 ====================================
9
1bcd8e7c9e0b "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 8abccd4b7a288b6a321a6662eec88577ad83b36f"
iuc
parents: 5
diff changeset
93
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
94 **What does this do?**
5
a57d5219632c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit ca299e9bbfc25f8e57b5001b8057f2b9e42d0df6"
iuc
parents: 0
diff changeset
95
9
1bcd8e7c9e0b "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 8abccd4b7a288b6a321a6662eec88577ad83b36f"
iuc
parents: 5
diff changeset
96 Test for evidence of genetically segregated populations, using a "detuned" version of
5
a57d5219632c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit ca299e9bbfc25f8e57b5001b8057f2b9e42d0df6"
iuc
parents: 0
diff changeset
97 the Slatkin-Maddison test.
a57d5219632c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit ca299e9bbfc25f8e57b5001b8057f2b9e42d0df6"
iuc
parents: 0
diff changeset
98
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
99 Method
5
a57d5219632c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit ca299e9bbfc25f8e57b5001b8057f2b9e42d0df6"
iuc
parents: 0
diff changeset
100 ------
a57d5219632c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit ca299e9bbfc25f8e57b5001b8057f2b9e42d0df6"
iuc
parents: 0
diff changeset
101
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
102 The SM2019 tool implements canonical and modified versions of the Slatkin-Maddison phylogeny-based test for population segregation. This method is used to detect evidence of genetically segregated populations within a phylogenetic tree.
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
103
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
104 **The Slatkin-Maddison Test: Intuition**
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
105
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
106 The core idea of the Slatkin-Maddison test is to quantify the amount of "mixing" or "segregation" of different populations (or compartments) within a phylogenetic tree. It does this by mapping discrete character states (e.g., population labels like "Blood" or "Semen") onto the tips of the tree. Then, using a parsimony approach, it infers the minimum number of "migration events" (changes in character state) that must have occurred along the branches of the tree to explain the observed distribution of states at the tips.
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
107
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
108 - **Minimum Migration Events:** A lower number of inferred migration events suggests stronger population segregation, as fewer changes are needed to explain the observed pattern. A higher number suggests more mixing.
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
109
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
110 **Hypothesis Testing**
5
a57d5219632c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit ca299e9bbfc25f8e57b5001b8057f2b9e42d0df6"
iuc
parents: 0
diff changeset
111
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
112 The tool then performs permutation tests to evaluate the significance of the observed number of migration events:
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
113
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
114 1. **Panmictic Permutation (Unstructured Population):** Leaf labels are randomly permuted across the tips of the tree. The minimum number of migration events is calculated for each permuted tree. This generates a null distribution representing what would be expected if there were no population structure (i.e., a panmictic population where individuals mix freely). If the observed number of migration events is significantly lower than this null distribution, it suggests evidence for population segregation.
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
115
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
116 2. **Structured Permutation (Detuned Test):** This is a modified version of the test. Instead of completely random permutations, leaf labels are permuted partially, respecting the underlying subtree structure (block permutations). This "detuned" approach can be more powerful in detecting subtle population structure by accounting for phylogenetic relationships. The `weight` parameter controls the degree of structure in these permutations.
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
117
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
118 **Interpretation of Results**
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
119
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
120 - A significant p-value (typically < 0.05) from the panmictic permutation test indicates that the observed population structure (segregation) is unlikely to have arisen by chance in an unstructured population.
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
121 - The structured permutation test provides a more nuanced view, accounting for some phylogenetic signal.
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
122
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
123 **Output:** The tool outputs the inferred number of migration events and p-values for both panmictic and structured permutations, allowing for a comprehensive assessment of population segregation.
5
a57d5219632c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit ca299e9bbfc25f8e57b5001b8057f2b9e42d0df6"
iuc
parents: 0
diff changeset
124
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
125 **Input**
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
126
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
127 - **Input tree:** A phylogenetic tree in Newick format. Leaf names should be partitionable into sets using regular expressions.
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
128
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
129 **Tool Options**
5
a57d5219632c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit ca299e9bbfc25f8e57b5001b8057f2b9e42d0df6"
iuc
parents: 0
diff changeset
130
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
131 - **Input tree:** The Newick tree string defining the topology to use for testing.
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
132 - **Partitions:** Define the compartments (groups of leaves) for the analysis.
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
133 - **Partition label:** A descriptive label for the compartment.
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
134 - **Regular expression:** A regular expression to select the branches belonging to this compartment.
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
135 - **Number of bootstrap replicates:** The number of bootstrap replicates to perform for the permutation tests.
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
136 - **Probability of branch selection for structured permutation:** This parameter controls the type of permutation. A value of 0 corresponds to the classical Slatkin-Maddison test (full panmixia), while a value of 1 corresponds to a fully structured permutation.
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
137 - **Use bootstrap weights to respect well supported clades:** If set to Yes, bootstrap weights are used to respect well-supported clades during permutations.
5
a57d5219632c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit ca299e9bbfc25f8e57b5001b8057f2b9e42d0df6"
iuc
parents: 0
diff changeset
138
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
139 **Output**
5
a57d5219632c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit ca299e9bbfc25f8e57b5001b8057f2b9e42d0df6"
iuc
parents: 0
diff changeset
140
35
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
141 - A JSON file with detailed analysis results, including migration events, p-values for panmictic and structured permutations, and partition counts.
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
142 - A Markdown report summarizing the analysis and results.
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
143
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
144 **Further reading**
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
145
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
146 - https://www.ncbi.nlm.nih.gov/pubmed/2599370
72549fa158f0 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit d97b1b98a3a621c93a7ed9e7db16bda47eefcb92
iuc
parents: 34
diff changeset
147 - https://github.com/veg/hyphy-analyses/tree/master/SlatkinMaddison
0
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
148 ]]></help>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
149 <expand macro="citations">
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
150 <citation type="bibtex">
5
a57d5219632c "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit ca299e9bbfc25f8e57b5001b8057f2b9e42d0df6"
iuc
parents: 0
diff changeset
151 @PUBLISHED{slatkin,
0
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
152 author = "Slatkin M, Maddison WP",
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
153 title = "A cladistic measure of gene flow inferred from the phylogenies of alleles",
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
154 year = "1989",
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
155 note = "Genetics 123(3):603-613",
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
156 url = "https://www.ncbi.nlm.nih.gov/pubmed/2599370"}
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
157 </citation>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
158 </expand>
30c8e7cc19df "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 2c7a7ff8a55e7584e84335baa3159a63ce7a590c"
iuc
parents:
diff changeset
159 </tool>