Skip to content

Commit b0263e9

Browse files
authored
Merge pull request #191 from LabKey/fb_merge_23.11_to_develop
Merge discvr-23.11 to develop
2 parents ab6f2ac + dfe582a commit b0263e9

File tree

22 files changed

+283
-43
lines changed

22 files changed

+283
-43
lines changed

LabPurchasing/resources/queries/labpurchasing/referenceItems.js

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,28 @@ var LABKEY = require("labkey");
22
var console = require("console");
33

44
function beforeInsert(row, errors){
5-
// Allow resulting vendorId from name:
6-
if (row.vendorName && !row.vendorId) {
7-
LABKEY.Query.selectRows({
8-
schemaName: 'labpurchasing',
9-
queryName: 'vendors',
10-
columns: 'rowid',
11-
filterArray: [LABKEY.Filter.create('vendorName', row.vendorName)],
12-
sort: '-rowid',
13-
maxRows: 1,
14-
scope: this,
15-
success: function(results) {
16-
if (results.rows.length) {
17-
row.vendorId = results.rows[0].rowId;
5+
// The purpose of this is to allow the user to provide a string value for
6+
// vendorId or vendorName, and attempt to resolve this against known vendors:
7+
if (!row.vendorId || isNaN(row.vendorId)) {
8+
var vendorName = row.vendorName || row.vendorId;
9+
if (vendorName) {
10+
LABKEY.Query.selectRows({
11+
schemaName: 'labpurchasing',
12+
queryName: 'vendors',
13+
columns: 'rowid',
14+
filterArray: [LABKEY.Filter.create('vendorName', vendorName)],
15+
sort: '-rowid',
16+
maxRows: 1,
17+
scope: this,
18+
success: function(results) {
19+
if (results.rows.length) {
20+
row.vendorId = results.rows[0].rowId;
21+
}
22+
else {
23+
console.error("Unable to resolve vendor: " + vendorName);
24+
}
1825
}
19-
else {
20-
console.error("Unable to resolve vendorname: " + row.vendorName);
21-
}
22-
}
23-
})
26+
})
27+
}
2428
}
2529
}

mGAP/resources/views/overview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h4><span style="text-decoration: underline">Short Variant Catalog:</span> <img
3535
<br>
3636
<ul style="padding-top: 10px;">
3737
<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>
38-
<li class="mgap-lucene-link" hidden="hidden">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>
38+
<li class="mgap-lucene-link" hidden="hidden">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>
3939
<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>
4040
<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>
4141
<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>

mGAP/resources/views/releaseNotes.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ <h4>Release 2.5:</h4>
22
<ul>
33
<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>
44
<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+
<li>We introduced an entirely new search feature! The new 'Variant Search' page allows you to perform genome-wide queries based on variant annotations (e.g. predicted coding impact or overlap with databases of human pathogenic variants)</li>
56
</ul>
67

78
<h4>Release 2.4:</h4>

mGAP/resources/web/mGAP/DownloadWindow.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ Ext4.define('mGAP.window.DownloadWindow', {
6868
'<pre>wget https://mgapdownload.ohsu.edu/' + sitesOnlyVcf + '<br>' +
6969
'wget https://mgapdownload.ohsu.edu/' + sitesOnlyVcf + '.tbi</pre>' : '') +
7070
'and genome:<br>' +
71-
'<pre>wget https://mgapdownload.ohsu.edu/' + urlFasta + '<br>' +
72-
'wget https://mgapdownload.ohsu.edu/' + urlFasta + '.fai<br>' +
73-
'wget https://mgapdownload.ohsu.edu/' + urlFasta.replace(/fasta$/, 'dict') + '</pre>'
71+
'<pre>wget https://mgapdownload.ohsu.edu/genomes/' + urlFasta + '<br>' +
72+
'wget https://mgapdownload.ohsu.edu/genomes/' + urlFasta + '.fai<br>' +
73+
'wget https://mgapdownload.ohsu.edu/genomes/' + urlFasta.replace(/fasta$/, 'dict') + '</pre>'
7474
},{
7575
html: '<br><b>mGAP is an NIH funded project. If you use these data in a publication, we ask that you please include R24OD021324 in the acknowledgements.</b>',
7676
border: false,

mGAP/resources/web/mGAP/Utils.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ mGAP.Utils = (function($){
4343
versionLine = '<tr><td>Current Version:</td><td>' + mGAP.Utils.getMGapReleaseVersion() + '</td></tr>';
4444
}
4545
var data0 = map.Counts || {};
46-
$('#' + tableId).html('<table>' + versionLine + '<tr><td>Total Variants:</td><td>' + numberWithCommas(data0.TotalVariants) + '</td></tr><tr><td>Total Animals:</td><td>' + numberWithCommas(data0.TotalSamples) + '</td></tr><tr><td style="padding-right: 20px;">Private Variants:</td><td>' + numberWithCommas(data0.TotalPrivateVariants) + '</td></tr></table>');
46+
$('#' + tableId).html('<table>' + versionLine + '<tr><td>Total Variants:</td><td>' + numberWithCommas(data0.TotalVariants) + '</td></tr><tr><td>Total Animals:</td><td>' + numberWithCommas(data0.TotalSamples) + '</td></tr><tr><td style="padding-right: 20px;">Private Variants:</td><td>' + numberWithCommas(data0.TotalPrivateVariants) + '</td></tr>' +
47+
(data0.TotalVariantsNewInRelease ? '<tr><td style="padding-right: 20px;">Variants New In Release:</td><td>' + numberWithCommas(data0.TotalVariantsNewInRelease) + '</td></tr>' : '') +
48+
'</table>');
4749

4850
var data1 = map.CodingPotential || {};
4951
var codingLabels = ["Exonic", "Downstream<br>Gene", "Upstream<br>Gene", "Intergenic", "Intronic/<br>Non-coding"];
@@ -140,7 +142,7 @@ mGAP.Utils = (function($){
140142
"name": "# Variants",
141143
"mode": "markers",
142144
"x": annotationData,
143-
"y": ["GWAS Associations<br>(GRASP)", "Enhancer Region<br>(FANTOM5)", "Predicted Enhancer<br>(ENCODE)", "Transcription Factor<br>Binding (ENCODE)", "Predicted High<br>Impact (SnpEff)", "Damaging<br>(Polyphen2)", "ClinVar Overlap"],
145+
"y": ["Enhancer Region<br>(FANTOM5)", "Predicted Enhancer<br>(ENCODE)", "Transcription Factor<br>Binding (ENCODE)", "Predicted High<br>Impact (SnpEff)", "Damaging<br>(Polyphen2)", "ClinVar Overlap"],
144146
"type": "bar",
145147
"orientation": "h",
146148
"autobiny": true

mGAP/src/org/labkey/mgap/mGapMaintenanceTask.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ private void checkMGapFiles(Logger log, User u)
121121
try
122122
{
123123
ReferenceGenome rg = SequenceAnalysisService.get().getReferenceGenome(genomeId, u);
124-
checkSymlink(log, rg.getSourceFastaFile(), null, commandsToRun);
125-
checkSymlink(log, new File(rg.getSourceFastaFile().getPath() + ".fai"), null, commandsToRun);
126-
checkSymlink(log, new File(rg.getSourceFastaFile().getPath().replace(".fasta", ".dict")), null, commandsToRun);
124+
checkSymlink(log, rg.getSourceFastaFile(), "genomes", commandsToRun);
125+
checkSymlink(log, new File(rg.getSourceFastaFile().getPath() + ".fai"), "genomes", commandsToRun);
126+
checkSymlink(log, new File(rg.getSourceFastaFile().getPath().replace(".fasta", ".dict")), "genomes", commandsToRun);
127127
}
128128
catch (PipelineJobException e)
129129
{

mcc/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
code meaning origgender
2+
c ovexed (female castrate) f
3+
e male castrate m
4+
f female f
5+
h hermaphrodite
6+
m male m
7+
v vasectomized m
8+
u unknown u

mcc/resources/views/nihReview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
return;
88

99
Ext4.get(webpart.wrapperDivId).update(
10-
'Below are all MCC requests awaiting the final decision. By default this shows only pending requests; however, you can the left-hand \'Views\' button to toggle between this and all requests.' +
10+
'Below are all MCC requests awaiting the final decision. By default this shows only pending requests; however, you can click the left-hand \'Views\' button to toggle between this and all requests.' +
1111
'<p></p>' +
1212
'<a class="labkey-text-link" href="/become-a-user.html#request-animals">Click Here to View Documentation on the Request Process and Scoring Criteria</a>' +
1313
'<br>' +

mcc/resources/views/populateData.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
},{
224224
label: 'Gender Codes',
225225
populateFn: 'populateFromFile',
226-
moduleName: 'ehr',
226+
moduleName: 'mcc',
227227
schemaName: 'ehr_lookups',
228228
queryName: 'gender_codes',
229229
pk: 'rowid'

0 commit comments

Comments
 (0)