Skip to content
Snippets Groups Projects
Commit 0c68ad89 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Add cell group filter for Pd deep

parent 9548413c
Branches
Tags
2 merge requests!28Develop,!27Add cell group filter for Pd deep
Pipeline #5766 passed with stages
in 11 seconds
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
.columnS { .columnS {
float: left; float: left;
text-align: center; text-align: center;
width: 50%; width: 33.33%;
} }
.columnF { .columnF {
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
height: auto; height: auto;
} }
@media (max-width: 1000px) { @media (max-width: 1250px) {
.columnS { .columnS {
text-align: right; text-align: right;
width: 100%; width: 100%;
...@@ -75,14 +75,25 @@ ...@@ -75,14 +75,25 @@
</label> </label>
<br> <br>
<select name="populations" id="populations"> <select name="populations" id="populations">
<option selected="selected" value="Population"> Cell Populations</option> <option selected="selected" value="Population">Cell Populations</option>
<option>Lineage</option> <option>Lineage</option>
<option value="Zone">Prostatic Zone</option> <option value="Zone">Prostatic Zone</option>
<option>Patient</option> <option>Patient</option>
</select> </select>
</div> </div>
<div class="columnS">
<label for="group" style="font-size:18px;">
<b>Select a group of cell to display:</b>
</label>
<br>
<select name="group" id="group">
<option selected="selected" value="all">All Cells</option>
<option value="epi">Epithelia Only</option>
<option value="st">Stroma Only</option>
</select>
</div>
<br> <br>
<div style="text-align:center"> <div style="text-align:left">
<button type="submit" id="analysis" class="btn btn-primary">Run Analysis</button> <button type="submit" id="analysis" class="btn btn-primary">Run Analysis</button>
</div> </div>
<hr> <hr>
...@@ -101,6 +112,7 @@ ...@@ -101,6 +112,7 @@
<div align="center"> <div align="center">
<h1 id="label.gene">NO GENE SELECTED</h1> <h1 id="label.gene">NO GENE SELECTED</h1>
<h2 id="label.populations"></h2> <h2 id="label.populations"></h2>
<h3 id="label.group"></h3>
<div class="columnF"> <div class="columnF">
<h4 id="label.ClusterVis"> <h4 id="label.ClusterVis">
</h3> </h3>
...@@ -157,6 +169,9 @@ ...@@ -157,6 +169,9 @@
$(function () { $(function () {
$("#populations").selectmenu({ width: 230 }); $("#populations").selectmenu({ width: 230 });
}); });
$(function () {
$("#group").selectmenu({ width: 230 });
});
$(function () { $(function () {
var genes = {{ index .Site.Data.sc_data.hu_donor_pr_deep.genes }}; var genes = {{ index .Site.Data.sc_data.hu_donor_pr_deep.genes }};
var selectedGene = $("#gene").autocomplete({ var selectedGene = $("#gene").autocomplete({
...@@ -176,15 +191,16 @@ ...@@ -176,15 +191,16 @@
} }
document.getElementById("label.gene").innerHTML = _gene document.getElementById("label.gene").innerHTML = _gene
document.getElementById("label.populations").innerHTML = "Separated by " + $("#populations").val().toUpperCase() document.getElementById("label.populations").innerHTML = "Separated by " + $("#populations").val().toUpperCase()
document.getElementById("label.group").innerHTML = $("#group").val().toUpperCase() + " CELLS"
document.getElementById("label.ClusterVis").innerHTML = "Cluster Visualization" document.getElementById("label.ClusterVis").innerHTML = "Cluster Visualization"
var img = document.getElementById("img.ClusterVis"); var img = document.getElementById("img.ClusterVis");
img.src = "https://s3.us-east-2.amazonaws.com/data.images.gse117403.deep/images/" + $("#populations").val() + "/umap.png" img.src = "https://s3.us-east-2.amazonaws.com/data.images.gse117403.deep/" + $("#group").val() + "/images/" + $("#populations").val() + "/umap.png"
document.getElementById("label.Feature").innerHTML = "Feature Plot" document.getElementById("label.Feature").innerHTML = "Feature Plot"
var img = document.getElementById("img.Feature"); var img = document.getElementById("img.Feature");
img.src = "https://s3.us-east-2.amazonaws.com/data.images.gse117403.deep/images/umap/" + "genes/" + _gene + "_1.png" img.src = "https://s3.us-east-2.amazonaws.com/data.images.gse117403.deep/" + $("#group").val() + "/images/umap/" + "genes/" + _gene + "_1.png"
document.getElementById("label.ViolinBox").innerHTML = "Violin Box Plot" document.getElementById("label.ViolinBox").innerHTML = "Violin Box Plot"
var img = document.getElementById("img.ViolinBox"); var img = document.getElementById("img.ViolinBox");
img.src = "https://s3.us-east-2.amazonaws.com/data.images.gse117403.deep/images/ViolinBox/" + $("#populations").val() + "/genes/" + _gene + "_1.png" img.src = "https://s3.us-east-2.amazonaws.com/data.images.gse117403.deep/" + $("#group").val() + "/images/ViolinBox/" + $("#populations").val() + "/genes/" + _gene + "_1.png"
return (_gene) return (_gene)
}); });
</script> </script>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment