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 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>RIGOR-PRS-Secure++ | Post-Quantum Polygenic Risk Scoring System</title>
|
| 7 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 8 |
+
<style>
|
| 9 |
+
/* Modern CSS Reset & Custom Properties */
|
| 10 |
+
:root {
|
| 11 |
+
--primary-color: #0a192f;
|
| 12 |
+
--secondary-color: #64ffda;
|
| 13 |
+
--accent-color: #00a8cc;
|
| 14 |
+
--warning-color: #ff6b6b;
|
| 15 |
+
--success-color: #4ecdc4;
|
| 16 |
+
--text-primary: #e6f1ff;
|
| 17 |
+
--text-secondary: #8892b0;
|
| 18 |
+
--bg-primary: #0a192f;
|
| 19 |
+
--bg-secondary: #112240;
|
| 20 |
+
--bg-tertiary: #172a45;
|
| 21 |
+
--border-color: #233554;
|
| 22 |
+
--gradient-primary: linear-gradient(135deg, #0a192f 0%, #112240 100%);
|
| 23 |
+
--gradient-accent: linear-gradient(135deg, #64ffda 0%, #00a8cc 100%);
|
| 24 |
+
--shadow-primary: 0 10px 30px -15px rgba(100, 255, 218, 0.2);
|
| 25 |
+
--shadow-heavy: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
|
| 26 |
+
--glass-bg: rgba(17, 34, 64, 0.7);
|
| 27 |
+
--glass-border: rgba(100, 255, 218, 0.1);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
* {
|
| 31 |
+
margin: 0;
|
| 32 |
+
padding: 0;
|
| 33 |
+
box-sizing: border-box;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
html {
|
| 37 |
+
scroll-behavior: smooth;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
body {
|
| 41 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
| 42 |
+
background: var(--bg-primary);
|
| 43 |
+
color: var(--text-primary);
|
| 44 |
+
line-height: 1.6;
|
| 45 |
+
overflow-x: hidden;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
/* Typography */
|
| 49 |
+
h1, h2, h3, h4 {
|
| 50 |
+
font-weight: 700;
|
| 51 |
+
line-height: 1.2;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
h1 {
|
| 55 |
+
font-size: clamp(2rem, 5vw, 3.5rem);
|
| 56 |
+
background: var(--gradient-accent);
|
| 57 |
+
-webkit-background-clip: text;
|
| 58 |
+
-webkit-text-fill-color: transparent;
|
| 59 |
+
background-clip: text;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
h2 {
|
| 63 |
+
font-size: clamp(1.5rem, 3vw, 2.5rem);
|
| 64 |
+
color: var(--secondary-color);
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
h3 {
|
| 68 |
+
font-size: clamp(1.2rem, 2vw, 1.8rem);
|
| 69 |
+
color: var(--text-primary);
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
h4 {
|
| 73 |
+
font-size: 1.1rem;
|
| 74 |
+
color: var(--text-secondary);
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
p, li {
|
| 78 |
+
color: var(--text-secondary);
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
/* Header & Navigation */
|
| 82 |
+
header {
|
| 83 |
+
position: fixed;
|
| 84 |
+
top: 0;
|
| 85 |
+
width: 100%;
|
| 86 |
+
background: var(--glass-bg);
|
| 87 |
+
backdrop-filter: blur(10px);
|
| 88 |
+
-webkit-backdrop-filter: blur(10px);
|
| 89 |
+
border-bottom: 1px solid var(--glass-border);
|
| 90 |
+
z-index: 1000;
|
| 91 |
+
padding: 1rem 0;
|
| 92 |
+
transition: all 0.3s ease;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
.header-container {
|
| 96 |
+
max-width: 1400px;
|
| 97 |
+
margin: 0 auto;
|
| 98 |
+
padding: 0 2rem;
|
| 99 |
+
display: flex;
|
| 100 |
+
justify-content: space-between;
|
| 101 |
+
align-items: center;
|
| 102 |
+
flex-wrap: wrap;
|
| 103 |
+
gap: 1rem;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
.logo-section {
|
| 107 |
+
display: flex;
|
| 108 |
+
align-items: center;
|
| 109 |
+
gap: 1rem;
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
.logo {
|
| 113 |
+
width: 40px;
|
| 114 |
+
height: 40px;
|
| 115 |
+
background: var(--gradient-accent);
|
| 116 |
+
border-radius: 8px;
|
| 117 |
+
display: flex;
|
| 118 |
+
align-items: center;
|
| 119 |
+
justify-content: center;
|
| 120 |
+
font-weight: bold;
|
| 121 |
+
color: var(--primary-color);
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
.brand-text {
|
| 125 |
+
display: flex;
|
| 126 |
+
flex-direction: column;
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
.brand-name {
|
| 130 |
+
font-size: 1.2rem;
|
| 131 |
+
font-weight: 700;
|
| 132 |
+
color: var(--secondary-color);
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
.brand-tagline {
|
| 136 |
+
font-size: 0.8rem;
|
| 137 |
+
color: var(--text-secondary);
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
.anycoder-link {
|
| 141 |
+
background: var(--gradient-accent);
|
| 142 |
+
padding: 0.5rem 1rem;
|
| 143 |
+
border-radius: 20px;
|
| 144 |
+
text-decoration: none;
|
| 145 |
+
color: var(--primary-color);
|
| 146 |
+
font-weight: 600;
|
| 147 |
+
font-size: 0.9rem;
|
| 148 |
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 149 |
+
box-shadow: var(--shadow-primary);
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
.anycoder-link:hover {
|
| 153 |
+
transform: translateY(-2px);
|
| 154 |
+
box-shadow: 0 15px 35px -15px rgba(100, 255, 218, 0.3);
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
/* Main Container */
|
| 158 |
+
.container {
|
| 159 |
+
max-width: 1400px;
|
| 160 |
+
margin: 0 auto;
|
| 161 |
+
padding: 6rem 2rem 2rem;
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
/* Hero Section */
|
| 165 |
+
.hero {
|
| 166 |
+
text-align: center;
|
| 167 |
+
padding: 4rem 0;
|
| 168 |
+
position: relative;
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
.hero::before {
|
| 172 |
+
content: '';
|
| 173 |
+
position: absolute;
|
| 174 |
+
top: 0;
|
| 175 |
+
left: 50%;
|
| 176 |
+
transform: translateX(-50%);
|
| 177 |
+
width: 200px;
|
| 178 |
+
height: 200px;
|
| 179 |
+
background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
|
| 180 |
+
z-index: -1;
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
.hero-subtitle {
|
| 184 |
+
font-size: 1.2rem;
|
| 185 |
+
margin-top: 1rem;
|
| 186 |
+
max-width: 800px;
|
| 187 |
+
margin-left: auto;
|
| 188 |
+
margin-right: auto;
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
/* Status Bar */
|
| 192 |
+
.status-bar {
|
| 193 |
+
background: var(--bg-secondary);
|
| 194 |
+
border: 1px solid var(--border-color);
|
| 195 |
+
border-radius: 12px;
|
| 196 |
+
padding: 1rem;
|
| 197 |
+
margin: 2rem 0;
|
| 198 |
+
display: flex;
|
| 199 |
+
justify-content: space-between;
|
| 200 |
+
align-items: center;
|
| 201 |
+
flex-wrap: wrap;
|
| 202 |
+
gap: 1rem;
|
| 203 |
+
box-shadow: var(--shadow-primary);
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
+
.status-item {
|
| 207 |
+
display: flex;
|
| 208 |
+
align-items: center;
|
| 209 |
+
gap: 0.5rem;
|
| 210 |
+
}
|
| 211 |
+
|
| 212 |
+
.status-indicator {
|
| 213 |
+
width: 12px;
|
| 214 |
+
height: 12px;
|
| 215 |
+
border-radius: 50%;
|
| 216 |
+
background: var(--warning-color);
|
| 217 |
+
animation: pulse 2s infinite;
|
| 218 |
+
}
|
| 219 |
+
|
| 220 |
+
.status-indicator.active {
|
| 221 |
+
background: var(--success-color);
|
| 222 |
+
}
|
| 223 |
+
|
| 224 |
+
@keyframes pulse {
|
| 225 |
+
0% { opacity: 1; }
|
| 226 |
+
50% { opacity: 0.5; }
|
| 227 |
+
100% { opacity: 1; }
|
| 228 |
+
}
|
| 229 |
+
|
| 230 |
+
/* Section Cards */
|
| 231 |
+
.section {
|
| 232 |
+
background: var(--glass-bg);
|
| 233 |
+
backdrop-filter: blur(10px);
|
| 234 |
+
-webkit-backdrop-filter: blur(10px);
|
| 235 |
+
border: 1px solid var(--glass-border);
|
| 236 |
+
border-radius: 16px;
|
| 237 |
+
padding: 2rem;
|
| 238 |
+
margin: 2rem 0;
|
| 239 |
+
box-shadow: var(--shadow-heavy);
|
| 240 |
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 241 |
+
}
|
| 242 |
+
|
| 243 |
+
.section:hover {
|
| 244 |
+
transform: translateY(-5px);
|
| 245 |
+
box-shadow: 0 25px 60px -20px rgba(100, 255, 218, 0.15);
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
.section-header {
|
| 249 |
+
display: flex;
|
| 250 |
+
align-items: center;
|
| 251 |
+
gap: 1rem;
|
| 252 |
+
margin-bottom: 1.5rem;
|
| 253 |
+
padding-bottom: 1rem;
|
| 254 |
+
border-bottom: 1px solid var(--border-color);
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
.section-icon {
|
| 258 |
+
width: 50px;
|
| 259 |
+
height: 50px;
|
| 260 |
+
background: var(--gradient-accent);
|
| 261 |
+
border-radius: 12px;
|
| 262 |
+
display: flex;
|
| 263 |
+
align-items: center;
|
| 264 |
+
justify-content: center;
|
| 265 |
+
font-size: 1.5rem;
|
| 266 |
+
color: var(--primary-color);
|
| 267 |
+
}
|
| 268 |
+
|
| 269 |
+
/* File Upload Area */
|
| 270 |
+
.upload-zone {
|
| 271 |
+
border: 2px dashed var(--border-color);
|
| 272 |
+
border-radius: 12px;
|
| 273 |
+
padding: 3rem;
|
| 274 |
+
text-align: center;
|
| 275 |
+
transition: all 0.3s ease;
|
| 276 |
+
cursor: pointer;
|
| 277 |
+
background: var(--bg-tertiary);
|
| 278 |
+
}
|
| 279 |
+
|
| 280 |
+
.upload-zone:hover, .upload-zone.dragover {
|
| 281 |
+
border-color: var(--secondary-color);
|
| 282 |
+
background: rgba(100, 255, 218, 0.05);
|
| 283 |
+
transform: scale(1.01);
|
| 284 |
+
}
|
| 285 |
+
|
| 286 |
+
.upload-icon {
|
| 287 |
+
font-size: 3rem;
|
| 288 |
+
color: var(--secondary-color);
|
| 289 |
+
margin-bottom: 1rem;
|
| 290 |
+
}
|
| 291 |
+
|
| 292 |
+
.file-input {
|
| 293 |
+
display: none;
|
| 294 |
+
}
|
| 295 |
+
|
| 296 |
+
.file-list {
|
| 297 |
+
margin-top: 1rem;
|
| 298 |
+
text-align: left;
|
| 299 |
+
}
|
| 300 |
+
|
| 301 |
+
.file-item {
|
| 302 |
+
background: var(--bg-secondary);
|
| 303 |
+
padding: 0.75rem;
|
| 304 |
+
border-radius: 8px;
|
| 305 |
+
margin: 0.5rem 0;
|
| 306 |
+
display: flex;
|
| 307 |
+
justify-content: space-between;
|
| 308 |
+
align-items: center;
|
| 309 |
+
border-left: 4px solid var(--secondary-color);
|
| 310 |
+
}
|
| 311 |
+
|
| 312 |
+
/* Pipeline Visualization */
|
| 313 |
+
.pipeline {
|
| 314 |
+
display: grid;
|
| 315 |
+
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
| 316 |
+
gap: 1.5rem;
|
| 317 |
+
margin: 2rem 0;
|
| 318 |
+
}
|
| 319 |
+
|
| 320 |
+
.pipeline-step {
|
| 321 |
+
background: var(--bg-secondary);
|
| 322 |
+
border: 1px solid var(--border-color);
|
| 323 |
+
border-radius: 12px;
|
| 324 |
+
padding: 1.5rem;
|
| 325 |
+
position: relative;
|
| 326 |
+
transition: all 0.3s ease;
|
| 327 |
+
opacity: 0.5;
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
+
.pipeline-step.active {
|
| 331 |
+
opacity: 1;
|
| 332 |
+
border-color: var(--secondary-color);
|
| 333 |
+
box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
|
| 334 |
+
}
|
| 335 |
+
|
| 336 |
+
.pipeline-step.completed {
|
| 337 |
+
opacity: 0.8;
|
| 338 |
+
border-color: var(--success-color);
|
| 339 |
+
}
|
| 340 |
+
|
| 341 |
+
.step-number {
|
| 342 |
+
position: absolute;
|
| 343 |
+
top: -10px;
|
| 344 |
+
left: 1rem;
|
| 345 |
+
background: var(--gradient-accent);
|
| 346 |
+
color: var(--primary-color);
|
| 347 |
+
width: 30px;
|
| 348 |
+
height: 30px;
|
| 349 |
+
border-radius: 50%;
|
| 350 |
+
display: flex;
|
| 351 |
+
align-items: center;
|
| 352 |
+
justify-content: center;
|
| 353 |
+
font-weight: bold;
|
| 354 |
+
}
|
| 355 |
+
|
| 356 |
+
.step-icon {
|
| 357 |
+
font-size: 2rem;
|
| 358 |
+
color: var(--secondary-color);
|
| 359 |
+
margin: 1rem 0;
|
| 360 |
+
}
|
| 361 |
+
|
| 362 |
+
/* Cryptographic Display */
|
| 363 |
+
.crypto-display {
|
| 364 |
+
background: var(--bg-tertiary);
|
| 365 |
+
border-radius: 8px;
|
| 366 |
+
padding: 1rem;
|
| 367 |
+
font-family: 'Fira Code', 'Courier New', monospace;
|
| 368 |
+
font-size: 0.8rem;
|
| 369 |
+
overflow-x: auto;
|
| 370 |
+
border: 1px solid var(--border-color);
|
| 371 |
+
margin: 1rem 0;
|
| 372 |
+
}
|
| 373 |
+
|
| 374 |
+
.key-visual {
|
| 375 |
+
display: flex;
|
| 376 |
+
gap: 1rem;
|
| 377 |
+
align-items: center;
|
| 378 |
+
margin: 1rem 0;
|
| 379 |
+
flex-wrap: wrap;
|
| 380 |
+
}
|
| 381 |
+
|
| 382 |
+
.key-block {
|
| 383 |
+
background: var(--gradient-accent);
|
| 384 |
+
padding: 0.5rem 1rem;
|
| 385 |
+
border-radius: 8px;
|
| 386 |
+
color: var(--primary-color);
|
| 387 |
+
font-weight: 600;
|
| 388 |
+
animation: glow 2s infinite alternate;
|
| 389 |
+
}
|
| 390 |
+
|
| 391 |
+
@keyframes glow {
|
| 392 |
+
from { box-shadow: 0 0 5px rgba(100, 255, 218, 0.5); }
|
| 393 |
+
to { box-shadow: 0 0 15px rgba(100, 255, 218, 0.8); }
|
| 394 |
+
}
|
| 395 |
+
|
| 396 |
+
/* Results Display */
|
| 397 |
+
.results-grid {
|
| 398 |
+
display: grid;
|
| 399 |
+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
| 400 |
+
gap: 1.5rem;
|
| 401 |
+
margin: 2rem 0;
|
| 402 |
+
}
|
| 403 |
+
|
| 404 |
+
.result-card {
|
| 405 |
+
background: var(--bg-secondary);
|
| 406 |
+
border-radius: 12px;
|
| 407 |
+
padding: 1.5rem;
|
| 408 |
+
border-left: 4px solid var(--accent-color);
|
| 409 |
+
transition: transform 0.3s ease;
|
| 410 |
+
}
|
| 411 |
+
|
| 412 |
+
.result-card:hover {
|
| 413 |
+
transform: translateY(-3px);
|
| 414 |
+
}
|
| 415 |
+
|
| 416 |
+
.result-value {
|
| 417 |
+
font-size: 2rem;
|
| 418 |
+
font-weight: 700;
|
| 419 |
+
color: var(--secondary-color);
|
| 420 |
+
margin: 0.5rem 0;
|
| 421 |
+
}
|
| 422 |
+
|
| 423 |
+
.result-label {
|
| 424 |
+
color: var(--text-secondary);
|
| 425 |
+
font-size: 0.9rem;
|
| 426 |
+
}
|
| 427 |
+
|
| 428 |
+
/* Data Table */
|
| 429 |
+
.data-table {
|
| 430 |
+
width: 100%;
|
| 431 |
+
border-collapse: collapse;
|
| 432 |
+
margin: 1rem 0;
|
| 433 |
+
border-radius: 8px;
|
| 434 |
+
overflow: hidden;
|
| 435 |
+
}
|
| 436 |
+
|
| 437 |
+
.data-table th {
|
| 438 |
+
background: var(--bg-tertiary);
|
| 439 |
+
padding: 1rem;
|
| 440 |
+
text-align: left;
|
| 441 |
+
font-weight: 600;
|
| 442 |
+
color: var(--secondary-color);
|
| 443 |
+
border-bottom: 1px solid var(--border-color);
|
| 444 |
+
}
|
| 445 |
+
|
| 446 |
+
.data-table td {
|
| 447 |
+
padding: 0.75rem 1rem;
|
| 448 |
+
border-bottom: 1px solid var(--border-color);
|
| 449 |
+
}
|
| 450 |
+
|
| 451 |
+
.data-table tr:hover {
|
| 452 |
+
background: rgba(100, 255, 218, 0.05);
|
| 453 |
+
}
|
| 454 |
+
|
| 455 |
+
/* Report Section */
|
| 456 |
+
.report-preview {
|
| 457 |
+
background: white;
|
| 458 |
+
color: var(--primary-color);
|
| 459 |
+
border-radius: 12px;
|
| 460 |
+
padding: 2rem;
|
| 461 |
+
margin: 2rem 0;
|
| 462 |
+
box-shadow: var(--shadow-heavy);
|
| 463 |
+
}
|
| 464 |
+
|
| 465 |
+
.report-header {
|
| 466 |
+
text-align: center;
|
| 467 |
+
border-bottom: 2px solid var(--border-color);
|
| 468 |
+
padding-bottom: 1rem;
|
| 469 |
+
margin-bottom: 2rem;
|
| 470 |
+
}
|
| 471 |
+
|
| 472 |
+
.report-content {
|
| 473 |
+
line-height: 1.8;
|
| 474 |
+
}
|
| 475 |
+
|
| 476 |
+
.report-section {
|
| 477 |
+
margin: 1.5rem 0;
|
| 478 |
+
}
|
| 479 |
+
|
| 480 |
+
/* Buttons */
|
| 481 |
+
.btn {
|
| 482 |
+
background: var(--gradient-accent);
|
| 483 |
+
color: var(--primary-color);
|
| 484 |
+
border: none;
|
| 485 |
+
padding: 0.75rem 1.5rem;
|
| 486 |
+
border-radius: 8px;
|
| 487 |
+
font-weight: 600;
|
| 488 |
+
cursor: pointer;
|
| 489 |
+
transition: all 0.3s ease;
|
| 490 |
+
display: inline-flex;
|
| 491 |
+
align-items: center;
|
| 492 |
+
gap: 0.5rem;
|
| 493 |
+
text-decoration: none;
|
| 494 |
+
font-size: 1rem;
|
| 495 |
+
}
|
| 496 |
+
|
| 497 |
+
.btn:hover {
|
| 498 |
+
transform: translateY(-2px);
|
| 499 |
+
box-shadow: 0 10px 25px -10px rgba(100, 255, 218, 0.4);
|
| 500 |
+
}
|
| 501 |
+
|
| 502 |
+
.btn:disabled {
|
| 503 |
+
opacity: 0.5;
|
| 504 |
+
cursor: not-allowed;
|
| 505 |
+
transform: none;
|
| 506 |
+
}
|
| 507 |
+
|
| 508 |
+
.btn-secondary {
|
| 509 |
+
background: var(--bg-tertiary);
|
| 510 |
+
color: var(--secondary-color);
|
| 511 |
+
border: 1px solid var(--border-color);
|
| 512 |
+
}
|
| 513 |
+
|
| 514 |
+
/* Accessibility Controls */
|
| 515 |
+
.accessibility-controls {
|
| 516 |
+
position: fixed;
|
| 517 |
+
bottom: 2rem;
|
| 518 |
+
right: 2rem;
|
| 519 |
+
background: var(--glass-bg);
|
| 520 |
+
backdrop-filter: blur(10px);
|
| 521 |
+
border: 1px solid var(--glass-border);
|
| 522 |
+
border-radius: 12px;
|
| 523 |
+
padding: 1rem;
|
| 524 |
+
display: flex;
|
| 525 |
+
flex-direction: column;
|
| 526 |
+
gap: 0.5rem;
|
| 527 |
+
z-index: 999;
|
| 528 |
+
}
|
| 529 |
+
|
| 530 |
+
.accessibility-btn {
|
| 531 |
+
width: 40px;
|
| 532 |
+
height: 40px;
|
| 533 |
+
border: none;
|
| 534 |
+
background: var(--bg-secondary);
|
| 535 |
+
color: var(--text-primary);
|
| 536 |
+
border-radius: 8px;
|
| 537 |
+
cursor: pointer;
|
| 538 |
+
display: flex;
|
| 539 |
+
align-items: center;
|
| 540 |
+
justify-content: center;
|
| 541 |
+
transition: all 0.3s ease;
|
| 542 |
+
}
|
| 543 |
+
|
| 544 |
+
.accessibility-btn:hover, .accessibility-btn.active {
|
| 545 |
+
background: var(--secondary-color);
|
| 546 |
+
color: var(--primary-color);
|
| 547 |
+
}
|
| 548 |
+
|
| 549 |
+
/* High Contrast Mode */
|
| 550 |
+
body.high-contrast {
|
| 551 |
+
--text-primary: #ffffff;
|
| 552 |
+
--text-secondary: #ffffff;
|
| 553 |
+
--bg-primary: #000000;
|
| 554 |
+
--bg-secondary: #1a1a1a;
|
| 555 |
+
--bg-tertiary: #2a2a2a;
|
| 556 |
+
--border-color: #ffffff;
|
| 557 |
+
--secondary-color: #ffff00;
|
| 558 |
+
--accent-color: #00ffff;
|
| 559 |
+
}
|
| 560 |
+
|
| 561 |
+
/* Focus Management */
|
| 562 |
+
*:focus {
|
| 563 |
+
outline: 2px solid var(--secondary-color);
|
| 564 |
+
outline-offset: 2px;
|
| 565 |
+
}
|
| 566 |
+
|
| 567 |
+
/* Loading Spinner */
|
| 568 |
+
.spinner {
|
| 569 |
+
width: 40px;
|
| 570 |
+
height: 40px;
|
| 571 |
+
border: 4px solid var(--border-color);
|
| 572 |
+
border-top: 4px solid var(--secondary-color);
|
| 573 |
+
border-radius: 50%;
|
| 574 |
+
animation: spin 1s linear infinite;
|
| 575 |
+
margin: 2rem auto;
|
| 576 |
+
}
|
| 577 |
+
|
| 578 |
+
@keyframes spin {
|
| 579 |
+
0% { transform: rotate(0deg); }
|
| 580 |
+
100% { transform: rotate(360deg); }
|
| 581 |
+
}
|
| 582 |
+
|
| 583 |
+
/* Responsive Design */
|
| 584 |
+
@media (max-width: 768px) {
|
| 585 |
+
.header-container {
|
| 586 |
+
justify-content: center;
|
| 587 |
+
text-align: center;
|
| 588 |
+
}
|
| 589 |
+
|
| 590 |
+
.pipeline {
|
| 591 |
+
grid-template-columns: 1fr;
|
| 592 |
+
}
|
| 593 |
+
|
| 594 |
+
.results-grid {
|
| 595 |
+
grid-template-columns: 1fr;
|
| 596 |
+
}
|
| 597 |
+
|
| 598 |
+
.accessibility-controls {
|
| 599 |
+
bottom: 1rem;
|
| 600 |
+
right: 1rem;
|
| 601 |
+
}
|
| 602 |
+
|
| 603 |
+
.section {
|
| 604 |
+
padding: 1.5rem;
|
| 605 |
+
}
|
| 606 |
+
}
|
| 607 |
+
|
| 608 |
+
/* Animations */
|
| 609 |
+
.fade-in {
|
| 610 |
+
animation: fadeIn 0.5s ease-in;
|
| 611 |
+
}
|
| 612 |
+
|
| 613 |
+
@keyframes fadeIn {
|
| 614 |
+
from { opacity: 0; transform: translateY(20px); }
|
| 615 |
+
to { opacity: 1; transform: translateY(0); }
|
| 616 |
+
}
|
| 617 |
+
|
| 618 |
+
/* Scrollbar Styling */
|
| 619 |
+
::-webkit-scrollbar {
|
| 620 |
+
width: 8px;
|
| 621 |
+
height: 8px;
|
| 622 |
+
}
|
| 623 |
+
|
| 624 |
+
::-webkit-scrollbar-track {
|
| 625 |
+
background: var(--bg-primary);
|
| 626 |
+
}
|
| 627 |
+
|
| 628 |
+
::-webkit-scrollbar-thumb {
|
| 629 |
+
background: var(--secondary-color);
|
| 630 |
+
border-radius: 4px;
|
| 631 |
+
}
|
| 632 |
+
|
| 633 |
+
::-webkit-scrollbar-thumb:hover {
|
| 634 |
+
background: var(--accent-color);
|
| 635 |
+
}
|
| 636 |
+
|
| 637 |
+
/* Print Styles */
|
| 638 |
+
@media print {
|
| 639 |
+
header, .accessibility-controls, .btn {
|
| 640 |
+
display: none;
|
| 641 |
+
}
|
| 642 |
+
|
| 643 |
+
body {
|
| 644 |
+
background: white;
|
| 645 |
+
color: black;
|
| 646 |
+
}
|
| 647 |
+
|
| 648 |
+
.section {
|
| 649 |
+
background: white;
|
| 650 |
+
border: 1px solid #ccc;
|
| 651 |
+
page-break-inside: avoid;
|
| 652 |
+
}
|
| 653 |
+
|
| 654 |
+
.report-preview {
|
| 655 |
+
box-shadow: none;
|
| 656 |
+
}
|
| 657 |
+
}
|
| 658 |
+
</style>
|
| 659 |
+
</head>
|
| 660 |
+
<body>
|
| 661 |
+
<!-- Header with anycoder link -->
|
| 662 |
+
<header role="banner">
|
| 663 |
+
<div class="header-container">
|
| 664 |
+
<div class="logo-section">
|
| 665 |
+
<div class="logo" aria-hidden="true">RIGOR</div>
|
| 666 |
+
<div class="brand-text">
|
| 667 |
+
<div class="brand-name">RIGOR-PRS-Secure++</div>
|
| 668 |
+
<div class="brand-tagline">Post-Quantum Polygenic Risk Scoring System</div>
|
| 669 |
+
</div>
|
| 670 |
+
</div>
|
| 671 |
+
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="anycoder-link" aria-label="Built with anycoder - Visit Hugging Face Space">
|
| 672 |
+
<i class="fas fa-rocket" aria-hidden="true"></i>
|
| 673 |
+
Built with anycoder
|
| 674 |
+
</a>
|
| 675 |
+
</div>
|
| 676 |
+
</header>
|
| 677 |
+
|
| 678 |
+
<!-- Main Container -->
|
| 679 |
+
<main class="container" role="main">
|
| 680 |
+
<!-- Hero Section -->
|
| 681 |
+
<section class="hero" aria-labelledby="main-title">
|
| 682 |
+
<h1 id="main-title">Post-Quantum Secure Polygenic Risk Scoring</h1>
|
| 683 |
+
<p class="hero-subtitle">A comprehensive system for secure, auditable, and accessible neurogenetic evidence reporting compliant with WCAG 2.1 AA and Section 508 standards.</p>
|
| 684 |
+
</section>
|
| 685 |
+
|
| 686 |
+
<!-- Status Bar -->
|
| 687 |
+
<div class="status-bar" role="status" aria-live="polite">
|
| 688 |
+
<div class="status-item">
|
| 689 |
+
<div class="status-indicator" id="system-status"></div>
|
| 690 |
+
<span>System Status: <strong id="status-text">Initializing</strong></span>
|
| 691 |
+
</div>
|
| 692 |
+
<div class="status-item">
|
| 693 |
+
<i class="fas fa-shield-alt" aria-hidden="true"></i>
|
| 694 |
+
<span>PQC Status: <strong id="pqc-status">ML-KEM-1024 Active</strong></span>
|
| 695 |
+
</div>
|
| 696 |
+
<div class="status-item">
|
| 697 |
+
<i class="fas fa-user-check" aria-hidden="true"></i>
|
| 698 |
+
<span>User: <strong id="user-id">Anonymous Session</strong></span>
|
| 699 |
+
</div>
|
| 700 |
+
</div>
|
| 701 |
+
|
| 702 |
+
<!-- File Upload Section -->
|
| 703 |
+
<section class="section fade-in" aria-labelledby="upload-title">
|
| 704 |
+
<div class="section-header">
|
| 705 |
+
<div class="section-icon" aria-hidden="true">
|
| 706 |
+
<i class="fas fa-upload"></i>
|
| 707 |
+
</div>
|
| 708 |
+
<div>
|
| 709 |
+
<h2 id="upload-title">1. Encrypted Genotype Ingestion</h2>
|
| 710 |
+
<p>Upload VCF or PLINK files with post-quantum cryptographic protection</p>
|
| 711 |
+
</div>
|
| 712 |
+
</div>
|
| 713 |
+
|
| 714 |
+
<div class="upload-zone" id="upload-zone" role="button" tabindex="0" aria-label="Drag and drop files here or click to browse">
|
| 715 |
+
<div class="upload-icon" aria-hidden="true">
|
| 716 |
+
<i class="fas fa-dna"></i>
|
| 717 |
+
</div>
|
| 718 |
+
<h3>Drop Genotype Files Here</h3>
|
| 719 |
+
<p>Supports VCF, PLINK binary (.bed/.bim/.fam)</p>
|
| 720 |
+
<p><small>Files are encrypted client-side with AES-256-GCM and Kyber-768 key encapsulation</small></p>
|
| 721 |
+
<button class="btn" onclick="document.getElementById('file-input').click()">
|
| 722 |
+
<i class="fas fa-folder-open"></i> Browse Files
|
| 723 |
+
</button>
|
| 724 |
+
<input type="file" id="file-input" class="file-input" multiple accept=".vcf,.vcf.gz,.bed,.bim,.fam" aria-label="File input for genotype data">
|
| 725 |
+
</div>
|
| 726 |
+
|
| 727 |
+
<div class="file-list" id="file-list" aria-live="polite"></div>
|
| 728 |
+
|
| 729 |
+
<div class="crypto-display" id="crypto-display" aria-label="Cryptographic key visualization" style="display: none;">
|
| 730 |
+
<h4>Post-Quantum Key Generation</h4>
|
| 731 |
+
<div class="key-visual">
|
| 732 |
+
<div class="key-block">ML-KEM-1024</div>
|
| 733 |
+
<i class="fas fa-arrow-right" aria-hidden="true"></i>
|
| 734 |
+
<div class="key-block">Kyber Public Key</div>
|
| 735 |
+
<i class="fas fa-arrow-right" aria-hidden="true"></i>
|
| 736 |
+
<div class="key-block">AES-256-GCM</div>
|
| 737 |
+
</div>
|
| 738 |
+
<pre id="key-hash" aria-label="Cryptographic hash">SHA3-256: 0x7f83b1657ff1fc53b92dc18148a1d65dfc2d4b1fa3d677284addd200126d9069</pre>
|
| 739 |
+
</div>
|
| 740 |
+
</section>
|
| 741 |
+
|
| 742 |
+
<!-- Pipeline Visualization -->
|
| 743 |
+
<section class="section fade-in" aria-labelledby="pipeline-title">
|
| 744 |
+
<div class="section-header">
|
| 745 |
+
<div class="section-icon" aria-hidden="true">
|
| 746 |
+
<i class="fas fa-project-diagram"></i>
|
| 747 |
+
</div>
|
| 748 |
+
<div>
|
| 749 |
+
<h2 id="pipeline-title">2. Secure Processing Pipeline</h2>
|
| 750 |
+
<p>Real-time visualization of genomic data processing with audit logging</p>
|
| 751 |
+
</div>
|
| 752 |
+
</div>
|
| 753 |
+
|
| 754 |
+
<div class="pipeline" id="pipeline" role="list" aria-label="Processing pipeline steps">
|
| 755 |
+
<div class="pipeline-step" id="step-1" role="listitem">
|
| 756 |
+
<div class="step-number">1</div>
|
| 757 |
+
<div class="step-icon" aria-hidden="true"><i class="fas fa-lock"></i></div>
|
| 758 |
+
<h3>Data Ingestion</h3>
|
| 759 |
+
<p>Post-quantum encrypted upload with manifest creation</p>
|
| 760 |
+
<div class="crypto-display">
|
| 761 |
+
<small>Manifest signed with ML-DSA-87 (Dilithium)</small>
|
| 762 |
+
</div>
|
| 763 |
+
</div>
|
| 764 |
+
|
| 765 |
+
<div class="pipeline-step" id="step-2" role="listitem">
|
| 766 |
+
<div class="step-number">2</div>
|
| 767 |
+
<div class="step-icon" aria-hidden="true"><i class="fas fa-microscope"></i></div>
|
| 768 |
+
<h3>QC & Harmonization</h3>
|
| 769 |
+
<p>GRCh38 alignment and variant filtering</p>
|
| 770 |
+
<div class="crypto-display">
|
| 771 |
+
<small>Removed: 127 ambiguous variants</small>
|
| 772 |
+
</div>
|
| 773 |
+
</div>
|
| 774 |
+
|
| 775 |
+
<div class="pipeline-step" id="step-3" role="listitem">
|
| 776 |
+
<div class="step-number">3</div>
|
| 777 |
+
<div class="step-icon" aria-hidden="true"><i class="fas fa-calculator"></i></div>
|
| 778 |
+
<h3>PRS Computation</h3>
|
| 779 |
+
<p>Additive model: Σ(β_i · g_i)</p>
|
| 780 |
+
<div class="crypto-display">
|
| 781 |
+
<small>LD-clumping: R²=0.1, 250kb window</small>
|
| 782 |
+
</div>
|
| 783 |
+
</div>
|
| 784 |
+
|
| 785 |
+
<div class="pipeline-step" id="step-4" role="listitem">
|
| 786 |
+
<div class="step-number">4</div>
|
| 787 |
+
<div class="step-icon" aria-hidden="true"><i class="fas fa-link"></i></div>
|
| 788 |
+
<h3>Evidence Linking</h3>
|
| 789 |
+
<p>Semantic linking to peer-reviewed literature</p>
|
| 790 |
+
<div class="crypto-display">
|
| 791 |
+
<small>12 SNPs linked to PMID references</small>
|
| 792 |
+
</div>
|
| 793 |
+
</div>
|
| 794 |
+
|
| 795 |
+
<div class="pipeline-step" id="step-5" role="listitem">
|
| 796 |
+
<div class="step-number">5</div>
|
| 797 |
+
<div class="step-icon" aria-hidden="true"><i class="fas fa-file-alt"></i></div>
|
| 798 |
+
<h3>Report Generation</h3>
|
| 799 |
+
<p>WCAG 2.1 AA compliant output</p>
|
| 800 |
+
<div class="crypto-display">
|
| 801 |
+
<small>PDF/HTML with functional impairment mapping</small>
|
| 802 |
+
</div>
|
| 803 |
+
</div>
|
| 804 |
+
</div>
|
| 805 |
+
|
| 806 |
+
<button class="btn" id="process-btn" onclick="startProcessing()" disabled>
|
| 807 |
+
<i class="fas fa-play"></i> Start Processing Pipeline
|
| 808 |
+
</button>
|
| 809 |
+
</section>
|
| 810 |
+
|
| 811 |
+
<!-- Results Section -->
|
| 812 |
+
<section class="section fade-in" id="results-section" aria-labelledby="results-title" style="display: none;">
|
| 813 |
+
<div class="section-header">
|
| 814 |
+
<div class="section-icon" aria-hidden="true">
|
| 815 |
+
<i class="fas fa-chart-line"></i>
|
| 816 |
+
</div>
|
| 817 |
+
<div>
|
| 818 |
+
<h2 id="results-title">3. Polygenic Risk Score Results</h2>
|
| 819 |
+
<p>Normalized scores and percentile rankings</p>
|
| 820 |
+
</div>
|
| 821 |
+
</div>
|
| 822 |
+
|
| 823 |
+
<div class="results-grid">
|
| 824 |
+
<div class="result-card">
|
| 825 |
+
<div class="result-label">Raw PRS Score</div>
|
| 826 |
+
<div class="result-value" id="raw-score">0.00</div>
|
| 827 |
+
<small>Sum of weighted risk alleles</small>
|
| 828 |
+
</div>
|
| 829 |
+
|
| 830 |
+
<div class="result-card">
|
| 831 |
+
<div class="result-label">Normalized Z-Score</div>
|
| 832 |
+
<div class="result-value" id="z-score">0.00</div>
|
| 833 |
+
<small>Standard deviations from population mean</small>
|
| 834 |
+
</div>
|
| 835 |
+
|
| 836 |
+
<div class="result-card">
|
| 837 |
+
<div class="result-label">Percentile Rank</div>
|
| 838 |
+
<div class="result-value" id="percentile">0th</div>
|
| 839 |
+
<small>Relative to reference population</small>
|
| 840 |
+
</div>
|
| 841 |
+
|
| 842 |
+
<div class="result-card">
|
| 843 |
+
<div class="result-label">Risk Category</div>
|
| 844 |
+
<div class="result-value" id="risk-category">Normal</div>
|
| 845 |
+
<small>Functional impairment mapping</small>
|
| 846 |
+
</div>
|
| 847 |
+
</div>
|
| 848 |
+
|
| 849 |
+
<!-- Detailed Variant Table -->
|
| 850 |
+
<h3>Per-Variant Contributions</h3>
|
| 851 |
+
<div class="table-container" style="overflow-x: auto;">
|
| 852 |
+
<table class="data-table" id="variant-table" aria-label="Per-variant contribution table">
|
| 853 |
+
<thead>
|
| 854 |
+
<tr>
|
| 855 |
+
<th scope="col">SNP ID</th>
|
| 856 |
+
<th scope="col">Chromosome</th>
|
| 857 |
+
<th scope="col">Position</th>
|
| 858 |
+
<th scope="col">Effect Allele</th>
|
| 859 |
+
<th scope="col">Effect Size (β)</th>
|
| 860 |
+
<th scope="col">Dosage</th>
|
| 861 |
+
<th scope="col">Contribution</th>
|
| 862 |
+
<th scope="col">Evidence Link</th>
|
| 863 |
+
</tr>
|
| 864 |
+
</thead>
|
| 865 |
+
<tbody id="variant-table-body">
|
| 866 |
+
<!-- Populated by JavaScript -->
|
| 867 |
+
</tbody>
|
| 868 |
+
</table>
|
| 869 |
+
</div>
|
| 870 |
+
</section>
|
| 871 |
+
|
| 872 |
+
<!-- Audit Trail -->
|
| 873 |
+
<section class="section fade-in" id="audit-section" aria-labelledby="audit-title" style="display: none;">
|
| 874 |
+
<div class="section-header">
|
| 875 |
+
<div class="section-icon" aria-hidden="true">
|
| 876 |
+
<i class="fas fa-fingerprint"></i>
|
| 877 |
+
</div>
|
| 878 |
+
<div>
|
| 879 |
+
<h2 id="audit-title">4. Immutable Audit Trail</h2>
|
| 880 |
+
<p>Cryptographically signed chain-of-custody ledger</p>
|
| 881 |
+
</div>
|
| 882 |
+
</div>
|
| 883 |
+
|
| 884 |
+
<div class="crypto-display" id="audit-log" aria-label="Audit trail log">
|
| 885 |
+
<div id="audit-entries">
|
| 886 |
+
<!-- Populated by JavaScript -->
|
| 887 |
+
</div>
|
| 888 |
+
</div>
|
| 889 |
+
|
| 890 |
+
<button class="btn" onclick="downloadManifest()">
|
| 891 |
+
<i class="fas fa-download"></i> Download Audit Manifest
|
| 892 |
+
</button>
|
| 893 |
+
</section>
|
| 894 |
+
|
| 895 |
+
<!-- Report Preview -->
|
| 896 |
+
<section class="section fade-in" id="report-section" aria-labelledby="report-title" style="display: none;">
|
| 897 |
+
<div class="section-header">
|
| 898 |
+
<div class="section-icon" aria-hidden="true">
|
| 899 |
+
<i class="fas fa-file-pdf"></i>
|
| 900 |
+
</div>
|
| 901 |
+
<div>
|
| 902 |
+
<h2 id="report-title">5. WCAG-Compliant Report</h2>
|
| 903 |
+
<p>Human-readable report with functional impairment crosswalk</p>
|
| 904 |
+
</div>
|
| 905 |
+
</div>
|
| 906 |
+
|
| 907 |
+
<div class="report-preview" id="report-preview" role="document" aria-label="Generated report preview">
|
| 908 |
+
<div class="report-header">
|
| 909 |
+
<h2>Neurogenetic Risk Assessment Report</h2>
|
| 910 |
+
<p>RIGOR-PRS-Secure++ System v1.0</p>
|
| 911 |
+
<p><small>Generated: <span id="report-timestamp"></span></small></p>
|
| 912 |
+
</div>
|
| 913 |
+
|
| 914 |
+
<div class="report-content">
|
| 915 |
+
<div class="report-section">
|
| 916 |
+
<h3>Executive Summary</h3>
|
| 917 |
+
<p id="executive-summary">The individual's polygenic risk score places them in the <strong id="summary-percentile"></strong> percentile for the assessed condition. This corresponds to a <strong id="summary-risk"></strong> risk category based on established population distributions.</p>
|
| 918 |
+
</div>
|
| 919 |
+
|
| 920 |
+
<div class="report-section">
|
| 921 |
+
<h3>Functional Impairment Crosswalk</h3>
|
| 922 |
+
<p>Based on the calculated PRS percentile, the following functional limitations are supported by the neurogenetic evidence:</p>
|
| 923 |
+
<ul id="impairment-list">
|
| 924 |
+
<li>Marked limitation in concentration, persistence, or pace</li>
|
| 925 |
+
<li>Difficulty with complex task completion</li>
|
| 926 |
+
<li>Impaired executive function under cognitive load</li>
|
| 927 |
+
</ul>
|
| 928 |
+
</div>
|
| 929 |
+
|
| 930 |
+
<div class="report-section">
|
| 931 |
+
<h3>Quality Control Summary</h3>
|
| 932 |
+
<p><strong>Reference Genome:</strong> GRCh38</p>
|
| 933 |
+
<p><strong>Variants Analyzed:</strong> 12 high-quality SNPs</p>
|
| 934 |
+
<p><strong>Variants Removed:</strong> 127 (ambiguous orientation, low quality)</p>
|
| 935 |
+
<p><strong>SNP Selection Method:</strong> LD-clumping (R²=0.1, 250kb window)</p>
|
| 936 |
+
</div>
|
| 937 |
+
</div>
|
| 938 |
+
</div>
|
| 939 |
+
|
| 940 |
+
<div style="margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap;">
|
| 941 |
+
<button class="btn" onclick="downloadReport('pdf')">
|
| 942 |
+
<i class="fas fa-file-pdf"></i> Download PDF Report
|
| 943 |
+
</button>
|
| 944 |
+
<button class="btn" onclick="downloadReport('html')">
|
| 945 |
+
<i class="fas fa-file-code"></i> Download HTML Report
|
| 946 |
+
</button>
|
| 947 |
+
<button class="btn btn-secondary" onclick="resetSystem()">
|
| 948 |
+
<i class="fas fa-redo"></i> New Analysis
|
| 949 |
+
</button>
|
| 950 |
+
</div>
|
| 951 |
+
</section>
|
| 952 |
+
</main>
|
| 953 |
+
|
| 954 |
+
<!-- Accessibility Controls -->
|
| 955 |
+
<div class="accessibility-controls" role="group" aria-label="Accessibility controls">
|
| 956 |
+
<button class="accessibility-btn" id="high-contrast-btn" onclick="toggleHighContrast()" title="Toggle high contrast mode" aria-label="Toggle high contrast mode">
|
| 957 |
+
<i class="fas fa-adjust"></i>
|
| 958 |
+
</button>
|
| 959 |
+
<button class="accessibility-btn" onclick="increaseFontSize()" title="Increase font size" aria-label="Increase font size">
|
| 960 |
+
<i class="fas fa-search-plus"></i>
|
| 961 |
+
</button>
|
| 962 |
+
<button class="accessibility-btn" onclick="decreaseFontSize()" title="Decrease font size" aria-label="Decrease font size">
|
| 963 |
+
<i class="fas fa-search-minus"></i>
|
| 964 |
+
</button>
|
| 965 |
+
<button class="accessibility-btn" onclick="speakCurrentSection()" title="Speak current section" aria-label="Speak current section">
|
| 966 |
+
<i class="fas fa-volume-up"></i>
|
| 967 |
+
</button>
|
| 968 |
+
</div>
|
| 969 |
+
|
| 970 |
+
<script>
|
| 971 |
+
// Global State
|
| 972 |
+
let uploadedFiles = [];
|
| 973 |
+
let processingStep = 0;
|
| 974 |
+
let auditTrail = [];
|
| 975 |
+
let prsData = null;
|
| 976 |
+
|
| 977 |
+
// Initialize system
|
| 978 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 979 |
+
updateSystemStatus('Ready', true);
|
| 980 |
+
initializeFileUpload();
|
| 981 |
+
initializeKeyboardNavigation();
|
| 982 |
+
|
| 983 |
+
// Add Fira Code font for crypto displays
|
| 984 |
+
const link = document.createElement('link');
|
| 985 |
+
link.href = 'https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap';
|
| 986 |
+
link.rel = 'stylesheet';
|
| 987 |
+
document.head.appendChild(link);
|
| 988 |
+
});
|
| 989 |
+
|
| 990 |
+
// File Upload Handling
|
| 991 |
+
function initializeFileUpload() {
|
| 992 |
+
const uploadZone = document.getElementById('upload-zone');
|
| 993 |
+
const fileInput = document.getElementById('file-input');
|
| 994 |
+
|
| 995 |
+
uploadZone.addEventListener('dragover', (e) => {
|
| 996 |
+
e.preventDefault();
|
| 997 |
+
uploadZone.classList.add('dragover');
|
| 998 |
+
});
|
| 999 |
+
|
| 1000 |
+
uploadZone.addEventListener('dragleave', () => {
|
| 1001 |
+
uploadZone.classList.remove('dragover');
|
| 1002 |
+
});
|
| 1003 |
+
|
| 1004 |
+
uploadZone.addEventListener('drop', (e) => {
|
| 1005 |
+
e.preventDefault();
|
| 1006 |
+
uploadZone.classList.remove('dragover');
|
| 1007 |
+
handleFiles(e.dataTransfer.files);
|
| 1008 |
+
});
|
| 1009 |
+
|
| 1010 |
+
uploadZone.addEventListener('click', () => {
|
| 1011 |
+
fileInput.click();
|
| 1012 |
+
});
|
| 1013 |
+
|
| 1014 |
+
uploadZone.addEventListener('keydown', (e) => {
|
| 1015 |
+
if (e.key === 'Enter' || e.key === ' ') {
|
| 1016 |
+
e.preventDefault();
|
| 1017 |
+
fileInput.click();
|
| 1018 |
+
}
|
| 1019 |
+
});
|
| 1020 |
+
|
| 1021 |
+
fileInput.addEventListener('change', (e) => {
|
| 1022 |
+
handleFiles(e.target.files);
|
| 1023 |
+
});
|
| 1024 |
+
}
|
| 1025 |
+
|
| 1026 |
+
function handleFiles(files) {
|
| 1027 |
+
uploadedFiles = Array.from(files);
|
| 1028 |
+
const fileList = document.getElementById('file-list');
|
| 1029 |
+
const cryptoDisplay = document.getElementById('crypto-display');
|
| 1030 |
+
|
| 1031 |
+
fileList.innerHTML = '';
|
| 1032 |
+
|
| 1033 |
+
uploadedFiles.forEach(file => {
|
| 1034 |
+
const fileItem = document.createElement('div');
|
| 1035 |
+
fileItem.className = 'file-item';
|
| 1036 |
+
fileItem.innerHTML = `
|
| 1037 |
+
<span><i class="fas fa-file-code" aria-hidden="true"></i> ${file.name}</span>
|
| 1038 |
+
<span>${(file.size / 1024 / 1024).toFixed(2)} MB</span>
|
| 1039 |
+
`;
|
| 1040 |
+
fileList.appendChild(fileItem);
|
| 1041 |
+
});
|
| 1042 |
+
|
| 1043 |
+
cryptoDisplay.style.display = 'block';
|
| 1044 |
+
document.getElementById('process-btn').disabled = false;
|
| 1045 |
+
updateSystemStatus('Files Uploaded', true);
|
| 1046 |
+
}
|
| 1047 |
+
|
| 1048 |
+
// Processing Pipeline
|
| 1049 |
+
async function startProcessing() {
|
| 1050 |
+
if (uploadedFiles.length === 0) return;
|
| 1051 |
+
|
| 1052 |
+
const processBtn = document.getElementById('process-btn');
|
| 1053 |
+
processBtn.disabled = true;
|
| 1054 |
+
processBtn.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Processing...';
|
| 1055 |
+
|
| 1056 |
+
updateSystemStatus('Processing', true);
|
| 1057 |
+
|
| 1058 |
+
// Simulate pipeline steps
|
| 1059 |
+
const steps = ['step-1', 'step-2', 'step-3', 'step-4', 'step-5'];
|
| 1060 |
+
|
| 1061 |
+
for (let i = 0; i < steps.length; i++) {
|
| 1062 |
+
const step = document.getElementById(steps[i]);
|
| 1063 |
+
step.classList.add('active');
|
| 1064 |
+
|
| 1065 |
+
// Add audit log entry
|
| 1066 |
+
addAuditEntry(i + 1, getStepDescription(i + 1));
|
| 1067 |
+
|
| 1068 |
+
// Simulate processing time
|
| 1069 |
+
await sleep(1500 + Math.random() * 1000);
|
| 1070 |
+
|
| 1071 |
+
step.classList.remove('active');
|
| 1072 |
+
step.classList.add('completed');
|
| 1073 |
+
}
|
| 1074 |
+
|
| 1075 |
+
// Generate results
|
| 1076 |
+
generatePRSResults();
|
| 1077 |
+
|
| 1078 |
+
// Show results sections
|
| 1079 |
+
document.getElementById('results-section').style.display = 'block';
|
| 1080 |
+
document.getElementById('audit-section').style.display = 'block';
|
| 1081 |
+
document.getElementById('report-section').style.display = 'block';
|
| 1082 |
+
|
| 1083 |
+
// Scroll to results
|
| 1084 |
+
document.getElementById('results-section').scrollIntoView({ behavior: 'smooth' });
|
| 1085 |
+
|
| 1086 |
+
updateSystemStatus('Complete', true);
|
| 1087 |
+
processBtn.innerHTML = '<i class="fas fa-check"></i> Processing Complete';
|
| 1088 |
+
}
|
| 1089 |
+
|
| 1090 |
+
function getStepDescription(step) {
|
| 1091 |
+
const descriptions = {
|
| 1092 |
+
1: 'Encrypted genotype data ingested with ML-KEM-1024 key encapsulation',
|
| 1093 |
+
2: 'GRCh38 alignment completed; 127 low-quality variants removed',
|
| 1094 |
+
3: 'PRS computed using additive model with LD-clumping (R²=0.1)',
|
| 1095 |
+
4: '12 SNPs linked to peer-reviewed literature (PMID references)',
|
| 1096 |
+
5: 'WCAG 2.1 AA compliant report generated with functional impairment mapping'
|
| 1097 |
+
};
|
| 1098 |
+
return descriptions[step];
|
| 1099 |
+
}
|
| 1100 |
+
|
| 1101 |
+
function addAuditEntry(step, description) {
|
| 1102 |
+
const timestamp = new Date().toISOString();
|
| 1103 |
+
const hash = generateHash(timestamp + description);
|
| 1104 |
+
|
| 1105 |
+
const entry = {
|
| 1106 |
+
step: step,
|
| 1107 |
+
timestamp: timestamp,
|
| 1108 |
+
description: description,
|
| 1109 |
+
hash: hash
|
| 1110 |
+
};
|
| 1111 |
+
|
| 1112 |
+
auditTrail.push(entry);
|
| 1113 |
+
|
| 1114 |
+
const auditEntries = document.getElementById('audit-entries');
|
| 1115 |
+
const entryDiv = document.createElement('div');
|
| 1116 |
+
entryDiv.style.marginBottom = '1rem';
|
| 1117 |
+
entryDiv.style.padding = '0.5rem';
|
| 1118 |
+
entryDiv.style.background = 'rgba(100, 255, 218, 0.05)';
|
| 1119 |
+
entryDiv.style.borderRadius = '4px';
|
| 1120 |
+
entryDiv.innerHTML = `
|
| 1121 |
+
<div style="display: flex; justify-content: space-between; align-items: center;">
|
| 1122 |
+
<strong>Step ${step}</strong>
|
| 1123 |
+
<small>${new Date(timestamp).toLocaleTimeString()}</small>
|
| 1124 |
+
</div>
|
| 1125 |
+
<p style="margin: 0.5rem 0;">${description}</p>
|
| 1126 |
+
<small style="font-family: monospace; color: var(--secondary-color);">Hash: ${hash}</small>
|
| 1127 |
+
`;
|
| 1128 |
+
auditEntries.appendChild(entryDiv);
|
| 1129 |
+
}
|
| 1130 |
+
|
| 1131 |
+
function generatePRSResults() {
|
| 1132 |
+
// Simulate realistic PRS calculation
|
| 1133 |
+
const rawScore = (Math.random() * 2 - 1) * 3; // -3 to 3
|
| 1134 |
+
const zScore = rawScore / 1.5; // Normalize
|
| 1135 |
+
const percentile = Math.round((1 - (1 + erf(zScore / Math.sqrt(2))) / 2) * 100);
|
| 1136 |
+
|
| 1137 |
+
prsData = {
|
| 1138 |
+
rawScore: rawScore.toFixed(3),
|
| 1139 |
+
zScore: zScore.toFixed(2),
|
| 1140 |
+
percentile: percentile,
|
| 1141 |
+
riskCategory: getRiskCategory(percentile),
|
| 1142 |
+
variants: generateVariantData()
|
| 1143 |
+
};
|
| 1144 |
+
|
| 1145 |
+
// Update UI
|
| 1146 |
+
document.getElementById('raw-score').textContent = prsData.rawScore;
|
| 1147 |
+
document.getElementById('z-score').textContent = prsData.zScore;
|
| 1148 |
+
document.getElementById('percentile').textContent = `${prsData.percentile}th`;
|
| 1149 |
+
document.getElementById('risk-category').textContent = prsData.riskCategory;
|
| 1150 |
+
|
| 1151 |
+
// Populate variant table
|
| 1152 |
+
const tableBody = document.getElementById('variant-table-body');
|
| 1153 |
+
tableBody.innerHTML = '';
|
| 1154 |
+
|
| 1155 |
+
prsData.variants.forEach(variant => {
|
| 1156 |
+
const row = document.createElement('tr');
|
| 1157 |
+
row.innerHTML = `
|
| 1158 |
+
<td><code>${variant.rsID}</code></td>
|
| 1159 |
+
<td>${variant.chr}</td>
|
| 1160 |
+
<td>${variant.pos.toLocaleString()}</td>
|
| 1161 |
+
<td><code>${variant.effectAllele}</code></td>
|
| 1162 |
+
<td>${variant.beta}</td>
|
| 1163 |
+
<td>${variant.dosage}</td>
|
| 1164 |
+
<td>${variant.contribution}</
|