Ejemplo n.º 1
0
def mk_data_form(v_data, content):# opt_panel, bm_panel, filt_panel):
  html = '<form id = "metadata" method = "POST">'
  html += sh.mk_db_name_field(v_data.db_name)
  html += sh.mk_hidden_field('al_id', str(v_data.al_id))
  html += '<table class = "form_holder"><tr>' #viewer options
  html += '<td>' + mk_options_panel(v_data) + '</td>\n'
  html += '<td>' + mk_block_markup_panel(v_data) + '</td>'
  html += '</tr>\n</table>\n' #viewer options closed
  html += '<table class = "form_holder">' 
  html += '<tr><td>' + mk_filters_panel(v_data) + '</td></tr>\n'
  html += '</table>\n' #form_holder closed
  html += '<table class = "form_holder"><tr><td>'
  # html += fh.mk_filter_form(v_data.filter_set, 'Set filters to get split ids', 
          # 'Load filtered ids','fusedAlViewer.py', 'metadata', False, False)
  # html += '</td><td>Source of split enzymes set:<br>'
  # html += sh.mk_select('split_source', ['filters', 'checkboxes', 'su_pos_aac'])
  # html += sh.mk_submit_btn('Split with polinomial probability', 
          # 'splitAnProb.py')
  # html += sh.mk_submit_btn('Split and analyse with Shannon entropy', 
                           # 'splitAnShan.py')
  html += sh.mk_submit_btn('Split and analyse',  'splitAn.py')
  html += '</td></tr></table>\n'
  html += content
  html += '</form>\n'
  return html
Ejemplo n.º 2
0
def mk_data_form(s_data, content):# opt_panel, bm_panel, filt_panel):
  on_kd = "return event.key != 'Enter';"
  html = '<form id = "metadata" method = "POST"  onkeydown="' + on_kd + '">'
  html += sh.mk_db_name_field(s_data.db_name)
  html += sh.mk_hidden_field('al_id', str(s_data.al_id))
  html += mk_info_panel(s_data)
  html += content + '</form>\n'
  return html
Ejemplo n.º 3
0
def mk_metadata(db_name, table_name, col_names, groups, id_list, max_id):
    html = '<form id="metadata">\n'
    html += sh.mk_datalist('group_data_list', groups)
    html += sh.mk_hidden_field('groups', str(groups))
    html += sh.mk_db_name_field(db_name)
    html += sh.mk_hidden_field('table_name', table_name)
    html += sh.mk_hidden_field('col_names_list', str(col_names))
    html += sh.mk_hidden_field('last_col_id', str(max_id))
    html += sh.mk_id_list_field(table_name, id_list)
    return html
Ejemplo n.º 4
0
def mk_data_form(db_name, id_set, filter_str, org_list, content):
  data_form = '<form enctype="multipart/form-data" id = "metadata" ' + \
              'method = "POST" >\n '
  data_form += sh.mk_db_name_field(db_name)
  data_form += sh.mk_id_set_field('enz_id', id_set)
  data_form += sh.mk_hidden_field('filter_str', filter_str)
  data_form += sh.mk_hidden_field('su_names', 
                                  str(sorted(org_list.su_names_isect)))
  data_form += content
  data_form += sh.mk_submit_btn('add fused alignment from files loaded above',
                                'alMan.py')
  data_form += '</form> \n'
  return data_form
Ejemplo n.º 5
0
def mk_data_form(db_name, content):
  data_form = '<form name = "metadata" id = "metadata">\n '
  data_form += sh.mk_db_name_field(db_name)
  data_form += content
  data_form += '</form>'
  return data_form