<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
  <title>CompClust - DataSource</title>
  <link rel="stylesheet" href="/compclust_css" type="text/css"
  	tal:attributes="href compclust_css" />
</head>
<body>
<span id="compclustMenu" tal:replace="structure menu"/>
<div id="compclustBody">
<h1><a href="#instructions">Modify data set properties</a></h1>
<form action="edit" method="post">
  <p>
  Data Source <span tal:replace="datasourcesource"/>
  </p>
  <p>
  <label for="datasourcename">Data Name</label>
  <input id="datasourcename" name="datasourcename" type="text"
         value="name" tal:attributes="value datasourcename"/>
  </p>
  <p>
  Data Size <span tal:replace="datasourcesize"/>
  </p>
  <h2>Annotations</h2>
  <table class="labelingSummary" width="80%">
    <thead class="labelingSummary" >
      <tr><td >Name</td><td width="60%">Lookup URL</td><!-- td>Label Source</td --></tr>
    </thead>
    <tbody>
    <tr class="labelingSummary" tal:repeat="label annotations">
      <td tal:content="label/1/name">labeling name</td>
      <td tal:content="label/1/lookup_url">lookup url</td>
      <td>
        <a href="editlabelingsource" tal:attributes="href label/0">Edit</a>
      </td>
    </tr>
    <tr>
      <td span="3">
        <a href="editlabelingsource" tal:attributes="href
           add_annotation_url">attach new annotation</a>
      </td>
    </tr>
    </tbody>
  </table>
  <h2>Clusterings</h2>
  <table class="labelingSummary" width="80%">
    <thead class="labelingSummary" >
      <tr><td >Name</td><td width="60%">Lookup URL</td><!-- td>Label Source</td --></tr>
    </thead>
    <tbody>
    <tr class="labelingSummary" tal:repeat="label clusterings">
      <td tal:content="label/1/name">labeling name</td>
      <td tal:content="label/1/lookup_url">lookup url</td>
      <td>
        <a href="editlabelingsource" tal:attributes="href label/0">Edit</a>
      </td>
    </tr>
    <tr>
      <td span="3">
        <a href="editlabelingsource" tal:attributes="href
           add_clustering_url">attach new clustering</a>
      </td>
    </tr>
    </tbody>
  </table>
  <p>
  <label for="primary">Primary row annotation</label>
  <select id="primary" name="primary">
    <option tal:repeat="label primary" tal:content="label/0" 
            tal:attributes="selected label/1">None</option>
  </select>
  <p>
  </p>
  <label for="secondary">Secondary row annotation</label>
  <select id="secondary" name="secondary">
    <option tal:repeat="label secondary" tal:content="label/0"
            tal:attributes="selected label/1">None</option>
  </select>
  </p>
  <p>
  <input type="submit"/>
  </p>
</form>
<hr/>
  <a name="saveid" id="saveid" href="" tal:attributes="href save_url"
     class="button">
  Save data source
  </a>
  <a name="unloadid" id="unloadid" href="" tal:attributes="href unload_url" 
     class="button">
  Unload data source
  </a>
  <a name="deleteid" id="deleteid" href="" tal:attributes="href delete_url"
     class="button">
  Delete data source
  </a>
<hr/>
<h1><a name="instructions">Instructions</a></h1>
<p>
  Annotations provide descriptive information about the various rows and columns of 
  a dataset, while clusterings allow one to divide the dataset into various 
  subsets. Typical annotation are things like unique names and 
  longer descriptions for each row, such as accession IDs and gene names respectively.
</p>
<p>
The primary annotation provide label that is unique for each row of
your data. It must be set if you want to look at a specific gene
vectors. Good choices are things like ORF name, Accession Number, etc.
</p>
<p>
The secondary annotation is used to provide a additional information for a particular row, good choices are gene annotation or gene name. 
</p>
</div>
</body>
</html>
