Skip to content

Commit

Permalink
moved nucleotide table out of json and into Util.js directly
Browse files Browse the repository at this point in the history
  • Loading branch information
bhofmei committed Jun 22, 2017
1 parent 0af8d51 commit d719da3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 26 deletions.
28 changes: 21 additions & 7 deletions js/Store/Util.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,36 @@
define('NucleotideDensityPlugin/Store/Util',[
'dojo/_base/declare',
'dojo/_base/array',
'dojo/_base/lang',
'dojo/json',
'dojo/text!plugins/NucleotideDensityPlugin/nucleotide_table.json'
'dojo/_base/lang'
],
function(
declare,
array,
lang,
JSON,
nucleotidetable
lang
){
/*
Utility class dealing with degenerate nucleotide sequences
*/
var Util;
var ntable = JSON.parse(nucleotidetable);

var ntable = {
"A": ["A"],
"C": ["C"],
"G": ["G"],
"T": ["T"],
"U": ["T"],
"R": ["A", "G"],
"Y": ["C", "T"],
"S": ["C", "G"],
"W": ["A", "T"],
"K": ["G", "T"],
"M": ["A", "C"],
"B": ["C", "G", "T"],
"D": ["A", "G", "T"],
"H": ["A", "C", "T"],
"V": ["A", "C", "G"],
"N": ["A", "C", "G", "T"]
}

Util = {

Expand Down
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ return declare( JBrowsePlugin,
var browser = args.browser;

// do anything you need to initialize your plugin here
console.log( "NucleotideDensityPlugin plugin starting" );
console.log( "NucleotideDensityPlugin starting" );
// register new track type

browser.registerTrackType({
Expand Down
18 changes: 0 additions & 18 deletions nucleotide_table.json

This file was deleted.

0 comments on commit d719da3

Please sign in to comment.