-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdirghayu_report.html
More file actions
701 lines (606 loc) · 26 KB
/
Copy pathdirghayu_report.html
File metadata and controls
701 lines (606 loc) · 26 KB
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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dirghayu - Genomic Analysis Report</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
padding: 20px;
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
}
.header {
background: white;
padding: 40px;
border-radius: 15px;
text-align: center;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
margin-bottom: 30px;
}
.header h1 {
font-size: 48px;
background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 10px;
}
.header p {
font-size: 18px;
color: #666;
}
.summary-box {
background: white;
padding: 30px;
border-radius: 15px;
margin-bottom: 30px;
box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.summary-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-top: 20px;
}
.stat-card {
padding: 20px;
border-radius: 10px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
display: block;
}
.stat-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.stat-card.high {
background: #fee;
border: 2px solid #e74c3c;
}
.stat-card.high:hover {
background: #fdd;
border-color: #c0392b;
}
.stat-card.moderate {
background: #fff3cd;
border: 2px solid #f39c12;
}
.stat-card.moderate:hover {
background: #ffe4a0;
border-color: #e67e22;
}
.stat-card.low {
background: #d4edda;
border: 2px solid #27ae60;
}
.stat-card.low:hover {
background: #c3e6cb;
border-color: #1e7e34;
}
.stat-number {
font-size: 48px;
font-weight: bold;
margin: 10px 0;
}
.variant-card {
background: white;
padding: 25px;
border-radius: 10px;
margin-bottom: 20px;
box-shadow: 0 3px 15px rgba(0,0,0,0.1);
transition: transform 0.3s, box-shadow 0.3s;
}
.variant-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.variant-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.variant-meta {
background: #f8f9fa;
padding: 12px;
border-radius: 8px;
margin: 15px 0;
font-size: 14px;
}
.impact-box {
background: #fff8e1;
padding: 15px;
border-radius: 8px;
margin: 15px 0;
border-left: 4px solid #ffc107;
}
.recommendation-box {
background: #e8f5e9;
padding: 15px;
border-radius: 8px;
margin: 15px 0;
border-left: 4px solid #4caf50;
}
.details-box {
background: #f5f5f5;
padding: 15px;
border-radius: 8px;
margin-top: 15px;
cursor: pointer;
}
.details-box summary {
font-weight: bold;
user-select: none;
}
.badge {
padding: 6px 16px;
border-radius: 20px;
font-size: 12px;
font-weight: bold;
text-transform: uppercase;
}
.badge-high {
background: #e74c3c;
color: white;
}
.badge-moderate {
background: #f39c12;
color: white;
}
.badge-low {
background: #27ae60;
color: white;
}
code {
background: #f4f4f4;
padding: 2px 6px;
border-radius: 3px;
font-family: 'Courier New', monospace;
}
.footer {
background: white;
padding: 30px;
border-radius: 15px;
text-align: center;
margin-top: 30px;
color: #666;
}
.disclaimer {
background: #fff3cd;
border: 2px solid #ffc107;
padding: 20px;
border-radius: 10px;
margin: 20px 0;
}
/* Floating Action Button */
.fab-container {
position: fixed;
bottom: 30px;
right: 30px;
z-index: 1000;
}
.fab-button {
width: 60px;
height: 60px;
border-radius: 50%;
background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
color: white;
border: none;
font-size: 24px;
cursor: pointer;
box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.fab-button:hover {
transform: scale(1.1);
box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}
.fab-menu {
position: absolute;
bottom: 70px;
right: 0;
display: none;
flex-direction: column;
gap: 10px;
}
.fab-container:hover .fab-menu {
display: flex;
}
.fab-menu-item {
background: white;
padding: 12px 20px;
border-radius: 25px;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
cursor: pointer;
transition: all 0.3s ease;
white-space: nowrap;
display: flex;
align-items: center;
gap: 10px;
font-size: 14px;
font-weight: 500;
color: #333;
text-decoration: none;
}
.fab-menu-item:hover {
transform: translateX(-5px);
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
color: white;
}
.fab-menu-item .icon {
font-size: 18px;
}
.tooltip {
position: absolute;
background: rgba(0,0,0,0.8);
color: white;
padding: 8px 12px;
border-radius: 5px;
font-size: 12px;
white-space: nowrap;
bottom: 50%;
right: 75px;
transform: translateY(50%);
opacity: 0;
pointer-events: none;
transition: opacity 0.3s;
}
.fab-button:hover .tooltip {
opacity: 1;
}
@media print {
body {
background: white;
padding: 0;
}
.variant-card {
page-break-inside: avoid;
}
.fab-container {
display: none !important;
}
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>🧬 Dirghayu</h1>
<p>India-First Longevity Genomics Platform</p>
<p style="margin-top: 10px; font-size: 14px; color: #999;">
Report generated: January 22, 2026 at 12:37 AM
</p>
</div>
<div class="summary-box">
<h2>📊 Analysis Summary</h2>
<p><strong>VCF File:</strong> clinvar_sample.vcf</p>
<p><strong>Variants Analyzed:</strong> 5 variants parsed</p>
<p><strong>Clinically Significant Variants Found:</strong> 5</p>
<div class="summary-stats">
<a href="#high-risk-section" class="stat-card high" onclick="scrollToRisk('high'); return false;">
<div>⚠️ HIGH RISK</div>
<div class="stat-number">2</div>
<div>variant(s)</div>
</a>
<a href="#moderate-risk-section" class="stat-card moderate" onclick="scrollToRisk('moderate'); return false;">
<div>⚡ MODERATE RISK</div>
<div class="stat-number">2</div>
<div>variant(s)</div>
</a>
<a href="#low-risk-section" class="stat-card low" onclick="scrollToRisk('low'); return false;">
<div>✓ LOW RISK</div>
<div class="stat-number">1</div>
<div>variant(s)</div>
</a>
</div>
</div>
<div class="summary-box">
<h2>🧬 Genetic Insights</h2>
<p style="margin-top: 10px; color: #666;">
Below are the clinically significant variants detected in your genome.
Each variant includes its impact, risk level, and personalized recommendations.
</p>
</div>
<div class="variant-card" id="variant-rs1801133" data-risk="high" style="border-left: 5px solid #e74c3c;">
<div class="variant-header">
<h3 style="color: #e74c3c; margin: 0;">
<span style="font-size: 32px;">🧬</span> rs1801133 - C677T
</h3>
<span class="badge badge-high">HIGH</span>
</div>
<div class="variant-meta">
<strong>Gene:</strong> MTHFR |
<strong>Genotype:</strong> <code>1/1</code> |
<strong>Position:</strong> chr1:11856378
</div>
<div class="impact-box">
<strong>Impact:</strong><br>
Folate metabolism - Higher homocysteine levels
</div>
<div class="recommendation-box">
<strong>💡 Recommendation:</strong><br>
Consider methylfolate supplementation (800 mcg/day)
</div>
<details class="details-box">
<summary>📖 Learn More</summary>
<div style="padding: 10px;">
<strong>What this means:</strong><br>
- Reduced MTHFR enzyme activity (~30% of normal)<br>
- Higher homocysteine levels<br>
- Increased cardiovascular disease risk<br>
- Higher frequency in Indian populations (~25-35%)<br><br>
<strong>Action items:</strong><br>
✅ Methylfolate supplementation (800 mcg/day)<br>
✅ Monitor homocysteine levels every 6 months<br>
⚠️ Avoid folic acid; use methylfolate form
</div>
</details>
</div>
<div class="variant-card" id="variant-rs429358" data-risk="moderate" style="border-left: 5px solid #f39c12;">
<div class="variant-header">
<h3 style="color: #f39c12; margin: 0;">
<span style="font-size: 32px;">🧠</span> rs429358 - ε4 allele
</h3>
<span class="badge badge-moderate">MODERATE</span>
</div>
<div class="variant-meta">
<strong>Gene:</strong> APOE |
<strong>Genotype:</strong> <code>0/1</code> |
<strong>Position:</strong> chr19:44908684
</div>
<div class="impact-box">
<strong>Impact:</strong><br>
Increased Alzheimer's disease risk (3-4x)
</div>
<div class="recommendation-box">
<strong>💡 Recommendation:</strong><br>
Focus on cardiovascular health, Mediterranean diet
</div>
<details class="details-box">
<summary>📖 Learn More</summary>
<div style="padding: 10px;">
<strong>What this means:</strong><br>
- 3-4x increased Alzheimer's disease risk<br>
- Earlier onset of cognitive decline<br>
- Cardiovascular disease association<br><br>
<strong>Action items:</strong><br>
✅ Mediterranean diet rich in omega-3<br>
✅ Regular cognitive assessments after age 50<br>
✅ Control blood pressure and cholesterol
</div>
</details>
</div>
<div class="variant-card" id="variant-rs1801131" data-risk="moderate" style="border-left: 5px solid #3498db;">
<div class="variant-header">
<h3 style="color: #3498db; margin: 0;">
<span style="font-size: 32px;">🧬</span> rs1801131 - A1298C
</h3>
<span class="badge badge-moderate">MODERATE</span>
</div>
<div class="variant-meta">
<strong>Gene:</strong> MTHFR |
<strong>Genotype:</strong> <code>0/1</code> |
<strong>Position:</strong> chr1:230710048
</div>
<div class="impact-box">
<strong>Impact:</strong><br>
Folate metabolism - Combined with C677T increases risk
</div>
<div class="recommendation-box">
<strong>💡 Recommendation:</strong><br>
Monitor homocysteine levels, B-vitamin supplementation
</div>
<details class="details-box">
<summary>📖 Learn More</summary>
<div style="padding: 10px;">
<strong>What this means:</strong><br>
- Compound heterozygote with C677T increases risk<br>
- Combined effect on folate metabolism<br>
- May affect neurotransmitter synthesis<br><br>
<strong>Action items:</strong><br>
✅ B-vitamin supplementation<br>
✅ Monitor homocysteine (especially with C677T)
</div>
</details>
</div>
<div class="variant-card" id="variant-rs1333049" data-risk="high" style="border-left: 5px solid #c0392b;">
<div class="variant-header">
<h3 style="color: #c0392b; margin: 0;">
<span style="font-size: 32px;">❤️</span> rs1333049 - 9p21.3 locus
</h3>
<span class="badge badge-high">HIGH</span>
</div>
<div class="variant-meta">
<strong>Gene:</strong> CDKN2B-AS1 |
<strong>Genotype:</strong> <code>1/1</code> |
<strong>Position:</strong> chr9:133257521
</div>
<div class="impact-box">
<strong>Impact:</strong><br>
Coronary artery disease risk marker
</div>
<div class="recommendation-box">
<strong>💡 Recommendation:</strong><br>
Regular cardiovascular screening, healthy lifestyle
</div>
<details class="details-box">
<summary>📖 Learn More</summary>
<div style="padding: 10px;">
<strong>What this means:</strong><br>
- Strongest genetic marker for CAD<br>
- 1.5-2x increased risk of heart disease<br>
- Higher prevalence in South Asian populations<br><br>
<strong>Action items:</strong><br>
✅ Regular cardiovascular screening (start age 30-35)<br>
✅ Lipid panel, ECG, stress test as recommended<br>
⚠️ Consider early statin therapy if other risks present
</div>
</details>
</div>
<div class="variant-card" id="variant-rs713598" data-risk="low" style="border-left: 5px solid #27ae60;">
<div class="variant-header">
<h3 style="color: #27ae60; margin: 0;">
<span style="font-size: 32px;">👅</span> rs713598 - PTC taster
</h3>
<span class="badge badge-low">LOW</span>
</div>
<div class="variant-meta">
<strong>Gene:</strong> TAS2R38 |
<strong>Genotype:</strong> <code>0/1</code> |
<strong>Position:</strong> chr1:55039974
</div>
<div class="impact-box">
<strong>Impact:</strong><br>
Bitter taste perception - affects vegetable preferences
</div>
<div class="recommendation-box">
<strong>💡 Recommendation:</strong><br>
Ensure varied vegetable intake
</div>
<details class="details-box">
<summary>📖 Learn More</summary>
<div style="padding: 10px;">
<strong>What this means:</strong><br>
- Affects taste perception of bitter compounds<br>
- May influence dietary choices<br>
- Common genetic variant<br><br>
<strong>Action items:</strong><br>
ℹ️ Awareness of taste-driven dietary limitations<br>
✅ Try different preparation methods for vegetables
</div>
</details>
</div>
<div class="disclaimer">
<h3 style="margin-bottom: 10px;">⚠️ Important Disclaimer</h3>
<p><strong>This report is for research and educational purposes only.</strong></p>
<ul style="text-align: left; margin: 10px 0 10px 30px;">
<li>NOT for clinical diagnosis or treatment decisions</li>
<li>Consult a healthcare provider before acting on genetic results</li>
<li>Genetic risk ≠ disease certainty</li>
<li>Lifestyle and environment are also critical factors</li>
</ul>
<p><strong>For clinical use:</strong> Validate with a certified genetic counselor and CLIA-certified lab testing.</p>
</div>
<div class="footer">
<p><strong>Dirghayu v0.1.0</strong></p>
<p>India-First Longevity Genomics Platform</p>
<p style="margin-top: 10px; font-size: 12px;">
Open Source (Research Use) | Built with ❤️ for Indian population health
</p>
</div>
</div>
<!-- Floating Action Button -->
<div class="fab-container">
<div class="fab-menu">
<div class="fab-menu-item" onclick="shareReport()">
<span class="icon">🔗</span>
<span>Share Link</span>
</div>
<div class="fab-menu-item" onclick="downloadPDF()">
<span class="icon">📥</span>
<span>Download PDF</span>
</div>
<div class="fab-menu-item" onclick="window.print()">
<span class="icon">🖨️</span>
<span>Print</span>
</div>
</div>
<button class="fab-button">
⚙️
<span class="tooltip">Actions</span>
</button>
</div>
<script>
// Scroll to risk level variants
function scrollToRisk(riskLevel) {
const variants = document.querySelectorAll(`[data-risk="${riskLevel}"]`);
if (variants.length > 0) {
variants[0].scrollIntoView({ behavior: 'smooth', block: 'center' });
// Highlight effect
variants.forEach(variant => {
variant.style.animation = 'highlight 1s ease';
setTimeout(() => {
variant.style.animation = '';
}, 1000);
});
}
}
// Share report - copy URL to clipboard
function shareReport() {
const shareURL = window.location.href;
navigator.clipboard.writeText(shareURL).then(() => {
showNotification('✅ Link copied to clipboard!');
}).catch(() => {
showNotification('❌ Failed to copy link');
});
}
// Download as PDF
function downloadPDF() {
// Use browser's print to PDF functionality
showNotification('💡 Use Print → Save as PDF');
setTimeout(() => {
window.print();
}, 500);
}
// Show notification
function showNotification(message) {
const notification = document.createElement('div');
notification.style.cssText = `
position: fixed;
top: 20px;
right: 20px;
background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
color: white;
padding: 15px 25px;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
z-index: 10000;
font-weight: 500;
animation: slideIn 0.3s ease;
`;
notification.textContent = message;
document.body.appendChild(notification);
setTimeout(() => {
notification.style.animation = 'slideOut 0.3s ease';
setTimeout(() => {
document.body.removeChild(notification);
}, 300);
}, 3000);
}
// Add CSS animations
const style = document.createElement('style');
style.textContent = `
@keyframes highlight {
0%, 100% { transform: scale(1); box-shadow: 0 3px 15px rgba(0,0,0,0.1); }
50% { transform: scale(1.02); box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4); }
}
@keyframes slideIn {
from { transform: translateX(400px); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
from { transform: translateX(0); opacity: 1; }
to { transform: translateX(400px); opacity: 0; }
}
`;
document.head.appendChild(style);
</script>
</body>
</html>