4 $user_readable_filename => ""
5 $reference_files_menu => ""
9 <& /page/page_title.mas, title => "SimSearch: File $user_readable_filename uploaded for analysis [ $format format ]" &>
11 (working file name <% $filename %>)
13 <div id="simsearch_input_form">
15 Optional: Select reference genotyping file:<br />
17 <% $reference_files_menu %><br /><br />
19 <input id="simsearch_filename" type="hidden" name="filename" value="<% $filename %>" />
21 <button class="btn" id="simsearch_run_button">Run SimSearch</button>
26 <div id="simsearch_results">
28 <table id="simsearch_results_table">
30 <tr><th>Group #</th><th>Member count</th><th>Max score</th><th>Average score</th><th>Group members</th></tr>
33 <div id="simsearch_results_histogram">[HISTOGRAM]</div>
40 jQuery(document).ready( function() {
41 jQuery('#simsearch_run_button').click( function() {
43 var filename = jQuery('#simsearch_filename').val();
44 var reference_file = jQuery('#reference_file').val();
48 url: '/ajax/tools/simsearch/process_file',
49 data: { 'filename' : filename, 'reference_file' : reference_file },
52 }).done( function(response) {
53 jQuery('#simsearch_results_table').DataTable({
56 alert('HISTOGRAM: '+response.histogram);
57 jQuery('#simsearch_results_histogram').html('<img src="'+response.histogram+'" />');