11 <!-- import javascript libraries-->
12 <& /util/import_javascript.mas, classes => ['Text.Markup', 'sprintf', 'jquery', 'jqueryui', 'jquery.iframe-post-form', 'CXGN.List', 'tools/vigs'] &>
14 <& /page/page_title.mas, title=>"VIGS Tool" &>
18 <&| /page/info_section.mas, id=>"vigs_input" , title=>"Run VIGS Tool", collapsible => 1, collapsed => 0 &>
25 var seq = ">Solyc10g047140.1.1 Receptor like kinase, RLK\nATGGATCAGTCGGTGTTGGCGATCTGGGTATTTCTCTGCTTAATTGGTCTGCTTTTCAATTTGTCACCCGTCGCCGGTAACGCTGAAGGTGATGCCTTGAATGCTCTGAAGACAAATTTGGCTGATCCTAATAGTGTTCTACAGAGTTGGGATGCAACCCTTGTTAATCCTTGTACTTGGTTCCATGTGACATGCAACAATGAAAATAGTGTGACTAGAGTTGATCTAGGAAATGCAAATCTATCAGGTCAACTGGTACCACAGCTTGGCCAACTCCAGAAATTGCAGTACTTGGAACTTTATAGTAATAACATAAGCGGAAGAATTCCAAATGAACTGGGAAACTTGACAGAGTTGGTTAGTTTGGATCTTTACCTGAACAACTTAAATGGTCCTATTCCTCCCTCATTGGGCAGGCTTCAGAAGCTACGCTTCCTGAGGCTCAATAATAACAGTTTGAATGAAGGTATTCCCATGTCTCTAACCACCATTGTTGCACTTCAAGTACTTGATCTCTCAAACAACCATTTGACAGGACTAGTTCCAGTCAACGGTTCCTTTTCACTTTTTACTCCTATAAGTTTTGCTAATAATCAGTTGGAAGTTCCTCCAGTTTCTCCACCTCCTCCTCTTCCTCCTACACCCTCATCGTCATCTTCAGTGGGCAACAGCGCAACTGGAGCTATCGCTGGAGGAGTTGCTGCAGGCGCTGCTCTTCTATTTGCAGCTCCTGCAATTTTTCTTGCTTGGTGGCGTCGGAGGAAACCACAAGACCACTTCTTTGATGTTCCTGCTGAGGAGGATCCAGAAGTTCATCTGGGACAACTCAAAAGGTTTTCCTTGCGTGAACTACAAGTTGCGTCGGATAATTTTAGCAACAGAAATATACTCGGTAGAGGTGGATTTGGTAAGGTTTATAAGGGCCGGTTAGCTGATGGCTCTTTAGTTGCAGTGAAAAGACTAAAAGAGGAACGTACTCAAGGTGGAGAGTTACAGTTCCAGACAGAAGTAGAAATGATCAGCATGGCTGTACACCGAAACCTACTTCGTTTACGGGGCTTTTGCATGACACCCACTGAGCGCGTGCTTGTTTATCCTTACATGGAGAATGGAAGTGTTGCATCACGTTTAAGAGAGAGGCCTGAATCAGAGCCCCCACTTGACTGGCCAAAAAGGAAGCGTATTGCACTTGGATCTGCAAGAGGCCTTGCTTACTTGCATGATCATTGTGATCCTAAAATTATTCATCGTGACGTCAAAGCCGCAAATATCTTGTTGGATGAGGAGTTTGAAGCAGTTGTTGGGGATTTTGGGTTAGCTAAACTCATGGACTACAAGGATACTCATGTTACCACTGCTGTACGTGGTACAATTGGGCATATTGCCCCTGAATATTTATCTACTGGTAAATCTTCTGAGAAAACTGATGTCTTTGGCTATGGGGTTATGCTTCTAGAGCTCATAACTGGGCAAAGGGCTTTTGATCTTGCTCGACTTGCGAATGATGATGATGTCATGCTGCTAGATTGGGTGAAGGGACTCCTGAAGGACAAGAAATATGAAACATTAGTTGATGCAGATCTTCAAGGTAATTACAATGAAGAAGAGGTGGAACAACTTATTCAGGTAGCTCTACTTTGCACGCAGAGTACGCCTACGGAACGTCCAAAGATGTCAGAAGTTGTAAGAATGCTTGAAGGTGATGGCCTTGCTGAGAGGTGGGAGGAATGGCAAAAGGAGGAGATGTTCCGGCAAGATTACAACCATGTACACCACCCCCATACTGATTGGATAATAGCTGACTCCACGTCAAATATCCGACCGGATGAGTTGTCAGGGCCAAGATGA\n";
27 document.write("(<a href=\"javascript:example()\" title=\"Paste an example sequence\" >example sequence</a>)");
30 document.getElementById("sequence").value=seq;
34 //use JQueryIu to define tooltip style
36 $( document ).tooltip({
38 my: "center bottom-20",
40 using: function( position, feedback ) {
41 $( this ).css( position );
44 .addClass( feedback.vertical )
45 .addClass( feedback.horizontal )
53 <div id="status_wheel" style="display:none"><img src="/static/documents/img/wheel.gif" /></div>
57 <textarea class="input" id="sequence" name="sequence" cols=62" rows="8"></textarea>
61 <span title="siRNA selected size">n-mer size</span>
62 <input class="input" id="si_rna" type="input" value="21" name="fragment_size" size="2" />
64 <span title="Desired VIGS construct length">Fragment length</span>
65 <input class="input" id="f_length" type="input" value="300" name="seq_fragment" size="3" />
67 <span title="Number of mismatches allowed in Bowtie alignment">mismatches</span>
68 <input class="input" id="mm" type="input" value="0" name="mismatch" size="1" />
71 Database <select class="input" id='bt2_db' name="database" title="Select plant species to host VIGS experiment">
76 foreach my $d (@databases) {
81 if ($d eq $default_db) {
82 print "<option value=\"".$d."\" selected='selected'>".$db_name."</option><br />";
84 print "<option value=\"".$d."\">".$db_name."</option><br />";
87 print "<option value=\"".$d."\">".$db_name."</option><br />";
96 <form method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_expression_form" name="upload_expression_form" action="/ajax/upload_expression_file">
97 Upload Expression file: <input type="file" name="expression_file" id="expression_file" encoding="multipart/form-data" title="Insert a expression file in a tab-delimited format"/>
102 <!-- <button class="input" id="clear_form" value="clear">Clear</button> -->
103 <button class="input" id="upload_expression_file" value="Run VIGS Analysis">Run VIGS Analysis</button>
107 <div id="coverage_val" val="0"></div>
108 <div id="seq_length" val="0"></div>
109 <div id="best_start" val="0"></div>
110 <div id="best_end" val="0"></div>
111 <div id="best_score" val="0"></div>
112 <div id="db_name" val="0"></div>
113 <div id="help_fsize" val="0"></div>
114 <div id="help_nmer" val="0"></div>
115 <div id="help_mm" val="0"></div>
121 <&| /page/info_section.mas, id=>"vigs_usage" , title=>"VIGS Usage", collapsible => 1, collapsed => 1, is_subsection=>"1" &>
122 <div id="usage_view">
125 1. Paste a <b>sequence</b> like in one of the examples:<br />
126 <span style="background-color:#DCDCDC;"> >gene_ID<br /> ATGGATCAGTCGGTGTTGGCGATCT <br /> ACAGCTTGGCCAACTCCAGAAATTG </span><br />
128 <span style="background-color:#DCDCDC;"> ATGGATCAGTCGGTGTTGGCGATCT </span><br />
129 Or paste the <b>gene ID</b>:<br />
130 <span style="background-color:#DCDCDC;"> Solyc10g047140.1.1 </span><br />
132 2. Choose <b>n-mer size</b>, nucleotide stretch size in bp, used to identify targeted regions (18-24, Default=21)<br />
133 3. Choose <b>Fragment length</b>, desired VIGS fragment length in bp (100-Sequence length, Default=300)<br />
134 4. Choose <b>mismatches</b>, number of mismatches allowed in the alignment (0-2, Default=0)<br />
135 <!-- 4. Choose <b>mismatches</b>, number of mismatches allowed in the alignment (0-1, Default=0)<br /> -->
136 5. Choose <b>database</b><br />
137 6. Upload a <b>expression values file</b> (optional), It must be a tab delimited text file, with gene identifiers in the first column and a header in the first row:
139 <table style="background-color:#DCDCDC;" cellspacing="5">
146 <td>Solyc10g047140.1.1</td>
151 <td>Solyc01g000020.1.1</td>
165 <!-- ##################################################################################### -->
167 <!-- ##################################################################################### -->
170 <&| /page/info_section.mas, title=>"Results", collapsible => 1, collapsed => 0 &>
172 <div id="img_height" style="display:none;" value="601"></div>
174 <div id="hide1" style="display:none;">
175 <&| /page/info_section.mas, title=>"Modify parameters", collapsible => 1, collapsed => 0, subtitle=>'[<a id="help_dialog_1" class="help_dialog">Help</a>]', is_subsection=>"1" &>
178 <td id="score_p" style="text-align:'right';"></td>
184 <td>Region Start: </td><td><input type="text" id="cbr_start" size="3"></td>
185 <td>Region End: </td><td><input type="text" id="cbr_end" size="3"> </td>
186 <td><button type="button" id="set_custom" value="set custom best region">Set Custom Region</button><br /></td>
189 <td>Target genes: </td><td><input id="t_num" size="1" name="targets" min="1" /></td>
190 <td>Fragment size:</td><td><input id="f_size" size="3" name="seq_fragment" /></td>
192 n-mer: <input id="n_mer" size="2" name="si_rna" />
193 Mismatches: <input id="align_mm" size="1" name="align_mm" />
195 <td><button id="change_par" type="button" value="recalculate">Change</button></td>
200 <span id="no_results" style="color:red;"></span>
201 <p style="color:red" id="cbr_p"></p>
204 <div id="hide2" style="display:none;">
205 <&| /page/info_section.mas, title=>"Distribution of n-mers", collapsible => 1, collapsed => 0, subtitle=>'[<a id="help_dialog_2" class="help_dialog">Help</a>]', is_subsection=>"1" &>
206 <div class="seq_map" id="seq_map">
207 <div class="region_square" id="region_square"></div>
208 <canvas id="myCanvas" width="700" height="600">
209 Your browser does not support the HTML5 canvas
213 <button id="collapse" value="1">Expand Graph</button>
214 <button id="zoom" value="0">Zoom In</button>
215 <button id="params_dialog">Parameters Used</button>
220 <div id="help_fsize"></div>
221 <div id="help_nmer"></div>
222 <div id="help_mm"></div>
223 <div id="help_db"></div>
226 <div id="hide3" style="display:none;">
228 <&| /page/info_section.mas, title=>"Best region", collapsible => 1, collapsed => 0, subtitle=>'[<a id="help_dialog_3" class="help_dialog">Help</a>]', is_subsection=>"1" &>
230 <p id="best_seq" style="font-family:courier;font-size:16px;"></p>
235 <&| /page/info_section.mas, title=>"Sequence overview", collapsible => 1, collapsed => 0, subtitle=>'[<a id="help_dialog_4" class="help_dialog">Help</a>]', is_subsection=>"1" &>
236 <span id="query" style="display:none"></span>
237 <div id="markup" style="align:left;"></div>
241 <&| /page/info_section.mas, title=>"Description of genes with matches of n-mers", collapsible => 1, collapsed => 0, subtitle=>'[<a id="open_descriptions_dialog">View</a>] [<a id="help_dialog_5" class="help_dialog">Help</a>]', is_subsection=>"1" &>
242 <table id="target_info"></table>
248 <div id="desc_dialog">
249 <table id="dialog_info"></table>
252 <div id="params" style="display:none;"></div>
253 <div id="help_dialog_tmp" style="display:none;"></div>
276 vertical-align:middle;
283 #open_descriptions_dialog {
295 .ui-tooltip, .arrow:after {
297 border: 2px solid white;
303 font: bold 12px "Helvetica Neue", Sans-Serif;
304 box-shadow: 0 0 7px black;
329 box-shadow: 6px 5px 9px -9px black;
330 -webkit-transform: rotate(45deg);
331 -moz-transform: rotate(45deg);
332 -ms-transform: rotate(45deg);
333 -o-transform: rotate(45deg);
334 tranform: rotate(45deg);
343 background-color:#EEEEFE;
356 #upload_expression_file {
357 background-color:#555555;
358 /*background-color:#4387FD;*/
363 box-shadow: 1px 1px 0px 0px #C6C6C6;
370 #upload_expression_file:hover {
371 background-color:#444444;
372 /*background-color:#5EA1FF;*/
376 #upload_expression_file:active {
380 box-shadow: 0px 0px 0px 0px #fff;