Skip to content

Commit

Permalink
Add custom tracktype
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Feb 26, 2017
1 parent a9c4375 commit 798d631
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Version 0.4.0

- Add track type that ignores null values, fixes issues with View details popup failing to appear

# Version 0.3.0

- Name the specialized queries implemented in 0.2.0 in new category in the test data directory
Expand Down
15 changes: 15 additions & 0 deletions js/View/Track/CanvasFeatures.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
define([
'dojo/_base/declare',
'JBrowse/View/Track/CanvasFeatures',
],
function(
declare,
CanvasFeatures
) {
return declare(CanvasFeatures, {
renderDetailValue: function(parent, title, val, f, class_) {
if(!val) return;
this.inherited(arguments);
}
});
});
2 changes: 1 addition & 1 deletion test/danio/trackList.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"subParts" : [
"exon"
],
"type" : "CanvasFeatures",
"type" : "MyVariantViewer/View/Track/CanvasFeatures",
"label" : "MyGene.info v3"
}
],
Expand Down
4 changes: 2 additions & 2 deletions test/hg19/trackList.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"subParts" : [
"exon"
],
"type" : "CanvasFeatures",
"type" : "MyVariantViewer/View/Track/CanvasFeatures",
"label" : "MyGene.info v3"
},
{
Expand All @@ -17,7 +17,7 @@
"subParts" : [
"exon"
],
"type" : "CanvasFeatures",
"type" : "MyVariantViewer/View/Track/CanvasFeatures",
"label" : "MyGene.info v2"
},
{
Expand Down
4 changes: 2 additions & 2 deletions test/hg38/trackList.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"subParts" : [
"exon"
],
"type" : "CanvasFeatures",
"type" : "MyVariantViewer/View/Track/CanvasFeatures",
"label" : "MyGene.info v3"
},
{
Expand All @@ -15,7 +15,7 @@
"subParts" : [
"exon"
],
"type" : "CanvasFeatures",
"type" : "MyVariantViewer/View/Track/CanvasFeatures",
"label" : "MyGene.info v2"
},
{
Expand Down

0 comments on commit 798d631

Please sign in to comment.