-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.html
More file actions
89 lines (86 loc) · 3.97 KB
/
config.html
File metadata and controls
89 lines (86 loc) · 3.97 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
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="/site_media/jquery/js/jquery-1.6.1.min.js"></script>
<style type="text/css">
#formwrap {
line-height: 2em;
background: #eef;
margin: 10px;
padding: 10px;
height: 500px;
}
body {
font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
}
.center { margin-left:auto; margin-right:auto; }
.help {cursor:help; border-bottom: 1px dotted #A9A9A9}
</style>
<script>
$(function() {
function populateLibType(selectorID) {
$('#'+selectorID).empty();
var runtypeUrl = '/rundb/api/v1/content/?format=json';
var files=[];
$.get( runtypeUrl, function(data) {
$.each( data.objects, function(intIndex, result){
//var bedfile = result.name;
//var type = result.upload_type;
var file_path = result.file;
var bedfile = file_path.split('/')[8];
if (files.indexOf(bedfile) <0) {
if (selectorID == "exonicregions") {
if (file_path.includes("exonic") && file_path.includes("detail")) {
$('#' + selectorID).append("<option value='" + file_path + "'>" + bedfile + "</option>");
files.push(bedfile);
}
}
if (selectorID == "targetregions") {
if (!bedfile.includes("exonic") && file_path.includes("detail")) {
$('#' + selectorID).append("<option value='" + file_path + "'>" + bedfile + "</option>");
files.push(bedfile);
}
}
}
});
});
}
// populate Library Type selector
populateLibType("targetregions");
populateLibType("exonicregions");
});
</script>
</head>
<body>
<form id="gapsInCoverage" name="gapsInCoverage">
<div style="text-align:center">
<h1>Gaps in Coverage Plugin</h1>
</div>
<table class="center" cellpadding="5px">
<tr id="targetselect">
<td><span class="help"
title="Select the target regions (ROI) matching your reference and enriched fragment library">
Targeted Regions:</span></td>
<td><select id="targetregions" name="targetregions"><option value="">None</option></select></td> </tr>
<tr id="exonselect">
<td><span class="help"
title="Select a BED file containing the exonic co-ordinates within target regions">
Exonic Regions:</span></td>
<td><select id="exonicregions" name="exonicregions"></select></td> </tr>
<tr id="introncov">
<td><span class="help"
title="Specify the minimum number of reads for which a base in an intron is considered sufficiently covered. Bases with coverage below this value will be considered 'gaps'">
Min. Intron Coverage:</span></td>
<td><input type="text" size=6 id="minintroncov" name="minintroncov" value=30></select></td> </tr>
<tr id="exoncov">
<td><span class="help"
title="Specify the minimum number of reads in exon regions for which a base is considered sufficiently covered. Bases with coverage below this value will be considered 'gaps'">
Min. Exon Coverage:</span></td>
<td><input type="text" size=6 id="minexoncov" name="minexoncov" value=50></select></td> </tr>
</table>
</form>
</body>
</html>