<?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" lang="en">
<head>
  <title>CompClust - PC Condition Covariate Scores</title>
  <link rel="stylesheet" href="/compclust_css" type="text/css"
  	tal:attributes="href compclust_css" />
  <script language="JavaScript" type="text/javascript" src="/sorttable_js" tal:attributes="src sorttable_js"></script>
</head>
<body>
<span id="compclustMenu" tal:replace="structure menu"/>
<div id="compclustBody">
  <h1><a href="#instructions">PC Condition Covariate Scores</a></h1>
<form action="" method="get">
  <p>
  <label for="pcNum">Choose component</label> 
  <select name="pcNum" id="pcNum">
    <option tal:repeat="pcNum pcNums" tal:content="pcNum/0"
            tal:attributes="selected pcNum/1">None</option>
  </select>
  </p>
  <input type="submit"/>
</form>
  <hr/>
  <div tal:condition="continuous">
  <h2>Continuous Covariate Scores</h2>
  <table class="sortable" id="continuousTable">
    <thead>
      <tr><td>Covariate Name</td><td>Best score</td><td>Up/Flat, Up/Down, Flat/Down</td></tr>
    </thead>
    <tbody>
      <tr tal:repeat='row continuous'>
        <td tal:content='row/name'>name</td>
        <td tal:content='row/best'>scores</td>
        <td tal:content='row/score'>scores</td>
      </tr>
    </tbody>
  </table>  
  <hr/>
  </div>
  <div tal:condition="discrete">
  <h2>Discrete Covariate Scores</h2>
  <table class="sortable" id="discreteTable">
    <thead>
      <tr><td>Covariate Name</td><td>Best score</td></tr>
    </thead>
    <tbody>
      <tr tal:repeat='row discrete'>
        <td tal:content='row/name'>name</td>
        <td tal:content='row/score'>score</td>
      </tr>
    </tbody>
  </table>
  </div>
<hr/>
<h1><a name="instructions">Instructions</a></h1>
<p>
  For a given principal component PCn, display a score for each condition 
  (e.g. tissue or sample) covariate indicating the degree to which that 
  covariate is correlated with that PCn's significant condition grouping 
  into Up/Flat/Down conditions. A score will be generated for each 
  user-supplied column labeling attached to a dataset (i.e. all of the 
  dataset's covariate annotations, e.g. age, tissue, treatment). For 
  discrete covariates a normalized mutual information (NMI) score is 
  computed, indicating the degree agreement between the covariate's 
  discrete values and the condition Up/Flat/Down grouping (a higher score 
  means better agreement). For continuous covariates, Wilcoxon rank sum 
  tests are generated, giving the likelihood of 2 sets of covariate values 
  belonging to the same distribution. Three pairs of condition groups are 
  scored: (Up vs. Flat), (Up vs. Down) and (Flat vs. Down).
</p>
<p>
  Use the choose component to see which principal component you want to explore. 
  The format is principal component number - percent variance captured.
</p>
<p>
  The list of check boxes is used to select which annotation you would like to 
  see reported in your list.
</p>
</div>
</body>
</html>
