1 <meta http-equiv="refresh" content="0; URL='http://vigs.solgenomics.net'" />
12 <!-- import javascript libraries-->
13 <& /util/import_javascript.mas, classes => ['Text.Markup', 'sprintf', 'jquery', 'jqueryui', 'jquery.iframe-post-form', 'CXGN.List', 'tools/vigs'] &>
15 <& /page/page_title.mas, title=>"VIGS Tool" &>
19 <&| /page/info_section.mas, id=>"vigs_input" , title=>"Run VIGS Tool", collapsible => 1, collapsed => 0 &>
26 var seq = ">Solyc10g047140.1.1 Receptor like kinase, RLK\nATGGATCAGTCGGTGTTGGCGATCTGGGTATTTCTCTGCTTAATTGGTCTGCTTTTCAATTTGTCACCCGTCGCCGGTAACGCTGAAGGTGATGCCTTGAATGCTCTGAAGACAAATTTGGCTGATCCTAATAGTGTTCTACAGAGTTGGGATGCAACCCTTGTTAATCCTTGTACTTGGTTCCATGTGACATGCAACAATGAAAATAGTGTGACTAGAGTTGATCTAGGAAATGCAAATCTATCAGGTCAACTGGTACCACAGCTTGGCCAACTCCAGAAATTGCAGTACTTGGAACTTTATAGTAATAACATAAGCGGAAGAATTCCAAATGAACTGGGAAACTTGACAGAGTTGGTTAGTTTGGATCTTTACCTGAACAACTTAAATGGTCCTATTCCTCCCTCATTGGGCAGGCTTCAGAAGCTACGCTTCCTGAGGCTCAATAATAACAGTTTGAATGAAGGTATTCCCATGTCTCTAACCACCATTGTTGCACTTCAAGTACTTGATCTCTCAAACAACCATTTGACAGGACTAGTTCCAGTCAACGGTTCCTTTTCACTTTTTACTCCTATAAGTTTTGCTAATAATCAGTTGGAAGTTCCTCCAGTTTCTCCACCTCCTCCTCTTCCTCCTACACCCTCATCGTCATCTTCAGTGGGCAACAGCGCAACTGGAGCTATCGCTGGAGGAGTTGCTGCAGGCGCTGCTCTTCTATTTGCAGCTCCTGCAATTTTTCTTGCTTGGTGGCGTCGGAGGAAACCACAAGACCACTTCTTTGATGTTCCTGCTGAGGAGGATCCAGAAGTTCATCTGGGACAACTCAAAAGGTTTTCCTTGCGTGAACTACAAGTTGCGTCGGATAATTTTAGCAACAGAAATATACTCGGTAGAGGTGGATTTGGTAAGGTTTATAAGGGCCGGTTAGCTGATGGCTCTTTAGTTGCAGTGAAAAGACTAAAAGAGGAACGTACTCAAGGTGGAGAGTTACAGTTCCAGACAGAAGTAGAAATGATCAGCATGGCTGTACACCGAAACCTACTTCGTTTACGGGGCTTTTGCATGACACCCACTGAGCGCGTGCTTGTTTATCCTTACATGGAGAATGGAAGTGTTGCATCACGTTTAAGAGAGAGGCCTGAATCAGAGCCCCCACTTGACTGGCCAAAAAGGAAGCGTATTGCACTTGGATCTGCAAGAGGCCTTGCTTACTTGCATGATCATTGTGATCCTAAAATTATTCATCGTGACGTCAAAGCCGCAAATATCTTGTTGGATGAGGAGTTTGAAGCAGTTGTTGGGGATTTTGGGTTAGCTAAACTCATGGACTACAAGGATACTCATGTTACCACTGCTGTACGTGGTACAATTGGGCATATTGCCCCTGAATATTTATCTACTGGTAAATCTTCTGAGAAAACTGATGTCTTTGGCTATGGGGTTATGCTTCTAGAGCTCATAACTGGGCAAAGGGCTTTTGATCTTGCTCGACTTGCGAATGATGATGATGTCATGCTGCTAGATTGGGTGAAGGGACTCCTGAAGGACAAGAAATATGAAACATTAGTTGATGCAGATCTTCAAGGTAATTACAATGAAGAAGAGGTGGAACAACTTATTCAGGTAGCTCTACTTTGCACGCAGAGTACGCCTACGGAACGTCCAAAGATGTCAGAAGTTGTAAGAATGCTTGAAGGTGATGGCCTTGCTGAGAGGTGGGAGGAATGGCAAAAGGAGGAGATGTTCCGGCAAGATTACAACCATGTACACCACCCCCATACTGATTGGATAATAGCTGACTCCACGTCAAATATCCGACCGGATGAGTTGTCAGGGCCAAGATGA\n";
28 document.write("(<a href=\"javascript:example()\" title=\"Paste an example sequence\" >example sequence</a>)");
31 document.getElementById("sequence").value=seq;
35 //use JQueryIu to define tooltip style
37 $( document ).tooltip({
39 my: "center bottom-20",
41 using: function( position, feedback ) {
42 $( this ).css( position );
45 .addClass( feedback.vertical )
46 .addClass( feedback.horizontal )
54 <div id="status_wheel" style="display:none"><img src="/static/documents/img/wheel.gif" /></div>
58 <textarea class="input" id="sequence" name="sequence" cols=62" rows="8"></textarea>
62 <span title="siRNA selected size">n-mer size</span>
63 <input class="input" id="si_rna" type="input" value="21" name="fragment_size" size="2" />
65 <span title="Desired VIGS construct length">Fragment length</span>
66 <input class="input" id="f_length" type="input" value="300" name="seq_fragment" size="3" />
68 <span title="Number of mismatches allowed in Bowtie alignment">mismatches</span>
69 <input class="input" id="mm" type="input" value="0" name="mismatch" size="1" />
72 Database <select class="input" id='bt2_db' name="database" title="Select plant species to host VIGS experiment">
77 foreach my $d (@databases) {
82 if ($d eq $default_db) {
83 print "<option value=\"".$d."\" selected='selected'>".$db_name."</option><br />";
85 print "<option value=\"".$d."\">".$db_name."</option><br />";
88 print "<option value=\"".$d."\">".$db_name."</option><br />";
97 <form method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_expression_form" name="upload_expression_form" action="/ajax/upload_expression_file">
98 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"/>
103 <!-- <button class="input" id="clear_form" value="clear">Clear</button> -->
104 <button class="input" id="upload_expression_file" value="Run VIGS Analysis">Run VIGS Analysis</button>
108 <div id="coverage_val" val="0"></div>
109 <div id="seq_length" val="0"></div>
110 <div id="best_start" val="0"></div>
111 <div id="best_end" val="0"></div>
112 <div id="best_score" val="0"></div>
113 <div id="db_name" val="0"></div>
114 <div id="help_fsize" val="0"></div>
115 <div id="help_nmer" val="0"></div>
116 <div id="help_mm" val="0"></div>
122 <&| /page/info_section.mas, id=>"vigs_usage" , title=>"VIGS Usage", collapsible => 1, collapsed => 1, is_subsection=>"1" &>
123 <div id="usage_view">
126 1. Paste a <b>sequence</b> like in one of the examples:<br />
127 <span style="background-color:#DCDCDC;"> >gene_ID<br /> ATGGATCAGTCGGTGTTGGCGATCT <br /> ACAGCTTGGCCAACTCCAGAAATTG </span><br />
129 <span style="background-color:#DCDCDC;"> ATGGATCAGTCGGTGTTGGCGATCT </span><br />
130 Or paste the <b>gene ID</b>:<br />
131 <span style="background-color:#DCDCDC;"> Solyc10g047140.1.1 </span><br />
133 2. Choose <b>n-mer size</b>, nucleotide stretch size in bp, used to identify targeted regions (18-24, Default=21)<br />
134 3. Choose <b>Fragment length</b>, desired VIGS fragment length in bp (100-Sequence length, Default=300)<br />
135 4. Choose <b>mismatches</b>, number of mismatches allowed in the alignment (0-2, Default=0)<br />
136 <!-- 4. Choose <b>mismatches</b>, number of mismatches allowed in the alignment (0-1, Default=0)<br /> -->
137 5. Choose <b>database</b><br />
138 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:
140 <table style="background-color:#DCDCDC;" cellspacing="5">
147 <td>Solyc10g047140.1.1</td>
152 <td>Solyc01g000020.1.1</td>
166 <!-- ##################################################################################### -->
168 <!-- ##################################################################################### -->
171 <&| /page/info_section.mas, title=>"Results", collapsible => 1, collapsed => 0 &>
173 <div id="img_height" style="display:none;" value="601"></div>
175 <div id="hide1" style="display:none;">
176 <&| /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" &>
179 <td id="score_p" style="text-align:'right';"></td>
185 <td>Region Start: </td><td><input type="text" id="cbr_start" size="3"></td>
186 <td>Region End: </td><td><input type="text" id="cbr_end" size="3"> </td>
187 <td><button type="button" id="set_custom" value="set custom best region">Set Custom Region</button><br /></td>
190 <td>Target genes: </td><td><input id="t_num" size="1" name="targets" min="1" /></td>
191 <td>Fragment size:</td><td><input id="f_size" size="3" name="seq_fragment" /></td>
193 n-mer: <input id="n_mer" size="2" name="si_rna" />
194 Mismatches: <input id="align_mm" size="1" name="align_mm" />
196 <td><button id="change_par" type="button" value="recalculate">Change</button></td>
201 <span id="no_results" style="color:red;"></span>
202 <p style="color:red" id="cbr_p"></p>
205 <div id="hide2" style="display:none;">
206 <&| /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" &>
207 <div class="seq_map" id="seq_map">
208 <div class="region_square" id="region_square"></div>
209 <canvas id="myCanvas" width="700" height="600">
210 Your browser does not support the HTML5 canvas
214 <button id="collapse" value="1">Expand Graph</button>
215 <button id="zoom" value="0">Zoom In</button>
216 <button id="params_dialog">Parameters Used</button>
221 <div id="help_fsize"></div>
222 <div id="help_nmer"></div>
223 <div id="help_mm"></div>
224 <div id="help_db"></div>
227 <div id="hide3" style="display:none;">
229 <&| /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" &>
231 <p id="best_seq" style="font-family:courier;font-size:16px;"></p>
236 <&| /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" &>
237 <span id="query" style="display:none"></span>
238 <div id="markup" style="align:left;"></div>
242 <&| /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" &>
243 <table id="target_info"></table>
249 <div id="desc_dialog">
250 <table id="dialog_info"></table>
253 <div id="params" style="display:none;"></div>
254 <div id="help_dialog_tmp" style="display:none;"></div>
277 vertical-align:middle;
284 #open_descriptions_dialog {
296 .ui-tooltip, .arrow:after {
298 border: 2px solid white;
304 font: bold 12px "Helvetica Neue", Sans-Serif;
305 box-shadow: 0 0 7px black;
330 box-shadow: 6px 5px 9px -9px black;
331 -webkit-transform: rotate(45deg);
332 -moz-transform: rotate(45deg);
333 -ms-transform: rotate(45deg);
334 -o-transform: rotate(45deg);
335 tranform: rotate(45deg);
344 background-color:#EEEEFE;
357 #upload_expression_file {
358 background-color:#555555;
359 /*background-color:#4387FD;*/
364 box-shadow: 1px 1px 0px 0px #C6C6C6;
371 #upload_expression_file:hover {
372 background-color:#444444;
373 /*background-color:#5EA1FF;*/
377 #upload_expression_file:active {
381 box-shadow: 0px 0px 0px 0px #fff;