-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.php
257 lines (194 loc) · 7.42 KB
/
project.php
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
<?php
//Incluimos el archivo de configuracion
require 'src/config.php';
//Incluimos las funciones
require 'src/include.php';
?>
<html>
<head>
<!-- Head -->
<?php require 'src/theme/head.php'; ?>
<!-- Titulo de la web -->
<title>Project dashboard - TilingScan</title>
</head>
<body>
<?php require 'src/theme/menu.php'; ?>
<!-- Espacios -->
<br><br>
<!-- Div principal -->
<div class="main" align="center">
<!-- Titulo -->
<span class="h1">Project dashboard</span><br><br>
<?php
//Cogemos el proyecto
$id = $_GET["id"];
//Cogemos el directorio
$dir = _DATA.$id.'/';
//Comprobamos si existe el fichero de configuracion
if(!file_exists($dir.'config.php'))
{
//Si no existe el fichero, es porque no existe el proyecto. Mostramos un error
?>
<!-- Alerta -->
<div class="alert background-red">Error: project does not exist.</div>
<!-- Espacios -->
<br><br><br><br>
<?php
}
else
{
//Incluimos
require $dir.'config.php';
//Mostramos la web
?>
<!-- Info del proyecto -->
<?php ProyectoInfo($p_title, $id, $p_autor, $p_descripcion, $p_date, $p_caducidad, false); ?>
<!-- Botones con las aplicaciones -->
<a class="dashboard-btn background-blue" onclick="AppProjectMostrar('Chr');" title="Visualize your expression data alongside a chromosome">Visualize chromosome</a>
<a class="dashboard-btn background-red" onclick="AppProjectMostrar('Gene');" title="Visualize your expression data alongside a specific annotated gene">Visualize gene</a>
<a class="dashboard-btn background-water" onclick="AppProjectMostrar('Window');" title="Search for differentially expressed regions">Window Search</a>
<!-- Espacios -->
<br><br>
<!-- Visualizar todo el cromosoma -->
<div align="center" id="Project_Chr" style="display: none;">
<!-- Contenedor -->
<div class="form" align="center">
<!-- Titulo -->
<span class="h2">Visualize chromosome</span><br>
<!-- Descripcion -->
Visualize your expression data alongside a chromosome.
<!-- Espacios -->
<br><br>
<!-- Formulario -->
<form enctype="multipart/form-data" action="./view-chr?id=<?php echo $id; ?>" method="post">
<table border="0" width="900" algin="center" class="h4">
<tr>
<td width="300" height="70" valign="middle">Select chromosome: </td>
<td valign="middle"><?php ListaCHR($dir, '', 1); ?></td>
</tr>
<tr>
<td width="300" height="70" valign="middle">Gauss Filter (7 coef.): </td>
<td valign="middle"><input type="text" name="gauss" class="input" value="3"> times.
<span class="color-red"> (0 = No filter)</span>
</td>
</tr>
</table>
<!-- Espacios -->
<br>
<!-- Boton de enviar -->
<input type="submit" value="Visualize" class="form-btn background-green"><br>
<small>(Be patient)</small>
</form>
</div>
</div>
<!-- Mostrar un gen -->
<div align="center" id="Project_Gene" style="display: none;">
<!-- Contenedor -->
<div class="form" align="center">
<!-- Titulo -->
<span class="h2">Visualize gene</span><br>
<!-- Descripcion -->
Visualize your expression data alongside a specific annotated gene.
<!-- Espacios -->
<br><br>
<!-- Formulario -->
<form enctype="multipart/form-data" action="./view-gene?id=<?php echo $id; ?>" method="post">
<table border="0" width="900" algin="center" class="h4">
<tr>
<td width="300" height="70" valign="middle">Select chromosome: </td>
<td valign="middle">
<?php ListaCHR($dir, 'ProjectCambiarSelectGEN(this);', 2); ?>
</td>
</tr>
<tr>
<td width="300" height="70" valign="middle">Select gene: </td>
<td valign="middle"><?php ListaGEN($dir); ?></td>
</tr>
<tr>
<td width="300" height="70" valign="middle">Margin: </td>
<td valign="middle"><input type="text" name="margen" class="input " value="100"> probes.
</td>
</tr>
<tr>
<td width="300" height="70" valign="middle">Gauss Filter (7 coef.): </td>
<td valign="middle"><input type="text" name="gauss" class="input" value="3"> times.
<span class="color-red"> (0 = No filter)</span>
</td>
</tr>
</table>
<!-- Espacios -->
<br>
<!-- Boton de enviar -->
<input type="submit" value="Visualize" class="form-btn background-red"><br>
<small>(Be patient)</small>
</form>
</div>
</div>
<!-- Buscar ventanas -->
<div align="center" id="Project_Window" style="display: none;">
<!-- Contendor -->
<div class="form" align="center">
<!-- Titulo -->
<span class="h2">Window search</span><br>
<!-- Descripcion -->
Search for differentially expressed regions.
<!-- Espacios -->
<br><br>
<!-- Formulario -->
<form enctype="multipart/form-data" action="./view-window?id=<?php echo $id; ?>" method="post">
<table border="0" width="920" algin="center" class="h4">
<tr>
<td width="300" height="70" valign="middle">Select chromosome: </td>
<td valign="middle"><?php ListaCHR($dir, '', 3); ?></td>
</tr>
<tr <?php if($p_strand == false) echo 'style="display:none;"'; ?>>
<td width="300" height="70" valign="middle">Search in </td>
<td valign="middle">
<select name="CADENA" class="select">
<option value="Forward" selected>Forward</option>
<option value="Reverse">Reverse</option>
</select> strand.
</td>
</tr>
<tr>
<td width="300" height="70" valign="middle">Gauss Filter (7 coef.): </td>
<td valign="middle"><input type="text" name="gauss" class="input" value="3"> times.
<span class="color-red"> (0 = No filter)</span>
</td>
</tr>
<tr>
<td width="300" height="70" valign="middle">Window Size: </td>
<td valign="middle"><input type="text" name="VEN" class="input" value="10"> probes.
</td>
</tr>
<tr>
<td width="300" height="70" valign="middle">Margin: </td>
<td valign="middle"><input type="text" name="margen" class="input" value="50"> probes.
</td>
</tr>
<tr>
<td width="300" height="70" valign="middle">Threshold: </td>
<td valign="middle"><input type="text" name="UMBRAL" class="input" value="0.4">
</td>
</tr>
<tr>
<td width="300" height="70" valign="middle">Percentage: </td>
<td valign="middle"><input type="text" name="PORCENTAJE" class="input" value="75"> %
</td>
</tr>
</table>
<!-- Espacios -->
<br>
<!-- Boton de enviar -->
<input type="submit" value="Search" class="form-btn background-water "><br>
<small>(Be patient)</small>
</form>
</div>
</div>
<?php } ?>
</div>
<!-- Espacios -->
<br><br><br>
<?php require 'src/theme/foot.php'; ?>
</body>
</html>