stephens999 / ashr

An R package for adaptive shrinkage
GNU General Public License v3.0
79 stars 35 forks source link

control contains unknown parameter #126

Open msarguru opened 3 years ago

msarguru commented 3 years ago

Hi Stephen,

Running the example lines for ashr using "ash" function, throws the following error. Sessioninfo below. Planning to use ashr on GWAS summary stat. Looking forward to hear your suggestions. Many thanks ++

Error in mixsqp::mixsqp(A, w, pi_init, control = control) : 
  Argument "control" contains unknown parameter names
beta = c(rep(0,100),rnorm(100))
sebetahat = abs(rnorm(200,0,1))
betahat = rnorm(200,beta,sebetahat)
beta.ash = ash(betahat, sebetahat)
SESSIONINFO
other attached packages:
[1] devtools_2.3.0 usethis_1.6.1  ashr_2.2-51   

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.6        magrittr_1.5      pkgload_1.0.2     SQUAREM_2021.1   
 [5] lattice_0.20-41   R6_2.4.1          rlang_0.4.10      fansi_0.4.1      
 [9] tools_3.6.1       pkgbuild_1.2.0    grid_3.6.1        sessioninfo_1.1.1
[13] cli_2.0.2         invgamma_1.1      withr_2.4.1       remotes_2.2.0    
[17] ellipsis_0.3.1    rprojroot_1.3-2   assertthat_0.2.1  digest_0.6.25    
[21] crayon_1.3.4      processx_3.5.0    mixsqp_0.3-43     Matrix_1.2-18    
[25] callr_3.5.1       fs_1.4.1          ps_1.3.2          curl_4.3         
[29] testthat_2.3.2    memoise_1.1.0     glue_1.4.1        compiler_3.6.1   
[33] backports_1.1.7   desc_1.2.0        prettyunits_1.1.1 truncnorm_1.0-8  
pcarbo commented 3 years ago

@msarguru Can you please try installing the latest version of mixsqp available here? Does that fix the issue?

msarguru commented 3 years ago

@pcarbo Thank you very much, this resolved the issue...