File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff 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`" )
Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments