Skip to content

Commit bfa8581

Browse files
authored
Merge pull request #183 from LabKey/fb_merge_23.7_to_develop
Merge discvr-23.7 to develop
2 parents a8b1507 + 1579e33 commit bfa8581

26 files changed

+528
-291
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE mGAP.userRequests ADD category varchar(1000);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE mGAP.userRequests ADD category nvarchar(1000);

mGAP/resources/schemas/mgap.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,10 @@
362362
<columnTitle>Institution</columnTitle>
363363
<nullable>false</nullable>
364364
</column>
365+
<column columnName="category">
366+
<columnTitle>Category</columnTitle>
367+
<nullable>true</nullable>
368+
</column>
365369
<column columnName="reason">
366370
<columnTitle>Reason For Request</columnTitle>
367371
<nullable>false</nullable>
@@ -456,7 +460,7 @@
456460
</column>
457461
<column columnName="af">
458462
<columnTitle>Allele Frequency</columnTitle>
459-
<formatString>##0.###</formatString>
463+
<formatString>##0.######</formatString>
460464
</column>
461465
<column columnName="cadd">
462466
<columnTitle>CADD Score</columnTitle>

mGAP/resources/views/overview.html

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,53 @@
1010
});
1111
})(jQuery);
1212
</script>
13+
14+
<script>
15+
$( function() {
16+
$( "i.mgap-video-icon" ).on("click", function(e){
17+
const el = $(e.target);
18+
const videoName = el.attr('data-video');
19+
const title = el.attr('data-video-title');
20+
21+
LDK.Assert.assertNotEmpty('Missing data-video attribute.', videoName);
22+
23+
mGAP.Utils.showVideoDialog(videoName, title);
24+
});
25+
} );
26+
</script>
1327
<div class="colDiv">
1428
<div style="flex: 1;margin-right: 20px;">
1529
Non-human primates, such as Rhesus macaques, are a powerful genetic model of human disease. mGAP seeks to fill several major voids to promote genomic analyses and the study of human genetic disease in this key pre-clinical model.
1630
The database provides open access to rhesus macaque genomic and phenotypic data. Our dataset was originally generated using animals from the large, pedigreed colony of Indian-origin rhesus macaques housed at the Oregon National Primate Research Center (ONPRC); however, it has
17-
since <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/mGap-externalData.view">been expanded to include data from other National Primate Research Centers and NHP colonies.</a>. Below are the key features of mGAP:
31+
since <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/mGap-externalData.view">been expanded to include data from other National Primate Research Centers and NHP colonies.</a>.
32+
<br><br>
33+
<span style="font-weight: bold">NEW: Click the video icons (<i class="fa-solid fa-video mgap-video-icon"></i>) load help videos, or <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/mGap-tutorials.view">view our tutorials page</a> for more detail.</span>
1834
<br>
19-
<h4 style="text-decoration: underline;">Short Variant Catalog:</h4>
35+
<h4><span style="text-decoration: underline">Short Variant Catalog:</span> <img style="vertical-align: sub" width="40px" src="<%=contextPath%>/mgap/images/SNV.png" alt="SNV"></h4>
2036
The primary dataset generated by mGAP is a catalog of short variants (summarized to the right). Raw sequence data are <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/mgap-dataProcessing.view">analyzed using a vetted pipeline</a> designed to produce high-confidence genotype calls.
2137
The resulting variants are <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/mgap-annotation.view">annotated using a wide range of data sources</a>, including predicted function, overlap with regulatory elements and association with phenotypes and diseases.
2238
<br>
2339
<ul style="padding-top: 10px;">
24-
<li>Use the <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/mGap-genomeBrowser.view?">Genome Browser</a> to view and search data</li>
25-
<!-- <li>Use our new <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/mGap-genomeBrowser.view?target=variantSearch">Full-text Search</a> tool to query variants based on gene, or using our <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/mgap-annotation.view">extensive annotations</a></li>-->
26-
<li>View our list of <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/mGap-variantList.view">Predicted Damaging Variants</a>, which is a list of predicted high-impact or disease associated variants, generated from each release</li>
40+
<li>Use the <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/mGap-genomeBrowser.view?">Genome Browser</a> to view and search data. <i class="fa-solid fa-video mgap-video-icon" data-video="genome-browser" data-video-title="Genome Browser Overview"></i></li>
41+
<li>Use our new <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/mGap-genomeBrowser.view?target=variantSearch">Full-text Search</a> tool to query variants based on gene, or using our <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/mgap-annotation.view">extensive annotations</a> <i class="fa-solid fa-video mgap-video-icon" data-video="variant-search" data-video-title="Variant Full-text Search (BETA)"></i></li>
42+
<li>View our list of <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/mGap-variantList.view">Predicted Damaging Variants</a>, which is a list of predicted high-impact or disease associated variants, generated from each release <i class="fa-solid fa-video mgap-video-icon" data-video="predicted-damaging-variants" data-video-title="Predicted Damaging Variants"></i></li>
2743
<li>Unlike many datasets, mGAP has genotype-level data, <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/project-begin.view?pageId=clinical">often connected to living animals from pedigreed breeding colonies</a></li>
2844
<li>Download raw data, including <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/project-begin.view?pageId=datasets">sequence data</a> and <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/project-begin.view?pageId=variants">variant data</a></li>
45+
<!-- Link to new variants in release -->
2946
</ul>
3047

31-
<h4 style="text-decoration: underline;">Structural Variant Catalog:</h4>
48+
<h4><span style="text-decoration: underline;">Structural Variant Catalog:</span> <img style="vertical-align: sub" width="40px" src="<%=contextPath%>/mgap/images/SV.png" alt="SV"></h4>
3249
We have released a draft dataset with structural variants generated from PacBio sequencing of 44 Rhesus macaques. These data complement the short variant catalog by detecting categories of variants not readily accomplished with short read Illumina data.
3350
<br>
3451
<ul style="padding-top: 10px;">
35-
<li>Use the <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/mGap-genomeBrowser.view?activeTracks=mGAP Structural Variants 1.0">Genome Browser</a> to view and search structural variant data</li>
52+
<li>Use the <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/mGap-genomeBrowser.view?activeTracks=mGAP Structural Variants 1.0&loc=4:137,917,074..137,937,929">Genome Browser</a> to view and search structural variant data</li>
3653
</ul>
3754

38-
<h4 style="text-decoration: underline;">NHP Models of Human Disease:</h4>
55+
<h4><span style="text-decoration: underline;">NHP Models of Human Disease:</span> <img style="vertical-align: sub" width="40px" src="<%=contextPath%>/mgap/images/phenotypes.png" alt="Phenotypes"></h4>
3956
NHPs serve as essential pre-clinical models for a range of human diseases. The mGAP site supports this work by providing information about published NHP disease/phenotype models, and by providing summaries of the annotated variant catalog to help identify novel disease-associated variants.
4057
<br>
4158
<ul style="padding-top: 10px;">
59+
<li>Tutorial on searching phenotypes and variants <i class="fa-solid fa-video mgap-video-icon" data-video="phenotypes-and-models" data-video-title="Phenotypes and Models"></i></li>
4260
<li>View our list of <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/project-begin.view?pageId=model">Published NHP Disease Models</a></li>
4361
<li>View the list of <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/mgap-phenotypeList.view">Genes and OMIM diseases/phenotypes</a> where predicted damaging variants were detected</li>
4462
<li>View our list of <a class="mgap-link" href="<%=contextPath%><%=containerPath%>/mGap-variantList.view">Predicted Damaging Variants</a>, which is a list of predicted high-impact or disease associated variants, generated from each release</li>
@@ -48,7 +66,7 @@ <h4 style="text-decoration: underline;">NHP Models of Human Disease:</h4>
4866

4967
<div id="mgap-graph-outer" style="width: 350px;border: 1px;border-color: black; border-style: solid;padding: 10px;">
5068

51-
<h4 style="font-style: italic;margin-top: 0px;">Summary of Current Release:</h4>
69+
<h4 style="font-style: italic;margin-top: 0;">Summary of Current Release:</h4>
5270
<br>
5371
<div id="mgap-release-table"></div>
5472

mGAP/resources/views/overview.view.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@
66
<dependency path="ldk.context"/>
77
<dependency path="internal/jQuery"/>
88
<dependency path="https://cdn.plot.ly/plotly-latest.min.js"/>
9+
<dependency path="https://code.jquery.com/ui/1.13.2/jquery-ui.min.js"/>
10+
<dependency path="https://code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css"/>
11+
<dependency path="https://kit.fontawesome.com/d2fb21907d.js"/>
912
</dependencies>
1013
</view>

mGAP/resources/views/quickLinks.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
Ext4.fly(Ext4.query('#currentReleaseDiv')[0]).update(
1515
'<span>Current Release:</span>' +
1616
'<ul class="mgapList">' +
17-
'<li><a href="' + LABKEY.ActionURL.buildURL('mgap', 'variantList', null, {release: releaseId}) + '">Predicted Damaging Variants</a></li>' +
17+
'<li><a href="' + LABKEY.ActionURL.buildURL('mgap', 'variantList', null) + '">Predicted Damaging Variants</a></li>' +
1818
(jbrowseId ? '<li><a href="' + LABKEY.ActionURL.buildURL('jbrowse', 'browser', null, {database: jbrowseId}) + '">Genome Browser (Macaque)</a></li>' : '') +
1919
(humanJbrowseId ? '<li><a href="' + LABKEY.ActionURL.buildURL('jbrowse', 'browser', null, {database: humanJbrowseId}) + '">Genome Browser (Human)</a></li>' : '') +
20-
// '<li><a href="' + LABKEY.ActionURL.buildURL('mgap', 'genomeBrowser', null, {target: 'variantSearch'}) + '">Full-text Variant Search</a></li>' +
20+
'<li><a href="' + LABKEY.ActionURL.buildURL('mgap', 'genomeBrowser', null, {target: 'variantSearch'}) + '">Full-text Variant Search (BETA)</a></li>' +
2121
'</ul>'
2222
);
2323
}

mGAP/resources/views/releaseNotes.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<h4>Release 2.5:</h4>
2+
<ul>
3+
<li>This release includes a major change in how we perform variant annotation, <a href="mgap-annotation.view">described in more detail here.</a></li>
4+
<li>This release includes 107 additional datasets. The total number of variants dropped relative to release 2.4 due to a change in our filtering. Previously, certain conditions would allow a variant to remain in the dataset, even if no subjects had this genotype. After this correction, ~4m sites were removed, although no genotype calls should be changed.</li>
5+
</ul>
6+
17
<h4>Release 2.4:</h4>
28
<ul>
39
<li>This is an additional 470 animals over the prior version. All processing and informatics steps are identical.</li>
@@ -9,7 +15,7 @@ <h4>Release 2.3:</h4>
915
<li>There are a sizable number of data processing changes, largely adaptations to handle the rapidly growing dataset size:</li>
1016
<ol>
1117
<li>All data used <a href="https://gatk.broadinstitute.org/hc/en-us/articles/4405443600667-ReblockGVCF">GATK Reblocked gVCFs</a> as inputs. This reduces processing, but can reduce sensitivity at homozygous-reference sites (resulting in greater numbers of no-call genotypes at homozygous ref sites)</li>
12-
<li>Also to adapt to larger data size, we changed the structure of data processing. Previously, samples were each aggregated into one GenomicsDB workspace per data type (WGS or WXS). Next, GenotypeGVCFs was run on each workspace, with one job per contig. The resulting VCFs were filtered and merged. In this release, the upfront aggregation step was dropped, and we instead: 1) use reblocked gVCFs as input (entire set of samples), 2) chunk the genome into ~1000 bins with one job/bin, 3) per bin, run GenomicsDbImport to make a transient workspace using the job's intervals +/- 1000bp, 4) run GenotypeGVCFs against that workspace, 5) filter the result, including technology-aware thresholds (i.e. different depth filters for WGS/WXS). This process is both considerably more efficient and has the advantage of joint-genotyping across the entire cohort at once.</li>
18+
<li>To adapt to larger data size, we changed the structure of data processing. Previously, samples were each aggregated into one GenomicsDB workspace per data type (WGS or WXS). Next, GenotypeGVCFs was run on each workspace, with one job per contig. The resulting VCFs were filtered and merged. In this release, the upfront aggregation step was dropped, and we instead: 1) use reblocked gVCFs as input (entire set of samples), 2) chunk the genome into ~1000 bins with one job/bin, 3) per bin, run GenomicsDbImport to make a transient workspace using the job's intervals +/- 1000bp, 4) run GenotypeGVCFs against that workspace, 5) filter the result, including technology-aware thresholds (i.e. different depth filters for WGS/WXS). This process is both considerably more efficient and has the advantage of joint-genotyping across the entire cohort at once.</li>
1319
</ol>
1420
</ul>
1521

mGAP/resources/views/requestLogin.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@
5353
name: 'institution',
5454
width: 500,
5555
allowBlank: false
56+
},{
57+
xtype: 'ldk-simplecombo',
58+
labelWidth: 130,
59+
fieldLabel: 'Category',
60+
name: 'category',
61+
width: 500,
62+
allowBlank: false,
63+
storeValues: ['Academic/NPRC', 'Academic/Non-NPRC', 'Foundation', 'Industry', 'Other']
5664
},{
5765
xtype: 'textarea',
5866
labelAlign: 'top',
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<script type="text/javascript">
2+
(function($){
3+
$( document ).ready(function() {
4+
const videos = [{
5+
Title: 'Overview',
6+
src: 'overview',
7+
},{
8+
Title: 'Genome Browser Overview',
9+
src: 'genome-browser',
10+
},{
11+
Title: 'Phenotypes and Phenotype Searches',
12+
src: 'phenotypes-and-models',
13+
},{
14+
Title: 'Using the Variant Table',
15+
src: 'mgap-table-view-tutorial',
16+
}]
17+
18+
// $('#tileview').dxTileView({
19+
// items: videos,
20+
// height: 390,
21+
// baseItemHeight: 120,
22+
// baseItemWidth: 185,
23+
// itemMargin: 10,
24+
// itemTemplate(itemData, itemIndex, itemElement) {
25+
// const $image = $('<div>')
26+
// .addClass('image')
27+
// .css('background-image', `url(${itemData.src})`);
28+
//
29+
// itemElement
30+
// .append(`<div>${itemData.Title}</div>`)
31+
// .append($image);
32+
// },
33+
// });
34+
});
35+
})(jQuery);
36+
</script>
37+
38+
<div id="tileview">Videos will be added shortly</div>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<view xmlns="http://labkey.org/data/xml/view" title="mGAP Tutorials">
2+
<permissions>
3+
<permission name="read"/>
4+
</permissions>
5+
<dependencies>
6+
<dependency path="ldk.context"/>
7+
<dependency path="internal/jQuery"/>
8+
<dependency path="https://code.jquery.com/ui/1.13.2/jquery-ui.min.js"/>
9+
<dependency path="https://code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css"/>
10+
</dependencies>
11+
</view>

0 commit comments

Comments
 (0)