Closed gaow closed 3 years ago
@gaow @willwerscheid I'm not sure what the solution is here, but the issue is that you are calling ebnm_pn
with ebnm_param$g$pi = c(1,0)
, which doesn't make much sense. If I set ebnm_param$g$pi = c(0.9999,0.0001)
instead it works fine.
For the record, the error occurs in this line in function flashr::calc_update_vals
:
a = do.call(ebnm_fn, list(ebnm_args$x, ebnm_args$s, ebnm_param))
Hi @gaow , your code now works with the latest versions of flashr and ebnm. I will close this issue but can you please confirm? Thanks!
@willwerscheid I confirm it works for my case. Thanks!
Using version 0.1.32, and the flash documentation example
I get:
Earlier version, 0.1.24 for example, works fine for the
flash
call.