From 37ceea37ce6be58f65c15656d65cd8379ba60afb Mon Sep 17 00:00:00 2001 From: Jeremy Goecks Date: Mon, 14 Jul 2014 14:07:04 -0400 Subject: [PATCH] Visualization bug fixes. --- lib/galaxy/webapps/galaxy/api/datasets.py | 2 +- static/scripts/viz/trackster/painters.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/webapps/galaxy/api/datasets.py b/lib/galaxy/webapps/galaxy/api/datasets.py index 3f4ed81b765..c2284d98157 100644 --- a/lib/galaxy/webapps/galaxy/api/datasets.py +++ b/lib/galaxy/webapps/galaxy/api/datasets.py @@ -194,7 +194,7 @@ class DatasetsController( BaseAPIController, UsesVisualizationMixin, UsesHistory max_vals = data_provider.get_default_max_vals() # Get reference sequence and mean depth for region; these is used by providers for aligned reads. - ref_seq = None + region = None mean_depth = None if isinstance( data_provider, (SamDataProvider, BamDataProvider ) ): # Get reference sequence. diff --git a/static/scripts/viz/trackster/painters.js b/static/scripts/viz/trackster/painters.js index de047ed20e2..ad86a11cf1e 100644 --- a/static/scripts/viz/trackster/painters.js +++ b/static/scripts/viz/trackster/painters.js @@ -1462,6 +1462,7 @@ extend(VariantPainter.prototype, Painter.prototype, { if (num_samples === 1) { row_height = feature_height = (w_scale < ctx.canvas.manager.char_width_px ? this.prefs.summary_height : row_height); + paint_utils.row_height = row_height; // No summary when there's a single sample. draw_summary = false; }