annotate phylorelatives.xml @ 41:9453ba52f46b draft

tool now uses multiple selection for input fasta files
author boris
date Fri, 19 Jul 2013 17:46:03 -0400
parents c340422b78b1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
1 <tool id="phylorelatives" name="Phylorelatives" version="0.0.1">
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
2 <description>Relatedness of minor alelle sequences in NJ tree</description>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
3 <requirements>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
4 <requirement type="package" version="2.15.0">R</requirement>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
5 <requirement type="package" version="2.2.6">rpy2</requirement>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
6 <requirement type="package" version="3.12.0">dendropy</requirement>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
7 <requirement type="package" version="3.0-8">ape</requirement>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
8 </requirements>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
9 <command interpreter="python">phylorelatives.py
41
9453ba52f46b tool now uses multiple selection for input fasta files
boris
parents: 38
diff changeset
10 #for $sequence in ( $sequences ):
9453ba52f46b tool now uses multiple selection for input fasta files
boris
parents: 38
diff changeset
11 -i "${sequence}"
9
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
12 #end for
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
13 -m "${multifasta}"
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
14 -b "$iterations"
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
15 $pairwise
34
6935429eef05 Updfated xml with -j option
boris
parents: 32
diff changeset
16 $major_only
41
9453ba52f46b tool now uses multiple selection for input fasta files
boris
parents: 38
diff changeset
17 #if str($root.root_selector)=="add_root":
9
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
18 -r "${root.root_fa}"
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
19 #end if
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
20 --relatives-out "$siblings"
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
21 --newick-out "$newick"
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
22 --trees-out "$plot"
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
23 </command>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
24 <inputs>
41
9453ba52f46b tool now uses multiple selection for input fasta files
boris
parents: 38
diff changeset
25 <param format="fasta" name="sequences" type="data" label="FASTA file" multiple="TRUE" help="Minor allele sequences must be labeled &quot;_minor&quot; or &quot;_test&quot; e.g. &quot;>sample1_minor&quot;">
9
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
26 </param>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
27 <conditional name="root">
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
28 <param name="root_selector" type="select" label=" Root sequence">
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
29 <option value="unrooted" selected="True"></option>
41
9453ba52f46b tool now uses multiple selection for input fasta files
boris
parents: 38
diff changeset
30 <option value="add_root"></option>
9
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
31 </param>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
32 <when value="unrooted">
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
33 </when>
41
9453ba52f46b tool now uses multiple selection for input fasta files
boris
parents: 38
diff changeset
34 <when value="add_root">
9
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
35 <param name="root_fa" format="fasta" type="data" label="Root tree using" help="Must have the same length as input sequences"/>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
36 </when>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
37 </conditional>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
38 <param name="pairwise" type="boolean" truevalue="-p" falsevalue="" checked="False" label="Use pairwise deletion of gaps/missing data" help="Defaults to &quot;Complete deletion&quot;"/>
34
6935429eef05 Updfated xml with -j option
boris
parents: 32
diff changeset
39 <param name="iterations" type="integer" value="1000" label="Change number of bootstrap replicas" help="0 to deactivate"/>
38
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
40 <param name="major_only" type="boolean" truevalue="-j" falsevalue="" checked="False" label="Major-alleles-only mode" help="All sequences will be treated as major allele sequences. Useful to generate background tree"/>
9
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
41 </inputs>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
42 <outputs>
34
6935429eef05 Updfated xml with -j option
boris
parents: 32
diff changeset
43 <data format="fasta" name="multifasta" label="${tool.name} on ${on_string}: multifasta used" />
6935429eef05 Updfated xml with -j option
boris
parents: 32
diff changeset
44 <data format="tabular" name="siblings" label="${tool.name} on ${on_string}: relatives list"/>
38
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
45 <data format="txt" name="newick" label="${tool.name} on ${on_string}: newick string"/>
36
dbf0b3c13dcf Updated filetype for plot
boris
parents: 34
diff changeset
46 <data format="png" name="plot" label="${tool.name} on ${on_string}: tree plot"/>
9
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
47 </outputs>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
48 <tests>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
49 <test>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
50 <param name="iterations" value="0"/>
41
9453ba52f46b tool now uses multiple selection for input fasta files
boris
parents: 38
diff changeset
51 <param name="sequences" value="test.fa"/>
9
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
52 <output name="siblings" file="test.fa-siblings.tab"/>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
53 </test>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
54 </tests>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
55
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
56 <help>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
57
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
58
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
59
38
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
60 The major and minor allele sequences of a sample are expected to cluster together in a phylogenetic tree.
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
61 Deviation from expectation suggests potential contamination coming from the closest unrelated samples.
34
6935429eef05 Updfated xml with -j option
boris
parents: 32
diff changeset
62
9
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
63 -----
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
64
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
65 .. class:: infomark
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
66
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
67 **What it does**
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
68
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
69 Constructs relatedness of a set of sequences based on the pairwise proportion of different sites.
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
70 One or more test sequences are accepted as long as their name include the strict suffix "_minor" or "_test" (i.e. >seq1_minor).
38
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
71 It returns the FASTA multiple alignment used, and reports a table with the closest major allele relatives, the tree plot and newick string of the tree.
9
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
72
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
73 -----
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
74
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
75 .. class:: warningmark
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
76
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
77 **Note**
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
78
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
79 This tools DOES NOT align the sequences.
38
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
80 Consequently, same length homologous sequences are required as input to fabricate a FASTA multiple alignment by concatenation of individual FASTA files.
9
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
81
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
82 -----
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
83
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
84 .. class:: infomark
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
85
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
86 **About formats**
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
87
32
034181b4b1b8 Uploaded
boris
parents: 9
diff changeset
88 *FASTA multiple alignment*
9
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
89
32
034181b4b1b8 Uploaded
boris
parents: 9
diff changeset
90 See http://www.bioperl.org/wiki/FASTA_multiple_alignment_format
9
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
91
38
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
92 *Newick*
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
93
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
94 http://www.megasoftware.net/WebHelp/glossary/rh_newick_format.htm
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
95
9
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
96 -----
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
97
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
98 **Example**
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
99
38
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
100 - For the multiple alignment composed of the following FASTA files::
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
101
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
102 >sample1_major
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
103 >sample1_minor
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
104 >sample2_major
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
105 >sample3_major
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
106 >sample4_major
9
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
107
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
108
38
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
109 - running this tool with *root = RSRS.fasta*, and default parameters will return four datasets::
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
110
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
111 1. multiple alignment file used for running the tool
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
112 2. relatives of sample1_minor
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
113 3. NJ tree newick string (rooted on RSRS)
c340422b78b1 Edited xml tool description
boris
parents: 36
diff changeset
114 4. NJ tree png plot (rooted on RSRS)
32
034181b4b1b8 Uploaded
boris
parents: 9
diff changeset
115
034181b4b1b8 Uploaded
boris
parents: 9
diff changeset
116 -----
034181b4b1b8 Uploaded
boris
parents: 9
diff changeset
117
034181b4b1b8 Uploaded
boris
parents: 9
diff changeset
118 **Citation**
034181b4b1b8 Uploaded
boris
parents: 9
diff changeset
119
034181b4b1b8 Uploaded
boris
parents: 9
diff changeset
120 If you use this tool, please cite Dickins B, Rebolledo-Jaramillo B, et al. *In preparation.*
034181b4b1b8 Uploaded
boris
parents: 9
diff changeset
121 (boris-at-bx.psu.edu)
034181b4b1b8 Uploaded
boris
parents: 9
diff changeset
122
9
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
123 </help>
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
124
663fc7a8549b uploaded tool xml
boris
parents:
diff changeset
125 </tool>