Skip to content

Commit cbd454f

Browse files
committed
Add dbNSFP source section to gene page
1 parent c77703b commit cbd454f

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

gene.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,6 +1805,13 @@
18051805
</div>
18061806
<div class="three wide column"></div>
18071807
</div>
1808+
<div class="ui row">
1809+
<div class="three wide column"></div>
1810+
<div class="ten wide column">
1811+
<div id="source-dbnsfp"></div>
1812+
</div>
1813+
<div class="three wide column"></div>
1814+
</div>
18081815
</div>
18091816
<div style="min-height: 50px;"></div>
18101817

@@ -2096,6 +2103,19 @@ <h4>AI Phenotype Summary</h4>
20962103
$('#source-fridman').html(html)
20972104
}
20982105

2106+
// --- Source: dbNSFP ---
2107+
if (hasAnyValue(row['DBNSFP_orphanet_disorder'], row['DBNSFP_function_description'], row['DBNSFP_disease_description'], row['DBNSFP_hpo_name'], row['DBNSFP_mgi_mouse_phenotype'], row['DBNSFP_zfin_zebrafish_phenotype'])) {
2108+
let html = '<div class="source-section"><h4>dbNSFP</h4><table class="locus-info-table">'
2109+
html += `<tr><td class="locus-info-label">Orphanet Disorder:</td><td style="white-space: normal;">${row['DBNSFP_orphanet_disorder'] || ''}</td></tr>`
2110+
html += `<tr><td class="locus-info-label">Function:</td><td style="white-space: normal;">${row['DBNSFP_function_description'] || ''}</td></tr>`
2111+
html += `<tr><td class="locus-info-label">Disease:</td><td style="white-space: normal;">${row['DBNSFP_disease_description'] || ''}</td></tr>`
2112+
html += `<tr><td class="locus-info-label">HPO Terms:</td><td style="white-space: normal;">${row['DBNSFP_hpo_name'] || ''}</td></tr>`
2113+
html += `<tr><td class="locus-info-label">Mouse Phenotype:</td><td style="white-space: normal;">${row['DBNSFP_mgi_mouse_phenotype'] || ''}</td></tr>`
2114+
html += `<tr><td class="locus-info-label">Zebrafish Phenotype:</td><td style="white-space: normal;">${row['DBNSFP_zfin_zebrafish_phenotype'] || ''}</td></tr>`
2115+
html += '</table></div>'
2116+
$('#source-dbnsfp').html(html)
2117+
}
2118+
20992119
$('.question').popup({ on: 'click' })
21002120
$('.show-popup').popup({ on: 'click', hoverable: true })
21012121
}

website/gene_page_template.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@
156156
</div>
157157
<div class="three wide column"></div>
158158
</div>
159+
<div class="ui row">
160+
<div class="three wide column"></div>
161+
<div class="ten wide column">
162+
<div id="source-dbnsfp"></div>
163+
</div>
164+
<div class="three wide column"></div>
165+
</div>
159166
</div>
160167
<div style="min-height: 50px;"></div>
161168

@@ -444,6 +451,19 @@ <h4>AI Phenotype Summary</h4>
444451
$('#source-fridman').html(html)
445452
}
446453

454+
// --- Source: dbNSFP ---
455+
if (hasAnyValue(row['DBNSFP_orphanet_disorder'], row['DBNSFP_function_description'], row['DBNSFP_disease_description'], row['DBNSFP_hpo_name'], row['DBNSFP_mgi_mouse_phenotype'], row['DBNSFP_zfin_zebrafish_phenotype'])) {
456+
let html = '<div class="source-section"><h4>dbNSFP</h4><table class="locus-info-table">'
457+
html += `<tr><td class="locus-info-label">Orphanet Disorder:</td><td style="white-space: normal;">${row['DBNSFP_orphanet_disorder'] || ''}</td></tr>`
458+
html += `<tr><td class="locus-info-label">Function:</td><td style="white-space: normal;">${row['DBNSFP_function_description'] || ''}</td></tr>`
459+
html += `<tr><td class="locus-info-label">Disease:</td><td style="white-space: normal;">${row['DBNSFP_disease_description'] || ''}</td></tr>`
460+
html += `<tr><td class="locus-info-label">HPO Terms:</td><td style="white-space: normal;">${row['DBNSFP_hpo_name'] || ''}</td></tr>`
461+
html += `<tr><td class="locus-info-label">Mouse Phenotype:</td><td style="white-space: normal;">${row['DBNSFP_mgi_mouse_phenotype'] || ''}</td></tr>`
462+
html += `<tr><td class="locus-info-label">Zebrafish Phenotype:</td><td style="white-space: normal;">${row['DBNSFP_zfin_zebrafish_phenotype'] || ''}</td></tr>`
463+
html += '</table></div>'
464+
$('#source-dbnsfp').html(html)
465+
}
466+
447467
$('.question').popup({ on: 'click' })
448468
$('.show-popup').popup({ on: 'click', hoverable: true })
449469
}

0 commit comments

Comments
 (0)