Newer
Older
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
<template>
<div class="d-flex" id="wrapper">
<!-- Sidebar -->
<!--<div class="bg-light border-right" id="sidebar-wrapper">-->
<!--<!–<div class="sidebar-heading">Menu </div>–>-->
<!--<div class="list-group list-group-flush">-->
<!--<a href="#" class="list-group-item list-group-item-action bg-light">Search</a>-->
<!--<a href="#" class="list-group-item list-group-item-action bg-light">Columns</a>-->
<!--<a href="#" class="list-group-item list-group-item-action bg-light">Filters</a>-->
<!--<a href="#" class="list-group-item list-group-item-action bg-light">Download</a>-->
<!--<a href="#" class="list-group-item list-group-item-action bg-light">Contacts</a>-->
<!--</div>-->
<!--</div>-->
<!-- /#sidebar-wrapper -->
<div id="page-content-wrapper" class="main">
<h2>Protein Detail</h2>
<fetch-protein :protein="protein">
<template slot-scope="{response, loading}">
<slot :response="response" :loading="loading">
<div v-if="loading">Loading...</div>
<div v-else>
<h4 class="round">General Information</h4>
<div class="panel panel-default">
<div class="panel-heading">
<b>Protein {{response.data.name}}</b>
</div>
<div class="panel-body">
<div class="container-fluid col-md-12">
<div class="row">
<div class="text col-sm-3">Gene name</div>
<div class="col-sm-9">
{{response.data.gene_name}}
</div>
</div>
<div class="row">
<div class="text col-sm-3">Species</div>
<div class="col-sm-9">
{{response.data.species_name + ' (' + response.data.species_tax_id + ')'}}
</div>
</div>
<div class="row">
<div class="text col-sm-3">Ensembl ID</div>
<div class="col-sm-9">
<div v-if="response.data.ensembl_id">
<a :href="'https://www.ensembl.org/id/' + response.data.ensembl_id" class="uniprot-link" target="_blank">
{{response.data.ensembl_id}}
<i class="glyphicon glyphicon-link"></i></a>
</div>
</div>
<div class="row">
<div class="text col-sm-3">Ensembl Gene ID</div>
<div class="col-sm-9">
<div v-if="response.data.ensembl_gene_id">
<a :href="'https://www.ensembl.org/id/' + response.data.ensembl_gene_id" class="uniprot-link" target="_blank">
{{response.data.ensembl_gene_id}}
<i class="glyphicon glyphicon-link"></i></a>
</div>
</div>
<div class="row">
<div class="text col-sm-3">UniProt</div>
<div class="col-sm-9">
<div v-if="response.data.uniprot_id">
<a :href="'https://www.uniprot.org/uniprot/' + response.data.uniprot_id" class="uniprot-link" target="_blank">
{{response.data.uniprot_id + ' (' + response.data.uniprot_readable_id + ')'}}
<i class="glyphicon glyphicon-link"></i></a>
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
</div>
</div>
</div>
</div>
</div>
<h4 class="round">LLPS ptms</h4>
<div class="panel panel-default">
<table class="csi table table-hover table-responsive">
<thead>
<tr class="active">
<th>Name</th>
<th>Type</th>
<th>Enzyme</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr v-for="(item, index) in response.data.llps_ptms" v-bind:key="index">
<td>{{item.name}}</td>
<td>{{item.effect_type}}</td>
<td class="text-nowrap">{{item.enzyme}}</td>
<td>{{item.effect_description}}</td>
</tr>
</tbody>
</table>
</div>
<h4 class="round">Additional Information</h4>
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<div class="text col-sm-3">Sequence</div>
<div class="col-sm-9">
<input type="text" :value="response.data.sequence">
<button class="copy-button" :name="'sequence'" :id="'sequence'" :data-clipboard-text="response.data.sequence"><i class="glyphicon glyphicon-copy"></i> </button>
</div>
</div>
</div>
</div>
</div>
</slot>
</template>
</fetch-protein>
</div>
</div>
<!-- /#wrapper -->
</template>
<script>
import fetchProtein from '@/components/DDCODE/fetchProtein.vue'
const _ = require('lodash')
require('./js/clipboard')
export default {
name: 'LandingPage',
components: {
fetchProtein
},
props: ['proteinId'],
data() {
return {
protein: this.$route.params.protein,
}
},
computed: {
},
methods: {
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style>
@import url('~@/assets/bootstrap.css');
@import url('~@/assets/datatable.css');
@import url('~@/assets/tooltip.css');
.main {
/*margin-left: 200px;*/
margin-left: 20px;
}
h3 {
margin: 40px 0 0;
}
a {
color: #42b983;
}
#wrapper {
overflow-x: hidden;
}
#sidebar-wrapper {
min-height: 100vh;
margin-left: -15rem;
-webkit-transition: margin .25s ease-out;
-moz-transition: margin .25s ease-out;
-o-transition: margin .25s ease-out;
transition: margin .25s ease-out;
position: absolute;
z-index: 1; /* Stay on top */
left: 0;
}
#sidebar-wrapper .sidebar-heading {
padding: 0.875rem 1.25rem;
font-size: 1.2rem;
}
#sidebar-wrapper .list-group {
position: -webkit-sticky;
position: sticky;
top: 0;
width: 15rem;
}
#page-content-wrapper {
min-width: 100vw;
}
#wrapper.toggled #sidebar-wrapper {
margin-left: 0;
}
@media (min-width: 768px) {
#sidebar-wrapper {
margin-left: 0;
}
#page-content-wrapper {
min-width: 0;
width: 100%;
}
#wrapper.toggled #sidebar-wrapper {
margin-left: -15rem;
}
}
.uniprot-link {
font-weight: bold;
color: #0065b9;
}
.d-flex {
display: -ms-flexbox !important;
display: flex !important;
}
.panel {
font-size: 1.2rem;
}
</style>