Visualization bug fixes.

This commit is contained in:
Jeremy Goecks
2014-07-14 14:07:04 -04:00
parent 52d39f27d5
commit 37ceea37ce
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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.
+1
View File
@@ -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;
}