popgenDK / SATC

Sex assignment through coverage
17 stars 10 forks source link

Error in rowMeans(mat_first[noNArow, ]) : #8

Open DexinBo opened 2 years ago

DexinBo commented 2 years ago

Hello, I am very interested in your software package and intend to do some analysis, but I have encountered some errors, which do not exist in the example file. I use rscript to run, and the error information is as follows:

Running SATC with following parameters:

        infile: idx-list 
        outprefix: hg5 
        K: 2 
        model: hclust 
        minLength: 1e+05 
        M: 3 
        normScaffolds: 
        useMedian: FALSE 

Read 1 item
Error in rowMeans(mat_first[noNArow, ]) : 
  'x' must be an array of at least two dimensions
Calls: satc -> sexDetermine -> rowMeans
Execution halted

and dim(idx[[1]]) [1] 243 4 dim(rFilt[[1]]) [1] 213 6

May you give me some solutions to this error, thank you!

AnnaBrunicheOlsen commented 2 years ago

Hi, This error has been addressed in a previous question: https://github.com/popgenDK/SATC/issues/3 Thanks