2
|
1 <tool id="phylo-protpars-id" name="Phylogeny Maximum Parsimony" version="0.1.0">
|
|
2 <description>Gives an option to add a certain informative site (defined by user) for the Maximum Parsimony Tree</description>
|
|
3 <stdio>
|
|
4 <!-- Whatever match this, is not an error -->
|
|
5 <regex match="[Use of uninitialized value*"/>
|
|
6 </stdio>
|
|
7 <command interpreter="perl">
|
|
8 #if $phylogeny.define
|
|
9 phylo-protpars.pl $input $phylogeny.numValues $phylogeny.numRepeats
|
|
10 #else
|
|
11 phylo-protpars.pl $input
|
|
12 #end if
|
|
13 </command>
|
|
14 <inputs>
|
|
15 <param format="fasta" name="input" type="data" label="Source file"/>
|
|
16 <conditional name="phylogeny">
|
|
17 <param name="define" type="boolean" checked="true" label="Define informative site?"/>
|
|
18
|
|
19 <when value="true">
|
|
20 <param name="numValues" type="integer" value="2" min="2" label="Minimum number of different repeated aa. (>1)" />
|
|
21 <param name="numRepeats" type="integer" value="2" min="2" label="Minimum frequency of the aa. (>1)" />
|
|
22 </when>
|
|
23 </conditional>
|
|
24 </inputs>
|
|
25 <outputs>
|
|
26 <data name="output_tree_text" format="txt" label="Tree as text" from_work_dir="treePars.txt"/>
|
|
27 <data name="output_alignment" format="phylip" label="Alignment from ClustalW" from_work_dir="sequences.aln"/>
|
|
28 <data name="output_alignment_phy" format="phylip" label="Alignment processed" from_work_dir="sequences.aln.phy">
|
|
29 <filter>phylogeny['define']</filter>
|
|
30 </data>
|
|
31 </outputs>
|
|
32
|
|
33 <help>
|
|
34 <!-- This tool computes a Maximum Parsimony Tree with specific values given by the user. -->
|
|
35 .. class:: infomark
|
|
36
|
|
37 **Example 1: without informative sites**
|
|
38 source file = 'sequences.fasta'
|
|
39
|
|
40 result::
|
|
41
|
|
42 Tree as text
|
|
43 (2134442,(((1170853,1172622),1169853),1708266));
|
|
44
|
|
45 Alignment from ClustalW
|
|
46 5 376
|
|
47 1708266 ------MTCQ AFASSDNFVP LNSDSSPSLP LIMHHSAAEC LPVSNHATSV
|
|
48 2134442 -----MVPNY STEETVKRIH VDCPVSGRHS YIYIMVPTVY SIIFIIGIFG
|
|
49 1169853 MTLESMMACC LSDEVKESKR INAEIEKQLR RDKRDARREL KLLLLG--TG
|
|
50 1172622 --------MS NTGASLKGLL LAVLLVSNML LTKEGVTSLP ICSSGSVNCQ
|
|
51 1170835 ---------- ---------- ---------- ---------- --------MG
|
|
52
|
|
53 VSTVPSVLSL IQTPKCSHLH FAMMTSGNVS AGLHYSVPSC HYGNQTSTYG
|
|
54 NSLVVIVIYC YMKLKTVASI FLLNLALADL CFLITLPLWA AYTAMEYQWP
|
|
55 ESGKSTFIKQ MRIIHGSGYS EEDKKGFTKL VYQNIFTAMQ SMIRAMETLK
|
|
56 VSLGELFDRA VRLSHYIHFL SSEIFNEFDE RYAQGRGFIT KAVNGCHTSS
|
|
57 GAQVLVLMTL LGTPPVTTGT PPVVVDPSVA VVGPPLGLGG GGRPPCRPIN
|
|
58
|
|
59 **Example 2: with informative sites**
|
|
60 source file = 'sequences.fasta'
|
|
61
|
|
62 Minimum number of different repeated aa. (>1) = 2
|
|
63
|
|
64 Minimum frequency of the aa. (>1) = 2
|
|
65
|
|
66 result::
|
|
67
|
|
68 Tree as text
|
|
69 (2134442,(1172622,(1169853,(1170835,1708266))));
|
|
70
|
|
71 Alignment from ClustalW
|
|
72 5 376
|
|
73 1708266 ------MTCQ AFASSDNFVP LNSDSSPSLP LIMHHSAAEC LPVSNHATSV
|
|
74 2134442 -----MVPNY STEETVKRIH VDCPVSGRHS YIYIMVPTVY SIIFIIGIFG
|
|
75 1169853 MTLESMMACC LSDEVKESKR INAEIEKQLR RDKRDARREL KLLLLG--TG
|
|
76 1172622 --------MS NTGASLKGLL LAVLLVSNML LTKEGVTSLP ICSSGSVNCQ
|
|
77 1170835 ---------- ---------- ---------- ---------- --------MG
|
|
78
|
|
79 VSTVPSVLSL IQTPKCSHLH FAMMTSGNVS AGLHYSVPSC HYGNQTSTYG
|
|
80 NSLVVIVIYC YMKLKTVASI FLLNLALADL CFLITLPLWA AYTAMEYQWP
|
|
81 ESGKSTFIKQ MRIIHGSGYS EEDKKGFTKL VYQNIFTAMQ SMIRAMETLK
|
|
82 VSLGELFDRA VRLSHYIHFL SSEIFNEFDE RYAQGRGFIT KAVNGCHTSS
|
|
83 GAQVLVLMTL LGTPPVTTGT PPVVVDPSVA VVGPPLGLGG GGRPPCRPIN
|
|
84
|
|
85 Alignment processed
|
|
86 5 12
|
|
87 1708266 VKVLQIKRAK QN
|
|
88 2134442 VKDLVVATFK KP
|
|
89 1169853 FHKERIKSFR LS
|
|
90 1172622 FHDEVVASYD KN
|
|
91 1170835 LPV-RRGRAD QP
|
|
92
|
|
93 </help>
|
|
94
|
|
95 </tool>
|