Skip to contents

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

Usage

susieAshWeights(X = NULL, y = NULL, susieAshFit = NULL, retainFit = FALSE, ...)

Arguments

X

Genotype matrix. Required when `susieAshFit` is NULL.

y

Phenotype vector. Required when `susieAshFit` is NULL.

susieAshFit

Optional fitted SuSiE-ASH object.

retainFit

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.