diff --git a/package-lock.json b/package-lock.json
index 5588120e..fb4cd611 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "grnsight",
- "version": "3.1.0",
+ "version": "3.1.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index 01b74863..f78f4c84 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "grnsight",
- "version": "3.1.0",
+ "version": "3.1.3",
"description": "Web app and service for visualizing models of gene regulatory networks",
"directories": {
"test": "test"
diff --git a/web-client/public/gene/api.js b/web-client/public/gene/api.js
index 602df21e..5463144d 100644
--- a/web-client/public/gene/api.js
+++ b/web-client/public/gene/api.js
@@ -257,7 +257,14 @@ var parseGeneOntology = function (data) {
};
for (var k = 0; k < data.length; k++) {
- if ((k > 0) && (data[k].go.go_id !== data[k - 1].go.go_id)) {
+ var isUnique = true;
+ for (var len = 0; len < k; len++) {
+ if (data[k].go.go_id === data[len].go.go_id) {
+ isUnique = false;
+ }
+ }
+
+ if (isUnique) {
switch (data[k].go.go_aspect ) {
case "molecular function":
goTemplate.molecularFunction[goTemplate.molecularFunction.length] = {
@@ -282,6 +289,7 @@ var parseGeneOntology = function (data) {
break;
}
}
+
}
for (var prop in goTemplate) {
diff --git a/web-client/public/gene/info.css b/web-client/public/gene/info.css
index f59ce2a9..3b2841d9 100644
--- a/web-client/public/gene/info.css
+++ b/web-client/public/gene/info.css
@@ -128,6 +128,7 @@ sup {
#mainPage {
z-index: 0;
+ min-height: 500px;
}
#pageHead {
diff --git a/web-client/public/gene/info.js b/web-client/public/gene/info.js
index 4c04018a..2dff32cb 100644
--- a/web-client/public/gene/info.js
+++ b/web-client/public/gene/info.js
@@ -148,8 +148,8 @@
$(".molecularFunction").append("
");
for (let k = 0; k < molecularFunction.length; k++) {
link = "https://www.yeastgenome.org" + molecularFunction[k].link;
- $(".molecularFunctionTable").append("" + molecularFunction[k].id + "");
+ $(".molecularFunctionTable").append("" + molecularFunction[k].id + "");
$(".molecularFunctionTable").append(""
+ molecularFunction[k].displayName + "");
}
@@ -158,8 +158,8 @@
$(".biologicalProcess").append("
");
for (let k = 0; k < biologicalProcess.length; k++) {
link = "https://www.yeastgenome.org" + biologicalProcess[k].link;
- $(".biologicalProcessTable").append("" + biologicalProcess[k].id + "");
+ $(".biologicalProcessTable").append("" + biologicalProcess[k].id + "");
$(".biologicalProcessTable").append(""
+ biologicalProcess[k].displayName + "");
}
@@ -168,8 +168,8 @@
$(".cellularComponent").append("
");
for (let k = 0; k < cellularComponent.length; k++) {
link = "https://www.yeastgenome.org" + cellularComponent[k].link;
- $(".cellularComponentTable").append("" + cellularComponent[k].id + "");
+ $(".cellularComponentTable").append("" + cellularComponent[k].id + "");
$(".cellularComponentTable").append(""
+ cellularComponent[k].displayName + "");
}
diff --git a/web-client/views/info.jade b/web-client/views/info.jade
index 1ea50bc9..eb283d12 100644
--- a/web-client/views/info.jade
+++ b/web-client/views/info.jade
@@ -116,20 +116,20 @@ html
//dt.col-sm-3 Targets:
//dd.targets.col-sm-9
dt.col-sm-3 Sequence Logo:
- dd.col-sm-9
+ dd.col-sm-9.jasparSource
img.sequenceLogo(src='')
dt.col-sm-3 Frequency Matrix:
- dd.col-sm-9
+ dd.col-sm-9.jasparSource
table.frequencyMatrix.table.table-dark.table-striped
thead
- tr.frequencyOfA
+ tr.frequencyOfA.jasparSource
th A:
tbody
- tr.frequencyOfC
+ tr.frequencyOfC.jasparSource
th C:
- tr.frequencyOfG
+ tr.frequencyOfG.jasparSource
th G:
- tr.frequencyOfT
+ tr.frequencyOfT.jasparSource
th T:
//