diff options
author | Lei Yan | 2017-03-16 17:18:44 +0000 |
---|---|---|
committer | Lei Yan | 2017-03-16 17:18:44 +0000 |
commit | 6224a885f99ed4e26164e49260c222183bf4982a (patch) | |
tree | c80d0bd1882a6b7b73e8c769dc2abecdbaf307dc /wqflask | |
parent | 568adbb1bfe72c22fae9bec7da7a421945674743 (diff) | |
download | genenetwork2-6224a885f99ed4e26164e49260c222183bf4982a.tar.gz |
Add meta info (X axis, Y axis) for Correlation Scatterplot
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/templates/corr_scatterplot.html | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/corr_scatterplot.html b/wqflask/wqflask/templates/corr_scatterplot.html index 2b2119ea..140a7cca 100644 --- a/wqflask/wqflask/templates/corr_scatterplot.html +++ b/wqflask/wqflask/templates/corr_scatterplot.html @@ -47,10 +47,49 @@ </tr>
</table>
</form>-->
-
+<div class="container">
<div id="chart1" class="qtlcharts"></div>
+<div>X axis:</div>
+ {% if trait_1.dataset.type == "ProbeSet" %}
+ <div>
+ <a href="{{url_for('show_trait_page', trait_id = trait_1.name, dataset = trait_1.dataset.name)}}">
+ {{trait_1.dataset.group.species + " " + trait_1.dataset.group.name + " " + trait_1.dataset.tissue + " " + trait_1.dataset.name + ": " + trait_1.name|string}}
+ </a>
+ </div>
+ <div>[{{trait_1.symbol}} on {{trait_1.location_repr}} Mb]</div>
+ <div>{{trait_1.description_display}}</div>
+ {% elif trait_1.dataset.type == "Publish" %}
+ <div>
+ <a href="{{url_for('show_trait_page', trait_id = trait_1.name, dataset = trait_1.dataset.name)}}">
+ {{trait_1.dataset.group.species + " " + trait_1.dataset.group.name + " " + trait_1.dataset.name + ": " + trait_1.name|string}}
+ </a>
+ </div>
+ <div><a href="{{trait_1.pubmed_link}}">PubMed: {{trait_1.pubmed_text}}</a></div>
+ <div>{{trait_1.description_display}}</div>
+ {% endif %}
+
+<br/>
+<div>Y axis:</div>
+ {% if trait_2.dataset.type == "ProbeSet" %}
+ <div>
+ <a href="{{url_for('show_trait_page', trait_id = trait_2.name, dataset = trait_2.dataset.name)}}">
+ {{trait_2.dataset.group.species + " " + trait_2.dataset.group.name + " " + trait_2.dataset.tissue + " " + trait_2.dataset.name + ": " + trait_2.name|string}}
+ </a>
+ </div>
+ <div>[{{trait_2.symbol}} on {{trait_2.location_repr}} Mb]</div>
+ <div>{{trait_2.description_display}}</div>
+ {% elif trait_2.dataset.type == "Publish" %}
+ <div>
+ <a href="{{url_for('show_trait_page', trait_id = trait_2.name, dataset = trait_2.dataset.name)}}">
+ {{trait_2.dataset.group.species + " " + trait_2.dataset.group.name + " " + trait_2.dataset.name + ": " + trait_2.name|string}}
+ </a>
+ </div>
+ <div><a href="{{trait_2.pubmed_link}}">PubMed: {{trait_2.pubmed_text}}</a></div>
+ <div>{{trait_2.description_display}}</div>
+ {% endif %}
+</div>
{% endblock %}
{% block js %}
|