aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/dataset.html
blob: 32f1768276561e94ccd5941bfc77140d92a3e12b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
{% extends "base.html" %}

{% block css %}
<style type="text/css">
 .page-header, .dataset-content {
     padding-left: 10%;
     line-height: 1.375;
 }

 .dataset-content blockquote {
     font-size: 13px;
 }
 .page-header h1 {
     font-size: 1.8em;
     line-height: 1.375;
 }
 .panel-about {
     background: #F8F8F8;
     max-width: 35em;
     margin: 10px;
 }
 .panel-metadata {
     display: inline-block;
     width: fit-content;
     height: fit-content;
     padding: 0;
     {% if dataset.description or dataset.specificity or dataset.experimentDesignInfo or
	 dataset.caseInfo or dataset.tissue or
	 dataset.platform or dataset.processingInfo or
	 dataset.notes or dataset.references or dataset.acknowledgment or dataset.contributors
	 %}
     float: right;
     {% endif %}
 }

 .panel-metadata dt {
     color: green;
 }

 .panel-metadata dt::after {
     content: ":";
 }

 .search {
     width: 50%;
     margin: 1em auto;
 }
 .has-search .form-control-feedback {
     right: initial;
     left: 0;
     color: #ccc;
 }

 .has-search .form-control {
     padding-right: 12px;
     padding-left: 34px;
 }

 .search {
     transform: scale(1.5, 1.5);
 }
 .search input {
     min-width: 17em;
 }
 .dataset-search {
     padding: 0 17%;
 }
</style>
{% endblock %}

{% block title %}Dataset: {{ name }}{% endblock %}
{% block content %}

{% if dataset %}

<div class="container dataset-content">
    <header class="page-header text-justify">
	<h1>
	    {% if dataset.title or dataset.label or dataset.altLabel %}
	    {{ dataset.title or dataset.label or dataset.altLabel }}
	    {% if dataset.title != dataset.altLabel and dataset.label != dataset.altLabel %}
	    <br/>
            <small>({{ dataset.altLabel }})</small>
	    {% endif %}
	    {% else %}
            {{ name }}
            {% endif %}
	</h1>
    </header>
    <div class="panel-about panel panel-info panel-metadata text-muted">
        <div class="panel-heading">
	    <strong>
		<span class="glyphicon glyphicon-info-sign aria-hidden=true"></span>
		Details
	    </strong>
	    {% if dataset.accessionId %}
	    <small>
		<a href="https://gn1.genenetwork.org/webqtl/main.py?FormID=sharinginfo&GN_AccessionId={{ dataset.accessionId.split('GN')[-1] }}" target="_blank">(GN1 Link)</a>
	    </small>
	    {% endif %}
	</div>
        <div class="panel-body">
            <dl class="dl-horizontal">
		{% if dataset.label != dataset.altLabel and dataset.label != dataset.title %}
		<dt>Name</dt>
		<dd> {{ dataset.label }} </dd>
		{% endif %}
                {% if dataset.created %}
		<dt>Created</dt>
		<dd>{{ dataset.created }}</dd>
		{% endif %}
                {% if dataset.inbredSet %}
		<dt>Group</dt>
		<dd>{{ dataset.inbredSet.label}}</dd>
		{% endif %}

		{% if dataset.accessionId %}
		<dt>Accession Id</dt>
		<dd>{{ dataset.accessionId}}</dd>
		{% endif %}

                {% if dataset.hasGeoSeriesId %}
		<dt>GEO Series</dt>
		<dd>
		    <a href="{{ dataset.geoSeriesId }}" target="_blank">{{ dataset.geoSeriesId.split("=")[-1] }}</a>
		</dd>
		{% endif %}

                {% if dataset.tissue %}
		<dt>Tissue</dt>
		<dd>{{ dataset.tissue.label }}</dd>
		{% endif %}

		{% if dataset.platform %}
		<dt>Platforms</dt>
		<dd>
		    {{ dataset.platform.label }}
		    [<a href="{{ dataset.platform.id}}" target="_blank">
		    {{ dataset.platform.prefLabel}}
		    </a>]
		</dd>
		{% endif %}

                {% if dataset.normalization %}
		<dt>Normalization</dt>
		<dd>{{ dataset.normalization.label }}</dd>
		{% endif %}

                {% if dataset.contactPoint %}
                <dt>Investigator</dt>
                <dd>
		    {% if dataset.contactPoint.contactWebUrl %}
		    <a href="{{ dataset.contactPoint.contactWebUrl }}" target="_blank">
			{{ dataset.contactPoint.contactName }}
		    </a>
		    {% else %}
		    {{ dataset.contactPoint.contactName }}
		    {% endif %}
                </dd>
                {% endif %}

		{% if dataset.organization %}
		<dt>Organization</dt>
		<dd>{{ dataset.organization }}</dd>
		{% endif %}
            </dl>
	</div>
    </div>

    <div id="dataset-description" class="container row dataset-metadata">
	{% if dataset.description %}
	<h3>
	    <strong>Description</strong>
	    {% if dataset.editable %}
	    <sup>
		[&nbsp;
		<a href="/metadata/edit?type=dcat:Dataset&section=description&name={{ dataset.label}}">edit</a>
		&nbsp;]
	    </sup>
	    {% endif %}
	</h3>
        <div>{{ dataset.description|safe }}</div>
        {% endif %}

	{% if dataset.experimentType %}
        <h3>
	    <strong>Experiment Type</strong>
	    {% if dataset.editable %}
	    <sup>
		[&nbsp;
		<a href="/metadata/edit?type=dcat:Dataset&section=experimentType&name={{ dataset.label}}">edit</a>
		&nbsp;]
	    </sup>
	    {% endif %}
	</h3>
        <div>{{ dataset.experimentType|safe }}</div>
        {% endif %}

	{% if dataset.specifics %}
	<h3>
	    <strong>Specifics of this Dataset</strong>
	    {% if dataset.editable %}
	    <sup>
		[&nbsp;
		<a href="/metadata/edit?type=dcat:Dataset&section=specifics&name={{ dataset.label}}">edit</a>
		&nbsp;]
	    </sup>
	    {% endif %}
	</h3>
	<div>{{ dataset.specifics }}</div>
	{% endif %}

	{% if dataset.experimentDesignInfo %}
        <h3>
	    <strong>Experiment Design</strong>
	    {% if dataset.editable %}
	    <sup>
		[&nbsp;
		<a href="/metadata/edit?type=dcat:Dataset&section=experimentDesignInfo&name={{ dataset.label}}">edit</a>
		&nbsp;]
	    </sup>
	    {% endif %}
	</h3>
        <div>{{ dataset.experimentDesignInfo|safe }}</div>
        {% endif %}

	{% if dataset.caseInfo %}
        <h3>
	    <strong>About the Cases Used to Generate this Dataset:</strong>
	    {% if dataset.editable %}
	    <sup>
		[&nbsp;
		<a href="/metadata/edit?type=dcat:Dataset&section=caseInfo&name={{ dataset.label}}">edit</a>
		&nbsp;]
	    </sup>
	    {% endif %}
	</h3>
        <div>{{ dataset.caseInfo|safe }}</div>
        {% endif %}

	{% if dataset.tissue and dataset.tissueInfo %}
        <h3>
	    <strong>About the Tissue
	    {%if dataset.tissue and dataset.tissue.label  %}({{ dataset.tissue.label }})
		{% endif %}Used to Generate this Dataset</strong>
	    {% if dataset.editable %}
	    <sup>
		[&nbsp;
		<a href="/metadata/edit?type=dcat:Dataset&section=tissueInfo&name={{ dataset.label}}">edit</a>
		&nbsp;]
	    </sup>
	    {% endif %}
	</h3>
        <div>{{ dataset.tissueInfo|safe }}</div>
        {% endif %}

        {% if dataset.platform and dataset.platformInfo %}
        <h3 title="{{ dataset.platform.label }}">
	    <strong>About the Array Platform</strong>
	    {% if dataset.editable %}
	    <sup>
		[&nbsp;
		<a href="/metadata/edit?type=dcat:Dataset&section=platformInfo&name={{ dataset.label}}">edit</a>
		&nbsp;]
	    </sup>
	    {% endif %}
	</h3>
        <div>{{ dataset.platformInfo|safe }}</div>
        {% endif %}

        {% if dataset.processingInfo %}
        <h3>
	    <strong>About Data Values and Data Processing</strong>
	    {% if dataset.editable %}
	    <sup>
		[&nbsp;
		<a href="/metadata/edit?type=dcat:Dataset&section=processingInfo&name={{ dataset.label}}">edit</a>
		&nbsp;]
	    </sup>
	    {% endif %}
	</h3>
        <div>{{ dataset.processingInfo|safe }}</div>
        {% endif %}

	{% if dataset.notes %}
        <h3>
	    <strong>Notes</strong>
	    {% if dataset.editable %}
	    <sup>
		[&nbsp;
		<a href="/metadata/edit?type=dcat:Dataset&section=notes&name={{ dataset.label}}">edit</a>
		&nbsp;]
	    </sup>
	</h3>
	{% endif %}
        <div>{{ dataset.notes|safe }}</div>
        {% endif %}

	{% if dataset.citation|trim %}
        <h3>
	    <strong>Citation</strong>
	    {% if dataset.editable %}
	    <sup>
		[&nbsp;
		<a href="/metadata/edit?type=dcat:Dataset&section=citation&name={{ dataset.label}}">edit</a>
		&nbsp;]
	    </sup>
	    {% endif %}
	</h3>
        <div>{{ dataset.citation|safe}}</div>
        {% endif %}

	{% if dataset.acknowledgement|trim %}
        <h3>
	    <strong>Acknowledgment</strong>
	    {% if dataset.editable %}
	    <sup>
		[&nbsp;
		<a href="/metadata/edit?type=dcat:Dataset&section=acknowledgement&name={{ dataset.label}}">edit</a>
		&nbsp;]
	    </sup>
	    {% endif %}
	</h3>
        <div>{{ dataset.acknowledgement|safe}}</div>
        {% endif %}

        {% if dataset.contributors %}
	<h3>
	    <strong>Contributors</strong>
	    {% if dataset.editable %}
	    <sup>
		[&nbsp;
		<a href="/metadata/edit?type=dcat:Dataset&section=contributors&name={{ dataset.label}}">edit</a>
		&nbsp;]
	    </sup>
	    {% endif %}
	</h3>
	<div>{{ dataset.contributors|safe }}</div>
	{% endif %}
    </div>
</div>

{% else %}
<div class="container dataset-search">
    <p class="lead">We appreciate your interest, but unfortunately, we don't have any additional information available for: <strong>{{ name }}</strong>.  If you have other inquiries or need assistance with something else, please don't hesitate to get in touch with us.
</div>

{% endif %}

{% endblock %}

{% block js %}

<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='htmx.min.js') }}"></script>

{% endblock %}