aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask
diff options
context:
space:
mode:
authorZachary Sloan2013-06-20 21:18:09 +0000
committerZachary Sloan2013-06-20 21:18:09 +0000
commit3b2f40f45c1fddf89bba3b53e51771bfc25cd6f2 (patch)
treedf878b990bdf55af9c954c02249ad973f4c0d9c1 /wqflask/wqflask
parent56e91a003a6931de9acaeb8de9410ef91bcc1857 (diff)
parent82bd8b61b4aed0b0ae07477afae37a846fab35c2 (diff)
downloadgenenetwork2-3b2f40f45c1fddf89bba3b53e51771bfc25cd6f2.tar.gz
Merge branch 'flask' of git://github.com/leiyan/GeneNetwork2-Python into flask
Conflicts: wqflask/requirements.txt wqflask/wqflask/correlation/show_corr_results.py
Diffstat (limited to 'wqflask/wqflask')
-rw-r--r--wqflask/wqflask/search_results.py2
-rw-r--r--wqflask/wqflask/templates/correlation_page.html33
2 files changed, 21 insertions, 14 deletions
diff --git a/wqflask/wqflask/search_results.py b/wqflask/wqflask/search_results.py
index 8ec6b897..f76af374 100644
--- a/wqflask/wqflask/search_results.py
+++ b/wqflask/wqflask/search_results.py
@@ -107,7 +107,7 @@ class SearchResultPage(object):
print("foo locals are:", locals())
trait_id = result[0]
this_trait = GeneralTrait(dataset=self.dataset, name=trait_id)
- this_trait.retrieve_info(QTL=True)
+ this_trait.retrieve_info(get_qtl_info=True)
self.trait_list.append(this_trait)
self.dataset.get_trait_info(self.trait_list, species)
diff --git a/wqflask/wqflask/templates/correlation_page.html b/wqflask/wqflask/templates/correlation_page.html
index b06f7096..efbf689c 100644
--- a/wqflask/wqflask/templates/correlation_page.html
+++ b/wqflask/wqflask/templates/correlation_page.html
@@ -17,30 +17,37 @@
<thead>
<tr>
<th>Trait</th>
+ <th>Symbol</th>
+ <th>Alias</th>
+ <th>Description</th>
+ <th>Location</th>
+ <th>Mean Expr</th>
+ <th>Max LRS</th>
+ <th>Max LRS Location</th>
{% if corr_method == 'pearson' %}
<th>Sample r</th>
+ <th>N Cases</th>
<th>Sample p(r)</th>
{% else %}
<th>Sample rho</th>
<th>Sample p(rho)</th>
{% endif %}
- <th>Symbol</th>
- <th>Alias</th>
- <th>Description</th>
- <th>Location</th>
</tr>
</thead>
<tbody>
- {% for trait in correlation_data_slice %}
+ {% for trait in correlation_results %}
<tr>
- <td>{{ trait }}</td>
- <td>{{ correlation_data_slice[trait].correlation }}</td>
- <td>{{ correlation_data_slice[trait].p_value }}</td>
- <td>{{ correlation_data_slice[trait].symbol }}</td>
- <td>{{ correlation_data_slice[trait].alias }}</td>
- <td>{{ correlation_data_slice[trait].description }}</td>
- <td>Chr{{ correlation_data_slice[trait].chromosome }}: {{ correlation_data_slice[trait].mb }}</td>
- {# <td>{{ correlation_data_slice[trait][2].__dict__ }}</td> #}
+ <td>{{ trait.name }}</td>
+ <td>{{ trait.symbol }}</td>
+ <td>{{ trait.alias }}</td>
+ <td>{{ trait.description }}</td>
+ <td>Chr{{ trait.chr }}: {{ trait.mb }}</td>
+ <td>{{ trait.mean }}</td>
+ <td>{{ trait.lrs }}</td>
+ <td>Chr{{ trait.locus_chr }}: {{ trait.locus_mb }}</td>
+ <td>{{ trait.sample_r }}</td>
+ <td>{{ trait.num_overlap }}</td>
+ <td>{{ trait.sample_p }}</td>
</tr>
{% endfor %}
</tbody>