Skip to contents

Fine-mapping of inhomogeneous Poisson process data with a Gaussian variational approximation for the latent log-intensity and an inner [susiF()] fit for the structured genetic mean.

Usage

Pois_fSuSiE(
  Y,
  X,
  L = 3,
  scaling = NULL,
  reflect = FALSE,
  maxit_outer = 20,
  maxit_inner = 10,
  tol = 0.001,
  elbo_tol = NULL,
  control_mixsqp = list(verbose = FALSE, eps = 1e-06, numiter.em = 4),
  nullweight = 10,
  cov_lev = 0.95,
  min_purity = 0.5,
  cor_small = FALSE,
  post_processing = "smash",
  thresh_lowcount = 0,
  verbose = TRUE,
  diagnostic_plot = FALSE,
  True_intensity = NULL,
  print = NULL,
  Z = NULL,
  update_Mu_each_iter = TRUE,
  s2 = 0.5,
  warm_start_sigma2 = TRUE,
  outer_tol = 0.001,
  stable_iterations = 2L,
  solver_failure = c("error", "log1p"),
  filter.number = 10,
  family = "DaubLeAsymm",
  sigma2_subcycles = 5L
)

Arguments

Y

N by T numeric matrix of non-negative integer counts.

X

N by J numeric covariate matrix.

L

Upper bound on the number of single effects.

scaling

Length-N vector of finite, strictly positive sample-specific Poisson scaling factors. Defaults to one.

reflect

Logical; mirror the observations before wavelet processing. Reflection is enabled automatically when `ncol(Y)` is not a power of two.

maxit_outer

Maximum number of outer iterations.

maxit_inner

Maximum number of inner [susiF()] iterations.

tol

Positive convergence tolerance forwarded to [susiF()].

elbo_tol

Deprecated alias for `outer_tol`. Kept for compatibility.

control_mixsqp, nullweight, cov_lev, min_purity, cor_small, post_processing, thresh_lowcount

Forwarded to [susiF()]. `post_processing = "none"` is not supported by this approximation because its `fitted_func` is already alpha-collapsed.

verbose

Logical; report outer-iteration progress.

diagnostic_plot

Logical; draw diagnostic plots each outer iteration.

True_intensity

Optional N by T matrix of true latent log-intensities, used only by `diagnostic_plot`.

print

Deprecated alias for `diagnostic_plot`.

Z

Reserved for future dense-covariate support. Must be `NULL`.

update_Mu_each_iter

Logical; update the latent Gaussian posterior at every outer iteration. Setting this to `FALSE` is intended for debugging.

s2

Positive fallback initial value of the noise variance `sigma2`.

warm_start_sigma2

Logical; if `TRUE` (the default), use the existing `maxit_inner`-iteration `susiF(log1p(Y/scaling))` warm fit to initialize `sigma2`. The estimate is computed on the original log1p scale, subtracts first-order Poisson sampling variance, and corrects log1p attenuation.

outer_tol

Positive convergence tolerance for the maximum relative change in `Mu_pm`, `B_pm`, and `sigma2`.

stable_iterations

Number of consecutive iterations below `outer_tol` required for convergence.

solver_failure

Either `"error"` (the default) or `"log1p"`. The latter records a failed VGA row and uses a log1p fallback instead of stopping.

filter.number, family

Wavelet filter passed to [susiF()].

sigma2_subcycles

Non-negative integer giving the number of conditional `q(mu)`–`sigma2` subcycles performed while holding `q(B)` fixed in each outer iteration after the first. The default is 5. When this value is positive, the first outer iteration uses one subcycle; setting it to zero recovers the previous update order with no pre-fSuSiE variance update.

Value

A list containing posterior moments, fitted values, `sigma2`, an iteration-level `convergence_trace`, solver failures, and the inner `susiF.obj`. `est_effect_fm` is the raw variational posterior mean effect matrix in the original X units; `postprocessed_effect_fm` is retained for reporting. `sigma2_used_for_final_susif` records the variance used to fit the final inner posterior, before its subsequent M-step. The `sigma2_subcycle_trace` records every conditional variance update and its conditional partial objective before the fSuSiE block. The `partial_objective_trace` contains only the Poisson latent and Gaussian coupling terms. The legacy `elbo_trace` component is retained as an alias, but is not a complete joint ELBO.

Details

The noise-variance update is $$\sigma^2 = \mathrm{mean}\{(\bar\mu-\bar B)^2 + V_\mu + V_B\}.$$ Here `B` denotes the complete structured Gaussian mean, including the plug-in intercept. `V_B` is computed from the raw fSuSiE variational factors, including both SNP-selection uncertainty and conditional wavelet-coefficient uncertainty.

During each Gaussian block update, [susiF()] centers but does not scale the latent response and holds its residual variance fixed at the current outer `sigma2`. Post-processing is used only for reported effect curves; it does not feed the variational moments or the variance update. The latent Gaussian posterior and `sigma2` are conditionally subcycled with the current structured posterior held fixed before each fSuSiE update. The first outer iteration uses at most one such subcycle; later iterations use `sigma2_subcycles`. A final `sigma2` M-step is performed after updating the structured posterior. The `partial_objective_trace` still excludes the fSuSiE prior/KL contribution, so convergence is based on parameter changes rather than this diagnostic.

See also

[susiF()], [vga_pois_solver()]