-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewAllCNVByGenes.blade.php
158 lines (117 loc) · 5.37 KB
/
viewAllCNVByGenes.blade.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
@php
include resource_path() . '/views/system/config.blade.php';
$organism = $info['organism'];
$cnv_data_option = $info['cnv_data_option'];
$gene_result_arr = $info['gene_result_arr'];
$cnv_result_arr = $info['cnv_result_arr'];
@endphp
<head>
<title>{{ $config_organism }}-KB</title>
<link rel="shortcut icon" href="{{ asset('css/images/Header/kbcommons_icon.ico') }}">
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
</head>
<body>
<!-- Back button -->
<a href="{{ route('system.tools.GenVarX', ['organism'=>$organism]) }}"><button> < Back </button></a>
<br />
<br />
<h3><b>Queried genes:</b></h3>
@php
if (isset($gene_result_arr) && is_array($gene_result_arr) && !empty($gene_result_arr) && !is_null($gene_result_arr)) {
echo "<div style=\"width:auto; height:auto; border:3px solid #000; max-height:1000px; overflow:scroll;\">";
echo "<table style=\"text-align:center; width:100%;\">";
// Table header
echo "<tr>";
foreach ($gene_result_arr[0] as $key => $value) {
echo "<th style=\"border:1px solid black; text-align:center; min-width:80px;\">" . $key . "</th>";
}
echo "</tr>";
// Table row
for ($i = 0; $i < count($gene_result_arr); $i++) {
// Table row
echo "<tr bgcolor=\"" . ($i % 2 ? "#FFFFFF" : "#DDFDD") . "\">";
foreach ($gene_result_arr[$i] as $key => $value) {
echo "<td style=\"border:1px solid black; min-width:80px;\">" . $value . "</td>";
}
echo "</tr>";
}
echo "</table>";
echo "</div>";
} else {
echo "<p>Queried genes not found!!!</p>";
}
@endphp
<br /><br />
<h3><b>CNV regions and accession counts in different CNs:</b></h3>
@php
if (isset($cnv_result_arr) && is_array($cnv_result_arr) && !empty($cnv_result_arr) && !is_null($cnv_result_arr)) {
echo "<div style=\"width:auto; height:auto; border:3px solid #000; max-height:1000px; overflow:scroll;\">";
echo "<table style=\"text-align:center; width:100%;\">";
// Table header
echo "<tr>";
foreach ($cnv_result_arr[0] as $key => $value) {
if ($key != "Neighbouring_Genes") {
echo "<th style=\"border:1px solid black; text-align:center; min-width:80px;\">" . $key . "</th>";
}
}
echo "</tr>";
// Table row
for ($i = 0; $i < count($cnv_result_arr); $i++) {
// Table row
echo "<tr bgcolor=\"" . ($i % 2 ? "#FFFFFF" : "#DDFDD") . "\">";
foreach ($cnv_result_arr[$i] as $key => $value) {
if ($key != "Neighbouring_Genes") {
echo "<td style=\"border:1px solid black; min-width:80px;\">" . $value . "</td>";
}
}
echo "<td>";
echo "<a href=\"" . route('system.tools.GenVarX.viewCNVAndImprovementStatus', ['organism'=>$organism, 'Chromosome'=>$cnv_result_arr[$i]->Chromosome, 'Position_Start'=>$cnv_result_arr[$i]->Start, 'Position_End'=>$cnv_result_arr[$i]->End, 'CNV_Data_Option'=>$cnv_data_option]) . "\" target=\"_blank\">";
echo "<button>View Details</button>";
echo "</a>";
echo "</td>";
echo "<td>";
echo "<a href=\"" . route('system.tools.GenVarX.viewCNVAndPhenotype', ['organism'=>$organism, 'Chromosome'=>$cnv_result_arr[$i]->Chromosome, 'Position_Start'=>$cnv_result_arr[$i]->Start, 'Position_End'=>$cnv_result_arr[$i]->End, 'CNV_Data_Option'=>$cnv_data_option]) . "\" target=\"_blank\">";
echo "<button>Connect Phenotypes</button>";
echo "</a>";
echo "</td>";
echo "</tr>";
}
echo "</table>";
echo "</div>";
} else {
echo "<p>No CNV region found!!!</p>";
}
@endphp
<br /><br />
<h3><b>Neighbouring genes in different CNV regions:</b></h3>
@php
if (isset($cnv_result_arr) && is_array($cnv_result_arr) && !empty($cnv_result_arr) && !is_null($cnv_result_arr)) {
for ($i = 0; $i < count($cnv_result_arr); $i++) {
echo "<div style=\"width:auto; height:auto; border:3px solid #000; max-height:1000px; overflow:scroll;\">";
echo "<table style=\"text-align:center; width:100%;\">";
// Table header
echo "<tr>";
foreach ($cnv_result_arr[$i]->Neighbouring_Genes[0] as $key => $value) {
echo "<th style=\"border:1px solid black; text-align:center; min-width:80px;\">" . $key . "</th>";
}
echo "</tr>";
// Table row
for ($j = 0; $j < count($cnv_result_arr[$i]->Neighbouring_Genes); $j++) {
// Table row
echo "<tr bgcolor=\"" . ($j % 2 ? "#FFFFFF" : "#DDFDD") . "\">";
foreach ($cnv_result_arr[$i]->Neighbouring_Genes[$j] as $key => $value) {
echo "<td style=\"border:1px solid black; min-width:80px;\">" . $value . "</td>";
}
echo "</tr>";
}
echo "</table>";
echo "</div>";
echo "<br /><br />";
}
} else {
echo "<p>No neighbouring gene found!!!</p>";
}
@endphp
</body>
<script type="text/javascript">
</script>