Skip to content

Commit

Permalink
Merge pull request #24 from agduncan94/feature/html-features
Browse files Browse the repository at this point in the history
change to html features
  • Loading branch information
agduncan94 authored Oct 29, 2019
2 parents 9cb9078 + 722d894 commit 8b8f2d5
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Example Track:
```
[tracks.GDC_Genes]
storeClass=gdc-viewer/Store/SeqFeature/Genes
type=JBrowse/View/Track/CanvasVariants
type=JBrowse/View/Track/GeneTrack
key=GDC Genes
metadata.datatype=Gene
unsafePopup=true
Expand All @@ -114,7 +114,7 @@ Example Track:
```
[tracks.GDC_SSM]
storeClass=gdc-viewer/Store/SeqFeature/SimpleSomaticMutations
type=gdc-viewer/View/Track/CanvasVariants
type=gdc-viewer/View/Track/SSMVariants
key=GDC SSM
metadata.datatype=SSM
unsafePopup=true
Expand Down
4 changes: 2 additions & 2 deletions data/tracks.conf
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[tracks.GDC_SSM]
storeClass=gdc-viewer/Store/SeqFeature/SimpleSomaticMutations
type=gdc-viewer/View/Track/CanvasVariants
type=gdc-viewer/View/Track/SSMTrack
key=GDC SSM
metadata.datatype=SSM
unsafePopup=true

[tracks.GDC_Genes]
storeClass=gdc-viewer/Store/SeqFeature/Genes
type=gdc-viewer/View/Track/CanvasVariants
type=gdc-viewer/View/Track/GeneTrack
key=GDC Genes
metadata.datatype=Gene
unsafePopup=true
Expand Down
2 changes: 1 addition & 1 deletion gdc-viewer/js/View/GDCDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ function (
},

/**
* Creates pagination buttons for search results in the given 'holder' using the 'pagination' object from the ICGC response
* Creates pagination buttons for search results in the given 'holder' using the 'pagination' object from the GDC response
* @param {object} holder DOM location to place pagination buttons
* @param {number} totalPages the total number of pages for the given query results
* @param {string} type the type of results to create pagination button for
Expand Down
2 changes: 1 addition & 1 deletion gdc-viewer/js/View/GDCProjectDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ function (
},

/**
* Creates pagination buttons for search results in the given 'holder' using the 'pagination' object from the ICGC response
* Creates pagination buttons for search results in the given 'holder' using the 'pagination' object from the GDC response
* @param {number} totalPages total number of pages
*/
createPaginationButtons: function(totalPages) {
Expand Down
8 changes: 4 additions & 4 deletions gdc-viewer/js/View/Track/GeneTrack.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
define(
[
"dojo/_base/declare",
"JBrowse/View/Track/CanvasFeatures",
"JBrowse/View/Track/HTMLFeatures",
'JBrowse/View/Track/_ExportMixin',
'dojo/dom-construct'
],
function(
declare,
CanvasFeatures,
HTMLFeatures,
ExportMixin,
domConstruct) {
return declare([ CanvasFeatures, ExportMixin ], {
return declare([ HTMLFeatures, ExportMixin ], {

_exportFormats: function() {
return [
{name: 'gdc-viewer/View/Export/GFF3', label: 'GFF3', fileExt: 'gff3'},
{name: 'gdc-viewer/View/Export/BED', label: 'BED', fileExt: 'bed'},
{name: 'gdc-viewer/View/Export/CSV', label: 'CSV', fileExt: 'csv'},
{name: 'icgc-viewer/View/Export/SequinTable', label: 'Sequin Table', fileExt: 'sqn'},
{name: 'gdc-viewer/View/Export/SequinTable', label: 'Sequin Table', fileExt: 'sqn'},
{name: 'gdc-viewer/View/Export/TrackConfig', label: 'Track Config', fileExt: 'conf'},
{name: 'gdc-viewer/View/Export/TrackConfigJson', label: 'Track Config JSON', fileExt: 'json'}
];
Expand Down
8 changes: 4 additions & 4 deletions gdc-viewer/js/View/Track/SSMTrack.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
define(
[
"dojo/_base/declare",
"JBrowse/View/Track/CanvasFeatures",
"JBrowse/View/Track/HTMLFeatures",
'JBrowse/View/Track/_ExportMixin',
'dojo/dom-construct'
],
function(
declare,
CanvasFeatures,
HTMLFeatures,
ExportMixin,
domConstruct) {
return declare([ CanvasFeatures, ExportMixin ], {
return declare([ HTMLFeatures, ExportMixin ], {

_exportFormats: function() {
return [
{name: 'gdc-viewer/View/Export/GFF3', label: 'GFF3', fileExt: 'gff3'},
{name: 'gdc-viewer/View/Export/BED', label: 'BED', fileExt: 'bed'},
{name: 'gdc-viewer/View/Export/CSV', label: 'CSV', fileExt: 'csv'},
{name: 'icgc-viewer/View/Export/SequinTable', label: 'Sequin Table', fileExt: 'sqn'},
{name: 'gdc-viewer/View/Export/SequinTable', label: 'Sequin Table', fileExt: 'sqn'},
{name: 'gdc-viewer/View/Export/TrackConfig', label: 'Track Config', fileExt: 'conf'},
{name: 'gdc-viewer/View/Export/TrackConfigJson', label: 'Track Config JSON', fileExt: 'json'}];
},
Expand Down

0 comments on commit 8b8f2d5

Please sign in to comment.