ssGSEA2.0 icon indicating copy to clipboard operation
ssGSEA2.0 copied to clipboard

bug in combine mode

Open yksaito opened this issue 5 years ago • 2 comments

Hi, I want to run ssGSEA with "combine.add" mode. I modified ssgsea-gui.R to add combine.mode parameter.

## run ssGSEA
    gsea.res <- ssGSEA2(input.ds, ...   , combine.mode= "combine.add")

But this gives an error.

Error in matrix(ol.matrix.2[locs, ], nrow = length(locs)) :
  object 'ol.matrix.2' not found

I don't see any error without combine.mode parameter. I wonder it might be a bug?

yksaito avatar Aug 22 '19 11:08 yksaito

Yes, this is a bug. I did not pay much attention to the "combine.mode"-parameter when re-implementing parts of the original ssGSEA code. I will certainly look into this. Thanks, K

karstenkrug avatar Aug 27 '19 15:08 karstenkrug

Hello,

The same error here.

I found out that the ol.matrix.2 is defined before the problematic line only when the combine mode is off.

In the other cases, ol.matrix.2 is not defined at all

Hope it helps

JYLeeBioinfo avatar Apr 08 '21 07:04 JYLeeBioinfo