Closed nzx9581 closed 8 months ago
Hi!
Firstly, thank you so much for providing this great tool to us. After using eNet for several days, I found some errors in your codes which could result in incorrect results.
- GPTab is null The same problem was mentioned before GPTab is NULL #8. I checked your code in
utils.R
, and it seems that thedata.shuf
atline 223
is adgCMatrix
but not adata.table
, however,with=F
only can be used fordata.table
object. People can get the result if removingwith=F
- Incorrect use of variables You defined this function at
line 155
and assignedGPTabFilt
toGPTab
. But you incorrectly callGPTabFilt
instead ofGPTab
atline 165
within theBuildNetwork
function, which could lead to weird results because 1) ifGPTabFilt
does not exist, the function could generate an error; 2) ifGPTabFilt
exits in your environment, the function will call this variable instead of the variable you define. So, the code atline 165
should begenes <- unique(GPTab$Gene)
. The same error is also found inline 173, line 202, line 213
.
Hello, Zhixin. Thank you for your great suggestions. First, in line 223 of utils.R, we intended to use the sample() function to shuffle the order of cells. However, we mistakenly used the parameter 'with=F'. Although this does not affect the results, we will remove this parameter. Regarding the issue mentioned in https://github.com/xmuhuanglab/eNet/issues/8 earlier, I think it may be due to unsuccessful library of certain packages because when I repeated the analysis using the same code, I was able to obtain non-NULL results. Secondly, you are right about the problem with variable GPTabFilt; we will make sure to change its name accordingly.
Dear Hongli, Thank you for correcting them. I will close this issue. Best, Zhixin
Hi!
Firstly, thank you so much for providing this great tool to us. After using eNet for several days, I found some errors in your codes which could result in incorrect results.
utils.R
, and it seems that thedata.shuf
atline 223
is adgCMatrix
but not adata.table
, however,with=F
only can be used fordata.table
object. People can get the result if removingwith=F
line 155
and assignedGPTabFilt
toGPTab
. But you incorrectly callGPTabFilt
instead ofGPTab
atline 165
within theBuildNetwork
function, which could lead to weird results because 1) ifGPTabFilt
does not exist, the function could generate an error; 2) ifGPTabFilt
exits in your environment, the function will call this variable instead of the variable you define. So, the code atline 165
should begenes <- unique(GPTab$Gene)
. The same error is also found inline 173, line 202, line 213
.