annotate kplogo.xml @ 4:00b951fec5f7 draft

Uploaded
author xuebing
date Fri, 24 Mar 2017 16:49:23 -0400
parents 7c3170671f1b
children 89aa9e0df5d4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
1 <tool id="kplogo" name="kpLogo" version="1.0">
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
2 <description>for positional k-mer analysis</description>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
3 <command>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
4
4
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
5 kpLogo $input $inputtype -o $output -alphabet $alphabet $maxk -startPos $startPos $degenerate -seq $col_seq -weight $col_weight -region $region_start,$region_end
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
6 #if $background.background_model == '-bg'
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
7 -bgfile $background_input
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
8 #else
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
9 $background.background_model
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
10 #end if
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
11 2> tmp;
3
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
12 cp ${output}.most.significant.each.position.pdf $output;
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
13 cp ${output}.pdf $logo_prob;
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
14 cp ${output}.info.pdf $logo_info;
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
15 cp ${output}.freq.pdf $logo_freq;
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
16 cp ${output}.most.significant.each.position.txt $tab_most;
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
17 cp ${output}.pass.p.cutoff.txt $tab_all;
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
18
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
19 </command>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
20 <inputs>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
21 <page>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
22 <param format="text" name="input" type="data" label="Input sequences (FASTA or Tabular)" />
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
23
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
24 <param name="alphabet" type="select" label="Sequence type: DNA/RNA or Protein" >
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
25 <option value="dna" selected="True">DNA/RNA</option>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
26 <option value="protein">Protein</option>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
27 <option value="other">Other (not supported yet)</option>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
28 </param>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
29
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
30 <param name="inputtype" type="select" label="Weighted or Ranked" >
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
31 <option value="" selected="True">Unweighted (FASTA or Tab-delimited) </option>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
32 <option value="-ranked">Ranked (FASTA or Tab-delimited)</option>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
33 <option value="-weighted">Weighted (Tab-delimited)</option>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
34 </param>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
35
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
36
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
37 <param name="col_seq" type="integer" value="1" label="For tabular input, sequence is in this column:" />
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
38
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
39 <param name="col_weight" type="integer" value="2" label="For tabular input, weight is in this column:" />
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
40
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
41 <param name="region_start" type="integer" value="1" label="Starting from position (0 or negative numbers interpreted as distance from the end):" />
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
42
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
43 <param name="region_end" type="integer" value="0" label="Ending at position (0 or negative numbers interpreted as distance from the end):" />
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
44
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
45
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
46
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
47 <param name="maxk" type="select" label="k-mer length"
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
48 help="k-mer length">
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
49 <option value="-max_k 4" selected="True">1,2,3,4</option>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
50 <option value="-max_k 3">1,2,3</option>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
51 <option value="-max_k 2">1,2</option>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
52 <option value="-k 4">4</option>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
53 <option value="-k 3">3</option>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
54 <option value="-k 2">2</option>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
55 <option value="-k 1">1</option>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
56 </param>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
57
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
58 <param name="degenerate" type="select" label="Degenerate residual (DNA/RNA only)">
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
59 <option value="-gapped" selected="True">ACGTN, i.e. gapped</option>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
60 <option value="">None (no degenerate residuals)</option>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
61 <option value="-degenerate all">all IUPAC residuals: ACGTRYMKWSBDHVN</option>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
62 </param>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
63
4
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
64
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
65
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
66 <conditional name="background">
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
67 <param name="background_model" type="select" label="Background model (only for unweighted sequences)">
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
68 <option value="" selected="True">Average across all positions in input sequences</option>
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
69 <option value="-shuffle 100,2">Shuffle each input sequence 100 times preserving di-residual frequency</option>
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
70 <option value="-markov 1">Markov model learned from input sequences, first order</option>
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
71 <option value="-bg">Background sequences (not supported yet in Galaxy)</option>
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
72 </param>
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
73 <when value="-bg">
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
74 <param format="text" name="background_input" type="data" label="Background sequences (FASTA or Tabular)" />
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
75 </when>
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
76 </conditional>
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
77
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
78
00b951fec5f7 Uploaded
xuebing
parents: 3
diff changeset
79
3
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
80 <param name="startPos" type="integer" value="1" label="Redefine position 1. The positions before it will be numbered as -1, -2, etc (no 0)." />
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
81
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
82 <param name="fix" type="float" value="0.75" label="Fixation frequency"/>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
83
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
84 </page>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
85 </inputs>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
86 <outputs>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
87 <data format="pdf" name="logo_info" label="${tool.name} on ${on_string}: info"/>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
88 <data format="pdf" name="logo_freq" label="${tool.name} on ${on_string}: freq"/>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
89 <data format="pdf" name="logo_prob" label="${tool.name} on ${on_string}: prob"/>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
90 <data format="pdf" name="output" label="${tool.name} on ${on_string}: kmer"/>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
91 <data format="tabular" name="tab_all" label="${tool.name} on ${on_string}: all_kmer"/>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
92 <data format="tabular" name="tab_most" label="${tool.name} on ${on_string}: most_sig"/>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
93
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
94
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
95 </outputs>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
96 <help>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
97
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
98 **Note**
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
99
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
100 This is a wrapper for the positional k-mer analysis tool kpLogo_, which is also available as a web server and stand-alone command-line tool. Please refer to the manual_ on the web server for help information.
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
101
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
102 To run kpLogo on local Galaxy instances, one needs to compile and install kpLogo locally. Please refer to the web server for details (click here_).
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
103
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
104 ----
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
105
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
106
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
107 .. _kpLogo: http://kplogo.wi.mit.edu/
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
108
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
109 .. _manual: http://kplogo.wi.mit.edu/manual.html
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
110
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
111 .. _here: http://kplogo.wi.mit.edu/manual.html#install-kpLogo-locally
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
112
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
113
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
114 </help>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
115
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
116 </tool>
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
117
7c3170671f1b Uploaded
xuebing
parents:
diff changeset
118