xihaoli / STAARpipeline

An R package for performing association analysis of whole-genome/whole-exome sequencing (WGS/WES) studies using STAARpipeline
GNU General Public License v3.0
61 stars 20 forks source link

SCANG error in class(genotype)=="dgCMatrix" Rversion 4.2.0 #1

Closed GeorgeKoliopanos closed 2 years ago

GeorgeKoliopanos commented 2 years ago

Trying to use Dynamic_Window_SCANG.r function I run into an error come from comparison class(genotype)=="dgCMatrix". While, going deeper into this I found that the problem is that genotype object (= Geno) has two classes "matrix" "array" and the comparison cannot be done. The issue with the two classes, appears after R version 4.0.0 (https://cran.r-project.org/doc/manuals/r-release/NEWS.html).

xihaoli commented 2 years ago

Hi George,

Thank you for the information. We have fixed this issue in the SCANG package accordingly.

Best, Xihao