Skip to content

Commit 713a888

Browse files
committed
Show the gene product in a mouse-over in panel
Refs pombase/pombase-gocam#138
1 parent f3fd19a commit 713a888

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎gocam_view/templates/gocam_view/index.html‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,15 +860,21 @@
860860
title = "";
861861
}
862862
if (geneInfoMap[id]) {
863-
label = geneInfoMap[id];
863+
title = 'product: ' + geneInfoMap[id].product;
864+
if (geneInfoMap[id].name) {
865+
label = geneInfoMap[id].name;
866+
}
864867
} else {
865868
// very hacky, pombe specific
866869
const bits = id.split('.');
867870
const lastBit = bits.pop();
868871
if (isDigit(lastBit)) {
869872
id = bits.join('.');
870873
if (geneInfoMap[id]) {
871-
label = geneInfoMap[id] + '.' + lastBit;
874+
title = 'product: ' + geneInfoMap[id].product;
875+
if (geneInfoMap[id].name) {
876+
label = geneInfoMap[id].name + '.' + lastBit;
877+
}
872878
}
873879
}
874880
}

0 commit comments

Comments
 (0)