Scissor icon indicating copy to clipboard operation
Scissor copied to clipboard

Error for big dataset

Open xiaoyaohao opened this issue 2 years ago • 9 comments

Hi! Thank you for the nice tools. I was using scissor for a big dataset, it seems the "as.matrix" in "network <- as.matrix(sc_dataset@graphs$RNA_snn)" didn't suit for a big sparse matrix, so I changed the ‘as.matrix’ to suit for big dataset, the matrix I got is the same as using "as.matrix" when the data is not too large. The Omega seems to be right, However, after the 'W=OmegaC(Omega, sgn1); W$loc=W$loc+1', the W seems to be all zeros. In fact I was not familiar with Rcpp, so I was wondering whether there is something like 'as.matrix' in 'OmegaC' which is not suitable for big dataset? Can you help to figure out what happend there, Thanks a lot!

xiaoyaohao avatar Mar 07 '22 03:03 xiaoyaohao

I have the same error

qi-shen avatar Mar 20 '22 01:03 qi-shen

Same issue here.

loganylchen avatar Mar 27 '22 05:03 loganylchen

I have the same error

Maybe you can change "as.matrix" in function "Scissor" as "as_matrix" ,like this: as_matrix.txt scissor_change.txt

you can change the postfix of the two file to .R and source them in R.

If it works, hope you can inform me about it, Thanks.

xiaoyaohao avatar Mar 27 '22 06:03 xiaoyaohao

Same issue here.

Maybe you can try it, If it works, hope you can inform me about it, Thanks.

xiaoyaohao avatar Mar 27 '22 06:03 xiaoyaohao

Hi @xiaoyaohao ,

Thanks for providing help. I am wondering if you could make a PR to fix this issue or you could provide your modified forks?

best,

loganylchen avatar Mar 27 '22 07:03 loganylchen

I have the same error

Maybe you can change "as.matrix" in function "Scissor" as "as_matrix" ,like this: as_matrix.txt scissor_change.txt

you can change the postfix of the two file to .R and source them in R.

If it works, hope you can inform me about it, Thanks.

I encountered the same issue and reported it here. I tried the code and it worked. Thanks!

Best, Jianxiang

jxshi avatar Apr 20 '22 06:04 jxshi

I have the same error

Maybe you can change "as.matrix" in function "Scissor" as "as_matrix" ,like this: as_matrix.txt scissor_change.txt

you can change the postfix of the two file to .R and source them in R.

If it works, hope you can inform me about it, Thanks.

I tried this, still does not work.

Shubhra1994 avatar Aug 02 '22 15:08 Shubhra1994

我有同样的错误

也许您可以将函数“Scissor”中的“as.matrix”更改为“as_matrix”,如下所示: as_matrix.txt scissor_change.txt

您可以将两个文件的后缀更改为 .R 并在 R 中获取它们。

如果可行,希望您能告诉我,谢谢。

I tried this method and still got the error.

chenx9 avatar Sep 02 '22 02:09 chenx9