File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ class MetadataResult(BaseModel):
32
32
scientific_name : str
33
33
common_name : str
34
34
type : Optional [Dict [str , str ]] = None
35
+ is_reference : bool = False
35
36
36
37
37
38
class ResolvedPayload (MetadataResult ):
Original file line number Diff line number Diff line change @@ -21,7 +21,17 @@ <h1>Resolved URLs</h1>
21
21
< td > {{ item.assembly.accession_id }}</ td >
22
22
< td > {{ item.scientific_name }}</ td >
23
23
< td > {{ item.common_name }}</ td >
24
- < td > {{ item.type.kind }} - {{ item.type.value }}</ td >
24
+ < td >
25
+ {% if item.type and item.is_reference %}
26
+ {{ item.type.kind }} - {{ item.type.value }}, Reference
27
+ {% elif item.is_reference %}
28
+ Reference
29
+ {% elif item.type %}
30
+ {{ item.type.kind }} - {{ item.type.value }}
31
+ {% else %}
32
+ -
33
+ {% endif %}
34
+ </ td >
25
35
< td >
26
36
< a href ="{{ item.resolved_url }} "> Ensembl</ a >
27
37
</ td >
Original file line number Diff line number Diff line change 87
87
resolved_url :
88
88
type : string
89
89
description : Resolved url to Ensembl site
90
+ is_reference :
91
+ type : boolean
92
+ description : Whether a genome is reference or not
90
93
' 302 ' :
91
94
description : Redirect to resolved URL
92
95
headers :
You can’t perform that action at this time.
0 commit comments