Skip to content

Commit a67b824

Browse files
committed
Minor Bug Fixes
1 parent 70dbd90 commit a67b824

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

R/AnalysisFunctions.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,11 @@ evalSigGeneImportance <- function(object){
253253

254254
sigScores <- object@sigScores
255255

256+
if (length(object@sigData) == 0) {
257+
object@SigGeneImportance <- list()
258+
return(object)
259+
}
260+
256261
if (length(sigScores) <= 1){
257262
stop(
258263
sprintf("Signature scores have not yet been computed. `calcSignatureScores` must be run before running `evalSigGeneImportance`")

inst/html_output/src/upper_left_content.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,17 +605,21 @@ Meta_Table.prototype.update = function(updates)
605605
var main_vis = get_global_status('main_vis');
606606
var cluster_var = get_global_status('cluster_var');
607607

608+
var fix_col_label = true
608609
if (main_vis == "clusters") {
609610
matrix_promise = api.clusters.sigProjMatrix(cluster_var, true);
610611
} else if (main_vis === "tree") {
611612
matrix_promise = api.tree.sigProjMatrix(true);
612613
} else {
613614
matrix_promise = api.filterGroup.pCorr(true);
615+
fix_col_label = false
614616
}
615617

616618
matrix_promise = matrix_promise.then(
617619
function(matrix){
618-
matrix.proj_labels[0] = "Score"
620+
if (fix_col_label){
621+
matrix.proj_labels[0] = "Score";
622+
}
619623
self.matrix = matrix
620624
return true
621625
});

0 commit comments

Comments
 (0)