corbinq / apex

Toolkit for QTL mapping and meta-analysis.
https://corbinq.github.io/apex/
16 stars 1 forks source link

Clearer error message needed for Apex factor #11

Open hsun3163 opened 2 years ago

hsun3163 commented 2 years ago

Hi, When testing the Apex factor function, I encountered the following error:

Using 48 threads.
21,22 present in file.
Found 528samples in covariate file ...
Found 528 samples in expression bed file ...
Processed data for 2 covariates across 528samples.
Processed expression for 6 genes across 528 samples.
Scaling expression traits ...
Estimating latent factors ...
Done.
apex: /mnt/c/Users/Admin/Desktop/eQTL_TOOL/CODE/eigen/Eigen/src/Core/DenseBase.h:262: void Eigen::DenseBase<Derived>::resize(Eigen::Index, Eigen::Index) [with Derived = Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>; Eigen::Index = long int]: Assertion `rows == this->rows() && cols == this->cols() && "DenseBase::resize() does not actually allow to resize."' failed.

Killed.

The testing cov file is a 2*sample_size matrix of 0.5, in addition to the "#id" column

The format is correct for it successfully ran on other sets of expression data. I wonder what is causing the issue and how shall I avoid it?