Skip to content

Commit 854af66

Browse files
committed
add ebi to prep
1 parent b945511 commit 854af66

File tree

3 files changed

+34
-3
lines changed

3 files changed

+34
-3
lines changed

qiita_pet/handlers/api_proxy/prep_template.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ def prep_template_ajax_get_req(user_id, prep_id):
180180
'editable': editable,
181181
'data_type': pt.data_type(),
182182
'alert_type': alert_type,
183+
'ebi_experiment_accessions': pt.ebi_experiment_accessions,
183184
'alert_message': alert_msg}
184185

185186

qiita_pet/handlers/api_proxy/tests/test_prep_template.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,33 @@ def test_prep_template_ajax_get_req(self):
8888
'editable': True,
8989
'data_type': '18S',
9090
'alert_type': '',
91+
'ebi_experiment_accessions': {'1.SKB1.640202': 'ERX0000011',
92+
'1.SKB2.640194': 'ERX0000008',
93+
'1.SKB3.640195': 'ERX0000024',
94+
'1.SKB4.640189': 'ERX0000020',
95+
'1.SKB5.640181': 'ERX0000006',
96+
'1.SKB6.640176': 'ERX0000025',
97+
'1.SKB7.640196': 'ERX0000002',
98+
'1.SKB8.640193': 'ERX0000000',
99+
'1.SKB9.640200': 'ERX0000016',
100+
'1.SKD1.640179': 'ERX0000012',
101+
'1.SKD2.640178': 'ERX0000009',
102+
'1.SKD3.640198': 'ERX0000013',
103+
'1.SKD4.640185': 'ERX0000023',
104+
'1.SKD5.640186': 'ERX0000017',
105+
'1.SKD6.640190': 'ERX0000007',
106+
'1.SKD7.640191': 'ERX0000021',
107+
'1.SKD8.640184': 'ERX0000001',
108+
'1.SKD9.640182': 'ERX0000019',
109+
'1.SKM1.640183': 'ERX0000026',
110+
'1.SKM2.640199': 'ERX0000015',
111+
'1.SKM3.640197': 'ERX0000018',
112+
'1.SKM4.640180': 'ERX0000004',
113+
'1.SKM5.640177': 'ERX0000005',
114+
'1.SKM6.640187': 'ERX0000022',
115+
'1.SKM7.640188': 'ERX0000010',
116+
'1.SKM8.640201': 'ERX0000014',
117+
'1.SKM9.640192': 'ERX0000003'},
91118
'alert_message': ''}
92119
self.assertEqual(obs, exp)
93120

qiita_pet/templates/study_ajax/prep_summary.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,10 @@ <h4>
353353
<!-- #samples and #columns -->
354354
<div class="row">
355355
<div class="col-md-12">
356-
There are <b>{{num_samples}}</b> samples and <b>{{num_columns}}</b> columns in this preparation.
356+
There are <b>{{num_samples}}</b> samples and <b>{{num_columns}}</b> columns in this preparation.</br>
357+
{% if ebi_experiment_accessions %}
358+
<b>EBI status: </b> Submitted
359+
{% end %}
357360
</div>
358361
</div>
359362

@@ -406,12 +409,12 @@ <h4>
406409

407410
<!-- Files graph or add artifact -->
408411
<div class="row">
409-
<div class="col-md-12" id="graph-or-new-artifact-div">
412+
<div class="col-md-10" id="graph-or-new-artifact-div">
410413
</div>
411414
</div>
412415

413416
<!-- Prep information summary -->
414417
<div class="row">
415-
<div class="col-md-12" id="prep-artifact-summary-div">
418+
<div class="col-md-10" id="prep-artifact-summary-div">
416419
</div>
417420
</div>

0 commit comments

Comments
 (0)