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