Skip to contents

Freeze breed-specific SNP and reference-breed LBP effects

Usage

gsim_boa_trait_state(
  panel,
  snp_covariance,
  channels = "trait1",
  marker_components = NULL,
  lbp_covariance = NULL,
  reference_breed = utils::tail(panel$breeds, 1),
  seed = 1
)

Arguments

panel

A gsim_boa_genotypes() panel.

snp_covariance

Physical per-marker covariance over breed-major channels. A matrix or named list for disjoint marker components. Block diagonal breed covariance gives BOA_UNCOR; full covariance gives BOA_COR. No rescaling occurs.

channels

Names of genetic traits or random-regression coefficients.

marker_components

Named component label per marker, required for a list.

lbp_covariance

Optional covariance over non-reference breed-major channels.

reference_breed

Reference breed for the LBP contrast, default last breed.

seed

Identity-keyed marker-effect seed, distinct from meiosis/noise streams.

Value

Frozen effects, frequencies, component assignments and covariance inputs. Use with gsim_boa_values() then gsim_records() for repeated/missing records. Up to 64 breed/channel axes are supported by the current normal-draw kernel.