commit/galaxy-central: jgoecks: Better handling of reference data in Trackster read tracks.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/5c7333bb427f/ changeset: 5c7333bb427f user: jgoecks date: 2011-10-18 01:57:54 summary: Better handling of reference data in Trackster read tracks. affected #: 1 file (-1 bytes) --- a/static/scripts/trackster.js Mon Oct 17 17:41:10 2011 -0400 +++ b/static/scripts/trackster.js Mon Oct 17 19:57:54 2011 -0400 @@ -4375,7 +4375,7 @@ var ReadPainter = function(data, view_start, view_end, prefs, mode, alpha_scaler, height_scaler, ref_seq) { FeaturePainter.call(this, data, view_start, view_end, prefs, mode, alpha_scaler, height_scaler); - this.ref_seq = ref_seq; + this.ref_seq = (ref_seq ? ref_seq.data : null); }; ReadPainter.prototype.default_prefs = extend({}, FeaturePainter.prototype.default_prefs, { show_insertions: false }); @@ -4410,8 +4410,7 @@ tile_region = [tile_low, tile_high], base_offset = 0, seq_offset = 0, - gap = 0 - ref_seq = this.ref_seq.data, + gap = 0, char_width_px = ctx.canvas.manager.char_width_px; // Keep list of items that need to be drawn on top of initial drawing layer. @@ -4465,8 +4464,8 @@ // TODO: this can be made much more efficient by computing the complete sequence // to draw and then drawing it. for (var c = 0, str_len = seq.length; c < str_len; c++) { - if (this.prefs.show_differences && ref_seq) { - var ref_char = ref_seq[seq_start - tile_low + c]; + if (this.prefs.show_differences && this.ref_seq) { + var ref_char = this.ref_seq[seq_start - tile_low + c]; if (!ref_char || ref_char.toLowerCase() === seq[c].toLowerCase()) { continue; } Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket