Skip to contents

Extracts coefficients from an existing SuSiE-ASH fit or fits `susieR::susie()` with `unmappable_effects = "ash"`.

Usage

susie_ash_weights(
  X = NULL,
  y = NULL,
  susie_ash_fit = NULL,
  retain_fit = FALSE,
  ...
)

Arguments

X

Genotype matrix. Required when `susie_ash_fit` is NULL.

y

Phenotype vector. Required when `susie_ash_fit` is NULL.

susie_ash_fit

Optional fitted SuSiE-ASH object.

retain_fit

If TRUE, stores the fitted object as an attribute on the returned weights.

...

Additional arguments passed to `susieR::susie()` when fitting.

Value

Numeric vector of variant weights.