sunduanchen / Scissor

Scissor package
GNU General Public License v3.0
169 stars 30 forks source link

Error in Scissor #11

Closed l-magnificence closed 2 years ago

l-magnificence commented 2 years ago

When I run Scissor function

res <- Scissor(as.matrix(expr), tumor, phenotype, tag = tag, alpha = 0.5, 
                  family = "binomial", Save_file = "Scissor.RData")

error occurs

[1] "|**************************************************|"
[1] "Performing quality-check for the correlations"
[1] "The five-number summary of correlations:"
       0%       25%       50%       75%      100% 
0.3108529 0.5483579 0.5681650 0.5868047 0.6772004 
[1] "|**************************************************|"
[1] "Current phenotype contains 7 No and 7 Yes samples."
[1] "Perform logistic regression on the given phenotypes:"
Error in matrix(NA, nrow = nfolds, ncol = numi2) : 
  invalid 'ncol' value (too large or NA)
In addition: Warning messages:
1: In matrix(sapply(outi, function(x) { :
  data length [10] is not a sub-multiple or multiple of the number of rows [18023]
2: In matrix(sapply(outi, function(x) { :
  data length [10] is not a sub-multiple or multiple of the number of rows [18023]

What happen in it? How to fix it?