forked from BimberLab/DiscvrLabKeyModules
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathreadsetDetails.html
More file actions
76 lines (67 loc) · 2.84 KB
/
readsetDetails.html
File metadata and controls
76 lines (67 loc) · 2.84 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
<script type="text/javascript" nonce="<%=scriptNonce%>">
Ext4.onReady(function (){
var readsetId = LABKEY.ActionURL.getParameter('id');
if (!readsetId){
alert('Must Provide Readset Id');
return;
}
var webpart = <%=webpartContext%>;
Ext4.get(webpart.wrapperDivId).update(
'<div id="readsetDetails_'+webpart.wrapperDivId+'"></div>' +
'<br>' +
'<div id="files_'+webpart.wrapperDivId+'"></div>' +
'<br>' +
'<div id="analyses_'+webpart.wrapperDivId+'"></div>' +
'<br>' +
'<div id="metricsSummary_'+webpart.wrapperDivId+'"></div>' +
'<br>' +
'<div id="readsetSummary_'+webpart.wrapperDivId+'"></div>'
);
Ext4.create('LDK.panel.DetailsPanel', {
title: 'Readset Details',
renderTo: 'readsetDetails_'+webpart.wrapperDivId,
showBackBtn: false,
store: {
schemaName: 'sequenceanalysis',
queryName: 'sequence_readsets',
containerPath: Laboratory.Utils.getQueryContainerPath(),
filterArray: [LABKEY.Filter.create('rowid', readsetId, LABKEY.Filter.Types.EQUAL)]
},
detailsConfig: {
buttons: [{
text: 'More Actions',
menu: [{
text: 'Edit Details',
href: LABKEY.ActionURL.buildURL('ldk', 'manageRecord', null, {schemaName: 'sequenceanalysis', queryName: 'sequence_readsets', keyField: 'rowid', key: readsetId}) + '&returnUrl=' + LDK.Utils.getReturnUrl()
}]
}]
}
});
LDK.Utils.getBasicQWP({
title: 'Read Data',
schemaName: 'sequenceanalysis',
queryName: 'readData',
containerPath: Laboratory.Utils.getQueryContainerPath(),
//columns: 'rowid,data,role,data/downloadlink',
filterArray: [LABKEY.Filter.create('readset', readsetId, LABKEY.Filter.Types.EQUAL)]
}).render('files_'+webpart.wrapperDivId);
LDK.Utils.getReadOnlyQWP({
title: 'Analyses Using This Readset',
schemaName: 'sequenceanalysis',
queryName: 'sequence_analyses',
maxRows: 10,
containerPath: Laboratory.Utils.getQueryContainerPath(),
//columns: 'rowid,data,role,data/downloadlink',
filterArray: [LABKEY.Filter.create('readset', readsetId, LABKEY.Filter.Types.EQUAL)]
}).render('analyses_'+webpart.wrapperDivId);
LDK.Utils.getReadOnlyQWP({
title: 'Quality Metrics',
schemaName: 'sequenceanalysis',
queryName: 'quality_metrics',
maxRows: 10,
containerPath: Laboratory.Utils.getQueryContainerPath(),
columns: 'fileid,metricname,metricvalue,qualvalue,comment,workbook,readset,runid',
filterArray: [LABKEY.Filter.create('readset', readsetId, LABKEY.Filter.Types.EQUAL)]
}).render('metricsSummary_'+webpart.wrapperDivId);
});
</script>