Architecture
The standalone runner accepts native PL/GL imputation, GLIMPSE2 reference copying and two-stage AlphaPeel hybrid peeling. Low-pass sequence recipes
The experimental pedigree-imputation developer benchmark keeps individual-genotype transmission and reference phasing in native gimp, simulation and optional phase truth in gsim, and packed BED access in gbits. The existing gsuite YAML runner adds only an impute orchestration route. No target truth or ganc population ancestry pass is used by inference; existing Z-score imputation is unchanged. The frozen 10K benchmark records its scope, inputs and measured limitations in benchmarks/pedigree-imputation-10k/; this is not a released R imputation interface.
The installed standalone gsuite impute also accepts an externally phased HAP/BIM/FAM reference with an aligned MAP. Its YAML frontend publishes a content-identified reference and validates each independently arriving BED/BIM/FAM offspring batch. The gimp driver uses gmat for PLINK labels and gbits for packed alleles, then applies the existing transmission HMM separately on each autosome. File contract and laptop qualification (benchmarks/pedigree-imputation-10k/integration-review.md, installed reference reuse)
The offspring recipe also selects native reference copying with optional grandparent transmission, released AlphaPeel, or Beagle. Native inference remains in gimp. The standalone runner owns optional tool execution, allele-oriented input conversion, sample and marker checks, and publication of the shared labelled dosage format. Offspring recipes
Scalar Glist BayesA/B/N adapters reuse gbayes’ scalar C++ residual, Gaussian-conditional, variance-draw and parallel-chain engine. Glist remains the individual-data boundary, including its bounded decoded cache; inference stays in the native owner.
Ordinary additive pedigree RHE reads the fixed and random columns prepared from YAML. The native estimator summarizes recording occasions, projects the declared fixed effects and applies the pedigree relationship in animal space. A subsequent BLUP command reads the accepted covariance estimates.
The compiled fit accepts analysis.rhe.route as a native execution selector. With auto, the driver selects an eligible RHE implementation from the prepared design. Explicit record and animal settings select the comparison routes through the same executable. The native receipt reports the requested route and, for these estimators, the route used.
For supported fixed-covariance pedigree PCG solves, the driver applies record incidence, observed residual blocks and pedigree precision directly. It forms the right-hand side and small preconditioner blocks without building the full sparse coefficient plan. The YAML selector can also request the compiled plan through the same driver. Pedigree BLUP operator
Packed stochastic REML retains the last admitted covariance state when a trial fails. The native fit reports independent certification separately, and the standalone runner exports EBVs only from a certified fit. Packed REML controls
For ssGBLUP REML, GREML can use a supplied genomic covariance, supplied APY blocks, or prepare exact or APY genomic precision from PLINK. It reuses sparse pedigree precision outside the genotyped block and supplies the updated lower triangle and covariance determinant to the compiled AI-REML engine. gsolve provides CHOLMOD selected inversion. With the same PLINK relationship, a separate BLUP fit can read the fitted covariance receipt and use packed SNP PCG.
gsuite brings together R packages, native computational libraries and analysis guides for statistical genetics. You usually work through a task-specific R package or the standalone mixed-model command; the native libraries do the computation underneath.
The standalone runner admits both record-level single-step and common-sample Gaussian SNP evaluations. The marker-summary manifest binds numeric cross-products to the training data and allele order. The native driver owns HE/RHE estimation, conditional SNP-BLUP and summary REML. For grouped or repeated observations, YAML binds each scalar to its declared residual group, unit and coordinate. The native record adapter builds the corresponding covariance actions. The BLUP reader matches the fitted blocks by name and coordinate, including the covariance used for conditional uncertainty. For record RHE, the compiled pedigree and packed single-step drivers share the same observed-record moment calculation. The YAML supplies effect groups, trait coordinates and recording occasions. Each driver sends the fitted covariance blocks to its existing BLUP solver.
Packed REML can read an accepted labelled record-RHE fit as its initializer. Reference-coded inherited fixed groups enter the compiled record columns used by the packed REML projection. greml owns the EM or explicit AI refinement, derivative projections and unchanged score/residual acceptance gates; gsolve supplies exclusive multiple-RHS block PCG. The frontend checks the fitted-artifact contract and keeps estimation and the subsequent supplied-covariance BLUP recipes separate.
Serial and spatial residual estimation use within-unit or within-field lag moments. The ancestry driver instead composes record incidence with its phased-marker and pedigree actions. Its estimation receipt identifies which genetic or residual blocks were fitted and which were supplied. A fixed marker factor at a variance boundary must reconstruct the exported covariance before prediction.
For joint local-ancestry estimation the validator and native driver check that genotyped segregating animals have genotypes for every segregating parent. On these pedigrees the local-ancestry covariance action is affine in the estimated parameters. The record moments subtract the supplied pedigree contribution before estimating the free covariance blocks. The two-trait example retains partially observed records.
The standalone YAML frontend owns strict model validation, preparation and the covariance handoff between separate estimation and prediction runs. The handoff checks the selected export against its native receipt, model structure and labelled covariance coordinates. The frontend exports labelled results. greml owns statistical execution. YAML marker-cache policies and component-byte allowances lower to existing native controls. Inspection and execution share feature-capability preflight when a driver is selected; backend availability and numerical acceptance remain native execution checks.
gsuite sim forwards a simulation recipe to the standalone gsim installation. For marker examples, gsim can draw serial residuals across visits and transmit phased alleles and ancestry together. It writes the phased input bundle, founder ancestry frequencies and marker-derived truth for ancestry models. For marker-free examples, gsim draws breeding values and repeated phenotypes in its native workflow. The simulation recipe can describe serial or visit-by-trait residual covariance, weighted contributors and a sparse paired-environment relationship. GeneSuite uses separate model recipes for estimation and prediction.
For bounded simulation fixtures, the same YAML model can prepare its native prior, coefficient projection and residual covariance through the public greml export contract. Random draws remain in gsim, shared by R and standalone; gsuite only prepares inputs and renders labelled observations and prediction truth. The dense covariance export is capped at 1,024 latent/scalar dimensions and is separate from national-scale packed simulation and fitting routes.
Regional joint BayesC/BayesR orchestration belongs to the standalone gmap R package: control$joint declares provider-to-trait mapping and sampling dependence, while vb and ve carry effect and sampling covariances. It prepares full LD and summary inputs one region at a time through public gbase interfaces and calls the public native gbayes joint sampler directly from gmap’s compiled adapter, without dispatch through the gbayes R package. Numerical inference remains owned by gbayes; no sibling sources or private headers are imported. Optional labelled covariance templates also run in that native sampler; gmap maps correlation shapes to fixed slab variances and formats the results. Repeated activity masks distinguish covariance directions, with weakly learned state weights. This opt-in mode excludes covariance learning and leaves the existing joint defaults unchanged. Two-trait template correlations can optionally learn through regularized native Fisher-scale updates with fixed slab/sampling variances. Existing posterior diagnostic and continuation contracts include their states; the matching gbayes R bridge is version0.1.7. The joint result exposes effects/PIPs, sampler diagnostics and trait-specific marginal-PIP sets through the existing native gmap grouping API. It reuses prepared per-trait regional LD without refitting or normalizing PIPs. These are not component assignment sets or shared-signal sets; unavailable or ambiguous trait LD references are labelled. Scalar QC/screens remain unqualified. One shared Glist defaults joint groups to the shared-LD likelihood; ve still declares sampling covariance. Separate-trait fitting remains the default unless a joint group or the multivariate SuSiE method is selected. The gmap joint result also exposes native marker and regional activity summaries through gmap’s compiled adapter. R formats named native outputs into tables; it does not reconstruct joint sharing by multiplying trait PIPs. Optional full marker-pattern retention remains subject to native memory admission.
Native multivariate SuSiE follows the same ownership split. gbayes owns the matrix-normal single-effect mixtures, PSD templates, IBSS objective and parameter learning, including an Eigen implementation of the authors’ SQP template-weight objective and pruning. gmap prepares checked summaries and full regional LD and calls that public native API directly. Component sets reuse native gmap’s existing assignment-set constructor. The authors’ mvsusieR package is used only for developer reference checks. This initial route requires complete common-design traits and fixed sampling covariance; it is not an arbitrary-overlap adapter. Native gbayes now also owns a separate fixed-prior multi-LD single-effect update. It reuses the independent-provider contract and Gaussian conditional, with population-specific LD and local marker maps. Fixed-prior native MultiSuSiE IBSS now composes that update with provider residual operators and an explicit variational objective. Optional early-EM effect variance learning reuses that SER, while normalized residual learning reuses gbayes’s expected residual-sum-of-squares helper. Parameter traces distinguish posterior-used and proposed residual scales. The standalone gmap R adapter selects checked regional stat inputs and either shared or named ancestry Glists, then calls that public native API directly. Joint samplers and MultiSuSiE share regional LD preparation and a native LD loader; no gbayes R dispatch, alignment pass or new LD format is introduced. Multi-reference component purity uses the maximum absolute observed pairwise LD for reporting only. This does not extend the common-design multivariate SuSiE route or provide overlap correction. Optional two-trait sharing model assessment follows the same boundary: gbayes integrates Gaussian null/private/shared/distinct assignments, and gmap prepares component residual scores and formats confirmed versus unresolved sharing. It does not alter the original variational fit or replace trait PIPs. Native RSparsePro follows this boundary too: gbayes owns latent-Z updates, component assignments, mismatch search and attainable-mass sets; gmap prepares checked regional Z/LD inputs and formats labelled independent-study outputs. Its maximum-assignment probability is kept distinct from a union PIP. A separate experimental native gbayes summary-mismatch adapter integrates a fixed additive Gaussian summary-error layer for C/R, retaining original-LD swap proposals and genotype covariance reporting. It has native algebra checks; fixed and learned mismatch have bounded native tests and simulation evidence, but neither is exposed as a gmap R option or changes its defaults.
Public documentation and the seven public R packages are distinct from the licensed standalone product. Development mixed-model R adapters do not imply a public mixed-model package release. The distribution policy defines these access boundaries separately from numerical capability.
The authoritative gbayes R design specifies the target six fitters and shared resource, result and execution contracts, with no backward-compatibility requirement. The initial bayes/mbayes packed BayesC/BayesR adapters reuse the existing native samplers and share a labelled bayesfit result, resolved execution plan and scientific access. The R/native bridge supplies prepared response cross-products and likelihood dimension to joint residual learning. The sbayes/msbayes summary adapters share that result contract and reuse the existing checked scalar/joint summary samplers. Sbayes supports sparse or block-eigen LD; msbayes supports sparse shared or independent study-specific references with an explicit sampling declaration. Summary prediction is unavailable without identified training coding. Blr/mblr consume exact labelled common-design cross-products through the same samplers/result contract; their R/native bridge constructs shared immutable cross-products and private chain state. PSD/rank/scatter validation and explicit saved prediction transforms preserve supplied feature units. Mbayes bayesFA/bayesFR now use the common contract and existing factor samplers. FA constructs one additive relationship internally through public gmat/gbits interfaces, preserving selections/frequencies, excluding/reporting monomorphic markers and normalizing mean diagonal to one. There is no supplied K or Glist$K. FR retains per-draw total-effect reconstruction, distinct activity summaries and saved sample-SD coding. Chains are serial and diagnostics are scoped to retained invariants; paused mixing limits remain.
All six public fitters finish through one R result boundary. It validates the versioned structural fields, ordered effect axes, final states and logical-chain identities after route-specific formatting. Missing availability entries receive truthful stored-value status and explicit unsupported reasons; factor prediction status preserves its training-only FA and saved-coding FR limits. Provenance records R/package versions alongside native metadata. This boundary changes no sampler, prior, numeric result or qualified prediction/continuation capability.
Individual C/R continuation restores existing native full checkpoints through the common bayes/mbayes fit contract. R validates same-build/data/resource identity and preserves global thinning with at most one checkpoint advance; no sampler transition is duplicated. Resumed summaries cover the added segment. Full resource hashing and mandatory checkpoint/segment allocations are checked. The summary C/R adapters also restore existing native checkpoints, binding harmonized scores/N, trait/provider maps, sampling policies and full prepared LD bytes; eigen fits additionally bind verified blocks and eigen settings. Their global thinning and segment-summary semantics match individual C/R. Cross-product C/R adapters restore the same full native states through existing Rcpp control slots. R binds exact checked XX/Xy/yy, n, feature/trait labels, prediction coding and likelihood dimension, preserving supplied units, global thinning and added-segment summaries. The declared gbase dependency is initialized before runtime fingerprinting. No native numerical or bridge changes are added. Specialized-summary, annotation and factor continuation remain outside these contracts.
Individual C/R posterior capture reuses native covariance, partition and selected score accumulators. R checks explicit reference/target identities and memory, prepares target copies with saved fitting coding, repairs known scalar coordinate labels, and maps native moments/traces into bayesfit. Observational capture consumes no RNG or extra sampler transitions, including resumed segments. Full effect draws and the remaining method/interface capture gates are unchanged.
Cross-product C/R capture shares the checked fitting XX operator with native covariance/partition accumulators through a thin Rcpp adapter. The explicit reference=“training” request reports B’ XX B / likelihoodDimension in supplied feature coordinates; projected designs retain their projected interpretation. No LD or allele semantics are inferred. Public access reuses the common quantity formatter with explicit component/variance-ratio meanings, feature/reference identity, budgets and ordinary-prediction availability. Native numerical library sources and sampler transitions are unchanged.
Summary C/R capture shares that formatter and uses the existing native accumulators on sparse/scalar-eigen and joint sparse likelihoods. Covariance reporting requires an explicit aligned sparse-LD reference over all fitted markers, including study unions, independently of fitting LD/eigen policies. Partition activity needs no reference; covariance and explicit-denominator h2 retain their native meanings. Per-call capture excludes discarded continuation advances and preserves states/RNG. Summary coding/intercept identification and prediction gates remain in place; no native computation is added.
Summary BayesRC accepts a marker-labelled zero-column design for intercept-only fitting with the existing continuation-probit prior. The summary route also passes named fixed marker slab multipliers to the native BayesR prior. An optional centered log-variance design learns relative marker scales shared across positive slabs. Scalar bayes/sbayes marker_gaussian fits fixed marker-specific Gaussian means and variances through the existing native gbayes/gsolve PCG fitter. A shared bridge translates the score by C times the supplied mean and reconstructs total effects, retaining fixed-marker LD offsets. Individual input uses the existing packed BED provider and saved training HWE coding; summaries use checked sparse LD on their standardized scale. No dense marker matrix, new solver, hyperparameter learning or posterior uncertainty is introduced. Scalar bayes/sbayes BayesC also accepts fixed named active-slab means, inclusion probabilities and absolute slab variances through the installed informed MCMC and mean-field fitters. The spike remains at zero; scalar or marker probability and variance inputs and ve are explicit and fixed. The R adapters share existing result formatting, BED coding and summary harmonization; they add no inference kernel. Capture, continuation, annotation learning and gmap conversion are gated for these informed fits. See the fixed slab-mean contract. Batch source 0.1.16 adds scalar BayesC/BayesR inclusion/component and relative variance/MAF annotations by reusing the existing R validator and native MCMC bridge. Coefficient/prior-probability outputs are role-labelled. BayesC baseline and slope learning remain distinct; BayesR component annotations replace global weight learning. Runtime verification is pending the batch checkpoint; capture, continuation and saved mapping remain gated for these source additions. Summary mixture_variational also supports fixed marker-specific slab multipliers and a fixed residual variance for variational BayesR candidate fits. Individual bayes and mbayes elastic_net use the native packed BED operator and coordinate descent for fixed candidates. The covariance-scaled routes use marginal penalty weights and a same-marker trait precision block in gbayes. The joint fit shares one packed genotype panel across traits. Individual laplace_gaussian reuses the scalar Laplace tilt and the Gaussian vector conditional in gbayes. It updates variational factors by marker and keeps trait-specific residuals over a shared packed BED panel.
Scalar bayes/sbayes now expose bayesRC through the existing native annotation sampler. The R resolver separates pi-derived coefficient starts from proper Gaussian priors and maps updatePi to annotation learning without a global Dirichlet update. Sbayes requires verified block-eigen LD and records its separate block residual policy. Native summaries keep prior probabilities, posterior allocations and per-chain coefficient traces distinct in bayesfit. Mbayes also exposes the existing joint annotation sampler as bayesRC with fixed residual covariance. Pattern annotations include null activity; positive magnitude annotations condition on nonnull patterns, and variance annotations scale all positive magnitudes. Common formatting retains role-labelled priors, coefficients and posterior assignments with saved training coding. No new sampler, continuation, saved-fit mapping eligibility or full sblr parity is implied. Msbayes reuses this annotation contract with the existing sparse joint-summary sampler. Sampling/residual covariance stays fixed under explicitly declared independent or shared-LD sampling; study-specific LD and marker maps retain their existing contracts. Summary effects retain standardized units and no training coding/intercept. Scoring remains in gscore with explicit conversion inputs.
Sbayes also exposes existing point-normal and continuous-shrinkage MCMC through a serial native orchestration bridge sharing one immutable LD preparation. Point-normal preserves all-postburn conditional means and requires thinning one; shrinkage uses verified blocks and the common completed-multiple retention map. Method-specific scale/learning contracts and available paths remain distinct. Missing variances, PIPs, traces and RNG checkpoints are not manufactured.
Sbayes variational/mixture_variational routes use the same common fit contract over existing native fixed-prior mean-field solvers. A budgeted R/native boundary checks LD and replicated mixture-state allocations before fitting. Whole-panel coordinate convergence, ordered-window approximation and relative objective endpoints retain separate meanings. Fixed priors are not posterior parameter estimates; sampled chains, responsibilities and absolute ELBOs are unavailable.
The common bayes/mbayes/blr/mblr adapters accept method="bayesCM" and algorithm="vbayes", resolving fixed covariance dictionaries and optional native residual EB. Variational results use the shared schema with explicit optimization/availability diagnostics and no MCMC chains. Joint packed missing outcomes use the published native route; complete scalar packed CM uses bounded exact Gram preparation. The design records current source, normalization and prediction limits. The existing development Bayesian R facade accepts method="bayesCM" and algorithm="vbayes" (also the default for this method). The R adapter resolves phenotype-table/Glist or explicit matrix inputs to existing complete, missing or RSS mr.mash numerical APIs. Default covariance patterns/scales and argument aliases are R interface policy; inference remains in gbayes. Historical routes are unchanged. Bayesian YAML is not required for this R workflow.
The same facade maps method="bayesFA" and method="bayesFR", with algorithm="mcmc" as the default, to the existing mega_lmm and mega_bayesc native routes. It normalizes phenotype tables, keeps the bayesFA relationship kernel explicit, and maps familiar sampling controls to retained draws and chain seeds. Native priors, separate-chain outputs and scientific limits are unchanged. No additional numerical implementation or YAML schema is introduced.
For an analysis, start with Methods or the tutorials. For implementation contracts and detailed limits, use the Architecture reference.
Native capabilities and R availability
Native healthcare research components in gbayes include temporal block selection, discrete-time survival and competing-risk models, and sparse logistic inference with Bridge priors. Gshare owns the receiving-data transfer adapter and delegates the posterior fit to gbayes. The components have profile-specific checks on bounded references. A complete R healthcare workflow, clinical calibration, and reproduction of the published methods remain open.
The direct SumHer workflow keeps LD-score calculation in gmat with the gbase R adapter, and paired fitting in gcorr with the standalone gcorr R adapter. R checks labels and shapes; regression and jackknife execute in native code. The default SumHer dispatcher uses stored D scores; the previous estimator remains available explicitly.
Native gbayes owns a separate bounded MegaLMM factor MCMC backend with one relationship kernel, loading shrinkage, variance-proportion grids and supplied outcome masks. It reuses gsolve and existing Gaussian/BayesC primitives without calling greml’s REML optimizer or changing mr.mash. Covariance and prediction summaries handle factor sign ambiguity. A separate native MegaBayesC marker chain learns marker-to-factor and direct effects, sparse loadings and their inclusion/slab/order scales. It uses installed gsolve operations, preserves separate activity summaries and saves training genotype coding for prediction. The standalone gbayes R package owns its R adapters and Bayesian YAML runner (gbayes.model/v1); the standalone mixed-model YAML schema is unchanged. Both factor routes are bounded to 256 samples, 128 traits and 16 factors; the marker route also limits markers to 4096. The packed marker route is resident, not a streaming implementation. New-kernel MegaLMM prediction and arbitrary fixed-covariate fitting remain unavailable, and full-model MegaBayesC mixing remains unresolved. Large-scale qualification remains separate.
Native gbayes also owns supplied-dictionary mr.mash-rss and complete-data individual mr.mash variational regression. It shares genotype/LD operators and gsolve conditioning with the ecosystem, while retaining a separate inference backend from multivariate BayesC/BayesR. This development route supports PSD covariance mixtures, learned weights and a bounded native prediction adapter. Dense and existing packed BED individual adapters share the inference engine. Exact common-sample C,S,H or individual residuals permit optional full/diagonal residual-covariance empirical Bayes; reference-LD summaries retain fixed covariance. Complete outcomes and consistent training centering are required. An additive missing-outcome adapter shares the engine and implements published conditional imputation/intercept updates, with covariance and entropy corrections. Its augmented variational bound is separate from the observed-data likelihood diagnostic. Joint fixed-covariate, relatedness and latent-factor learning are not included. Its R/YAML adapter lives in the task package and adds no task-neutral gbase computation. Calibration, external-LD robustness and large-scale performance remain unqualified.
Packed individual mr.mash and MegaBayesC adapters reuse the existing immutable BED provider and Glist physical indices. MegaBayesC fetches one decoded marker column at a time and retains its sample-SD/centered-raw coding. mr.mash BED keeps HWE coding. Both estimate imputation frequencies on selected training samples; packed prediction reuses training coding and validates marker metadata.
| Role | Main components | Where to start |
|---|---|---|
| Prepare genotype and summary data | gbase, backed by gbits and gmat |
Data preparation |
| Screen regional Z-score outliers, fit regional models, and interpret credible sets | gmap |
Mapping package guide |
| Fit genomic analyses | glma, gbayes, gcorr, gmap, gscore, gsea |
Choose an analysis |
| Fit mixed models and obtain predictions | greml, using gsolve |
Standalone mixed models |
| Simulate data and generating truth | gsim |
gsim documentation |
| Acquire genomic data and annotations | gact |
gact documentation |
Seven standalone genomic R packages are public source releases. The root gsuite R integration is development software; a root R package release is not planned, and greml/gsolve R packaging is deferred. The standalone command is gsuite run model.yml; binary availability is described on Downloads. Public and development versions can differ: check the release-status table.
Analysis flow
- Genotypes or summary statistics.
- Checked shared preparation.
- Task-specific analysis.
- Labelled results and diagnostics.
The standalone glma::glma_fixed_weight_loco() interface returns score quadratics and matched cross-component traces for a downstream variance-component solve. The small-panel implementation uses the shared Gaussian ridge engine with caller-supplied working variances and computes traces on the target panel.
For example, glma::vegas() prepares gene evidence and gsea::gsea() analyses sets of genes. Required cross-gene covariance is a separate input, not something inferred by passing results between packages. See the connected pathway guide.
Mixed models and numerical methods
greml owns the statistical model, estimation and prediction. gsolve owns general numerical operations such as factorization and iterative solving. Available models, interfaces and uncertainty estimates depend on the chosen route; use the model catalog and its qualification notes.
The standalone frontend parses YAML and indexes observation/factor levels. Its development Linux runner detects the permitted CPU topology and selects native core binding within that mask, while preserving inherited NUMA policy unless interleaving is explicitly selected. Placement decisions are recorded separately from numerical qualification; see execution diagnostics. The greml contract exposes stochastic marginal-pedigree diagonal estimation for preconditioning; the model precision and its exact-diagonal interface remain exact. YAML lowering records explicit probing controls and requires a supporting native driver. Exact setup remains the default. Its LMT frontend separates directive translation from data conversion. A shared input contract binds optional conversion manifests without rereading large data; scientific numeric encoding is recorded and required for manifest reuse, avoiding unbounded decimal mantissas in real-valued exports; unsupported genomic ridge semantics block XML generation. Neither command executes LMT or claims numerical equivalence. See LMT preparation. Sample-mean centered pedigree-moment adjustment maps to LMT’s adjustg2a; the small comparison helper records native gsuite checks separately from live LMT adjustment verification.
Its DMU import/export frontend translates a documented ASCII linear-model subset between that YAML contract and DMU files, with source hashes, ID mappings and explicit exclusions. It introduces no numerical route or DMU runtime dependency. Wide fixed-design rank certification assembles sparse cross-products in the native driver and factors them through the public gsolve interface; it does not add a Python sparse-matrix dependency. Wide packed preconditioning likewise assembles fixed-effect precision from native records, uses a sparse inverse and bounds only the global aggregate correction. gsolve owns the reusable additive subspace action. Statistical equations and full coefficient dimensions remain owned by greml.
Dependency rules
Standalone job admission is separate from numerical libraries: development builds disable enforcement by default. An enforcement-enabled build requires annual entitlement for new jobs while admitted jobs finish. There is no runtime bypass. This is not a cleared commercial release; see standalone installation.
Task packages share task-neutral contracts through gbase; they do not depend on the root gsuite R package. Native libraries are reused through installed public interfaces. Statistical ownership stays with the analysis package. Developer details are in package boundaries and the dependency reference.
Direct regression summaries
The newer BLR and direct set-summary interfaces are development features in gbayes 0.1.6 and gsea 0.1.2, absent from the public 0.1.1 archives. See the release status and technical description.
Implementation does not imply broad statistical or performance qualification. Keep the current qualification limits and method-specific evidence alongside any capability claim.
Standalone observation precision, spatial residuals, selected prediction contrasts and additional-effect REML reuse greml’s model/session contracts. Genomic and parent-product matrix kernels belong to gmat; gsuite’s YAML layer binds inputs and labels results. These additions leave the existing R interface contracts separate. See model capabilities and limits.
Native gbayes development also exposes a fixed-prior continuous Gaussian vector conditional over supplied score/information matrices, reusing gsolve dense SPD solves. This conditional is reused by the bounded native fitting reference below. Ancestry storage, an R interface, model qualification and release remain separate.
Supplied-design Gaussian BOA reference
Native gbayes now provides bounded fixed-covariance Gaussian BOA regression with explicit dense ancestry-specific designs, exact joint posterior moments, same-response marker conditionals and genetic prediction. The caller supplies centred designs and a pre-adjusted response; fixed effects are not jointly fitted. Diagonal and full SPD ancestry priors are supported. This is a native numerical reference (at most 256 effects), with no R interface, packed ancestry operator, ancestry inference, covariance learning, scalable or routine BOA prediction claim. See the component gbayes/docs/boa-gaussian.md contract and development evidence. Implementation and focused numerical validation do not establish population-level scientific calibration, broader qualification or release status.
Ancestry-aware phased genotype operations
Native gbits now provides D, C, D-C*p, forward/transpose products and marker-wise information/residual updates over existing packed H1/H2 and known ancestry labels. Native gmat binds these operations to sample/marker/allele identities, declared phase alignment and training centring frequencies. Inputs use byte ancestry labels; resident labels are now bit-packed; no dense ancestry-expanded matrix or genomic relationship matrix is used by these operations. Missing genotypes, unknown/probabilistic ancestry and unphased dosage are unsupported; no automatic inference, harmonisation or imputation is performed.
Focused explicit genotype arithmetic checks and small gbayes integration examples are distinct from large-scale or scientific qualification. The existing dense BOA fitter remains bounded to 256 effects. Genotype operations alone do not establish a packed fitter, label persistence/streaming, R/YAML interfaces or biobank-scale qualification; the Gibbs route below has separate evidence. See component gbits/docs/design/ancestry_operations.md, gmat/docs/ancestry-panel.md and gbayes/docs/boa-gaussian.md for contracts, resource bounds and method-specific evidence. No release is implied.
Packed fixed-covariance Gaussian BOA sampling
Native gbayes now supplies a systematic marker-block Gaussian Gibbs route over existing gbits/gmat ancestry operations. It maintains one phenotype residual, reuses exact fixed-prior Gaussian conditionals, caches small within-marker covariances, accumulates marginal moments/selected covariance pairs, and supports selected sampling diagnostics, in-memory continuation and ancestry-specific genetic predictions with unchanged training centring. It does not allocate a dense ancestry-expanded design or complete joint marker-effect covariance.
The response is explicitly pre-adjusted and identity-aligned; fixed effects and variances are not learned. Execution remains serial; the initial byte-label storage assessment is superseded by bounded resident bit-packing measurements described below. Small dense-posterior comparisons with Monte Carlo uncertainty and existing regression checks are separate from routine large-panel, mixing/population and scientific qualification. There is no R/YAML interface or release claim. See component gbayes/docs/boa-packed-gibbs.md and its development evidence for contracts, resource bounds and limits. The bounded dense BOA reference remains unchanged.
Gaussian BOA robustness and resident label memory
Controlled native examples now cover ancestry-column aliasing, strong LD, ancestry imbalance and a rare counted allele at frequency .004. Direct conditional and residual checks remain numerically accurate, but LD marker contrasts remain poorly mixed after the tested continuation. Good selected prediction diagnostics do not qualify individual effect covariance estimates or covariance learning. Unsuccessful and inconclusive sampling outcomes are retained in component evidence.
Native gbits now bit-packs resident deterministic labels behind unchanged byte constructor inputs and gmat identity contracts. Bounded measurements show 8x label payload reduction for K=2 and 4x for K=3, with increased CPU cost and unchanged byte-import peak limitations. No new file format, statistical prior, covariance learning, streaming interface or routine biobank-scale qualification is added. See gbayes/docs/boa-robustness.md and gbits/docs/design/ancestry-storage-evidence.md for conditions, measurements, regressions and limits. Earlier validation/release boundaries remain distinct.
Bounded joint-marker Gaussian BOA updates
Native gbayes adds an opt-in fixed marker partition for exact joint Gaussian updates of coupled ancestry effects, using the existing conditional factorization, shared residual, packed marker decoding, summaries, diagnostics and prediction contracts. No more than 64 effects per block or 256 decoded sample rows are used in temporary design calculations. The original sampler and public structure layouts remain available with their established numerical and RNG update branch.
The fixed posterior, input identities and training centring are unchanged. The caller chooses blocks; correlations crossing block boundaries can still limit exploration. Conditional accuracy, Monte Carlo precision, measured resource cost and scientific qualification are recorded separately in gbayes/docs/boa-blocked-gibbs.md. This adds no covariance learning, automatic LD grouping, R/YAML interface, routine large-panel qualification or release claim.
In controlled duplicated-marker examples, keeping that pair together restores the weak contrast variance and substantially increases its effective sample count; splitting the pair remains unsuccessful. Independent Gaussian references and same-build continuation checks support the bounded update. This does not qualify unknown or long-range LD structures, larger partitions or covariance learning. Original unsuccessful evidence remains preserved.
LD-informed Gaussian BOA scheduling
Native gbayes adds fixed bounded partitions derived from an identity-checked gmat sparse LD resource, with optional BOA design scoring for explicitly supplied candidate pairs. Ancestry-specific likelihood-column correlation can differ from ordinary genotype LD. The builder reports strong supplied edges that cross the chosen groups and those left without a scheduled joint visit.
An opt-in route performs fixed cross-boundary Gaussian conditionals at recorded global sweep intervals, reusing the existing posterior and shared-residual calculation. Blocks retain the 64-effect ceiling and bounded sample decoding. The existing manual and single-marker interfaces remain unchanged. Missing graph edges, limited bridge budgets, collective LD and unverified large panels remain explicit limitations. This adds no covariance learning, adaptive priors, R/YAML layer or release qualification. Component contracts and method-specific evidence are in gbayes/docs/boa-ld-partitions.md.
Controlled fixed-covariance examples show improved exploration when a missing minor-ancestry dependence is represented and jointly visited. Collective LD directions still defeat the tested pairwise graphs and limited bridge budgets. Independent Gaussian references and exact continuation support the numerical transition; general partition robustness and covariance learning remain unqualified.
Matrix-free Gaussian BOA inference
Native gbayes now offers an opt-in prior-whitened precision operator over the existing packed ancestry products, deterministic posterior-mean solves and global Gaussian draws using randomized right-hand sides and gsolve PCG. The fixed-covariance, pre-adjusted-response model, sample/marker identities and training centering are unchanged. No genome-wide dense design, cross-product, precision or posterior covariance is formed.
Finite iterative solves produce numerically approximate draws. Independent bounded Gaussian references, tolerance/conditioning checks, selected posterior diagnostics and computational observations remain distinct from scientific or large-panel qualification. Existing single-marker, blocked and boundary routes remain available with their earlier mixing limitations. See component gbayes/docs/boa-packed-global.md for native contracts and evidence. This adds no covariance learning, ancestry inference, R/YAML integration or release claim.
Focused Gaussian reference and posterior comparisons support the selected known-phase LD, ancestry-imbalance and mosaic examples. Extreme-conditioning checks retain rejected covariance solves and inaccurate loose-tolerance draws. A bounded resource observation confirms small operator storage but substantial repeated genotype traversal cost; it does not establish routine large-panel use.
Block preconditioning for global Gaussian BOA inference
Native gbayes provides an opt-in bounded block preconditioner for the same complete prior-whitened Gaussian precision. Supplied disjoint marker blocks reuse installed gsolve factors; cross-block terms remain in every full operator application. The diagonal default, Gibbs routes and training-centering contracts remain available. No automatic block construction or posterior approximation beyond the existing finite solve tolerance is added.
Independent bounded references support means, covariance products, identical-normal draws, prediction, residual reconstruction and tagged continuation. Selected LD/ancestry cases and one 4,096-sample, 2,048-marker resource observation show benefits including setup costs; a poor extended-LD partition instead increased solve time. These observations establish neither universal speedup nor routine large-panel qualification. See component gbayes/docs/boa-block-preconditioning.md for the construction, evidence and costs. Earlier conditioning and partition failures remain applicable; global covariance learning and release remain unqualified.
Hierarchical Gaussian BOA covariance learning
Native gbayes provides an opt-in blocked Gaussian route with a shared inverse-Wishart SNP-effect covariance and fixed residual variance. It reuses packed known-ancestry designs, exact Gaussian conditionals, shared-response residual updates and existing diagnostics. Covariance-dependent factors are rebuilt each sweep; tagged continuation includes the covariance and RNG state. The initial interface supports one to four ancestries and supplied disjoint blocks of at most 64 effects. It has no R/YAML or global-learning interface.
Independent conditional checks and bounded two-ancestry collapsed-posterior references support the implemented route. Prior sensitivity, unobserved ancestry and identical design columns remain identifiability limits. A deliberately poor LD partition failed mixing criteria. The published heavy-tailed prior is supported, with covariance MCSE marked unverified when moment existence is unestablished. Empirical variances and low R-hat do not establish identifiability. See component gbayes/docs/boa-covariance-learning.md for evidence and costs. This bounded capability does not establish routine large-panel qualification, empirical population validation or release; earlier failures remain recorded.
Scientific evidence for Gaussian BOA
A bounded controlled population study compares pooled SNP-BLUP, separate purebred predictions, breed-proportion prediction and native fixed/learned Gaussian BOA. Known ancestry and common supplied centering are retained in future-generation purebred, F2 and backcross targets. Benefits depend on effect heterogeneity and reference composition; pooled prediction is competitive when breed effects are nearly shared. Oracle supplied covariance is distinguished from learned covariance throughout.
The study supports selected synthetic prediction and prior-predictive covariance calibration, while retaining poor boundary/low-variance recovery, prior sensitivity and numerous fits with inadequate Monte Carlo precision. Low R-hat and accurate prediction do not establish covariance identification. Matched-target fixed Gaussian comparisons support bounded blocked, overlapping and global routes; poor LD partitions still fail precision criteria. See component gbayes/docs/boa-scientific-study.md for the frozen design, complete results, costs and qualification decisions. These results establish neither published software parity nor routine large-panel or empirical-population qualification. Production algorithms, native interfaces and public release status are unchanged.
Supplied-tree covariance ownership
The optional installed gmat::arg target owns immutable supplied-tree resources, explicit diploid sample-node identities, branch-area covariance actions, fixed training centering and selected training/target products. It uses installed tskit C behind a private implementation and implements gsolve’s public operator contract. Existing greml covariance sums, REML/RHE and Gaussian prediction retain their statistical ownership. Core gmat::gmat consumers acquire no tskit dependency. This is bounded native numerical research support; genealogy inference, R/YAML integration, population prediction calibration and biobank qualification are absent. See gmat/docs/arg-covariance.md for the initial contract and independent evidence.
Fixed-score environmental moment cache ownership
greml owns GxeMomentCache and its phenotype-specific GxeResponseSummary. They compose installed gsolve operators and checked moment solving; packed callers reuse installed gbits covariance adapters and gmat panel ordering. The generic cache adds no genotype dependency to greml and no R/YAML frontend. Its factorized environmental sketches preserve ordinary fixed-effect projection and avoid an environmental-pair cache. See the owner contract (unpublished greml contract) for resource identity, mathematics and bounded evidence. The separate native sampling_covariance method composes these same operators and installed gsolve probes/checked solves to propagate Gaussian sampling covariance at an explicit SPD-certified working state. Numerical trace MCSE, working-state availability and interval calibration are distinct; there is no additional genomic storage or R/YAML interface. Learned scores, association, production-scale qualification and release remain separate.
Randomized G×E variance-component estimation: ownership
greml owns this capability, which implements the GENIE estimator and retains GENIE attribution. The existing native API GenieMomentCache is unchanged: supplied exposure-specific GxE/NxE kernels, GENIE finite Gaussian-probe moments, heritability fractions and genomic block-jackknife arithmetic. It composes existing installed gsolve operators/checked solves and gbits/gmat packed panel contracts without changing GxeMomentCache or adding a genotype dependency to the generic library. The owner contract (unpublished greml contract) and reference comparison (unpublished greml research report) define the full-rank SPD support domain and differences from original QR/output conventions. Annotation and exact published testing-tail parity remain incomplete. No R/YAML frontend, learned environmental score, new inference engine or release is added.
Annotation and numerical compatibility
greml’s native GenieMomentCache now accepts binary annotation/block operators and intersection counts, using existing gbits products and gmat identity contracts. gsolve owns the additive full-pivot Householder QR solve; greml selects it through the GENIE default reference QR option, retaining checked-SPD as an explicit choice. Statistical ownership includes overlap/deletion normalization and distinct published-result testing conventions. Contract (unpublished greml contract) and algorithmic comparison (unpublished greml research report) retain literal pinned-source quirks and provenance limits. No new storage framework, R/YAML frontend, learned-score engine or public release.
Selected covariance models and missing-data preparation
greml extends the existing GENIE cache with G/G+GxE/full-model selection and explicit original-row masks. Native tabular/one-marker helpers preserve the reference normalization and imputation mapping; gbits still owns decoding and packed products, gmat identities and annotations, and gsolve numerical solves. No new storage or inference engine, R/YAML frontend or dependency was introduced. See the contract (unpublished greml contract) and mathematical/software evidence (unpublished greml research report).
Randomized G×E native file adapter
greml’s existing gsuite_model_driver gxe application route owns keyed BED/phenotype/environment/covariate/annotation orchestration and reports; GenieMomentCache retains the equations and QR default. gmat supplies panel and annotation identities, gbits supplies marker decoding and direct packed covariance products, and gsolve retains projection/factorization/QR ownership. No native library ABI, R/YAML frontend or inference engine is added. The adapter contract (unpublished greml contract) defines alignment, frozen completion, blocks, budgets and output states. Existing routes remain unchanged.
Supervised environmental-score learning ownership
greml owns the new GxeMomentCache::score_objective and fit_score native research members. They reuse its immutable factorized cache, response binding, projection and installed gsolve rank-checked moment solver. Existing gbits/gmat operators supply genotypes and identity; learning adds no operator calls or new dependencies. GENIE and other native routes are unchanged. Regularization, variant splitting, learned-score inference and new R/YAML/file adapters remain outside this bounded capability; operator preparation is not claimed to be a single physical genotype pass.
Regularized score and variant-split ownership
greml owns the source-defined spherical threshold map and split orchestration over its existing GxeMomentCache and gsolve moment solver. Existing gbits/gmat selection, transformation and covariance operators supply disjoint normalized marker subsets. Held-out averages and full-marker refits are separate outputs; full moments combine cached actions before cross-products, requiring no third genotype cache or new kernel calls during fitting. GENIE is unchanged. No new numerical engine, storage format, R/YAML adapter or post-learning inference is introduced, and marker splits do not certify statistical independence.
Environmental-score uncertainty ownership
greml owns the new labelled inference primitives over existing G×E fits, including source-style numerical delta propagation and paired refit records/ observation-group comparisons. gsolve owns Student-t complement probabilities, reusing its private Boost.Math dependency. Existing gmat/gbits contracts still own panels/operators; deletion data and baseline/preprocessing definitions are caller-supplied. GENIE and its jackknife/testing behavior remain unchanged. No new inference engine, storage scheme, R/YAML wrapper or broad qualification is introduced, and probe variation is not silently added to phenotype SEs.
Native environmental-score workflow ownership
greml owns fit_gxe_score_inference: complete observation-group score/baseline refits and paired S2 summaries over supplied ordered y/E/C and native kernel operators. It uses installed gsolve contracts, fixed-transformation row restriction and existing single/variant-split learners; caches are streamed and compact failures retained. This adds no root R interface or numerical dependency. GENIE and the previous score/covariance algorithms are preserved.
ENGINE file adapter ownership
greml’s optional model driver owns the engine BED/keyed-table adapter. It reuses the unchanged GENIE input/QC/completion functions, installed gmat panel identities and gbits direct covariance operators, then calls the existing native environmental-score inference workflow. Observation grouping and explicit supplied starts/baseline/scales belong to this application route; no native solver or estimator changes are introduced. GENIE’s gxe command, root R interfaces and separate public launcher dispatch remain unchanged.
Individual-level RHE in gcorr
The standalone gcorr R package owns rhe() input alignment, Glist orchestration, method-specific summaries and results. greml owns ordinary RHE and GENIE estimation; gsolve owns moment solves and gbits owns packed products. Estimation does not invoke prediction or REML. Source distribution links ordinary RHE from the existing bounded gbase archive and compiles only canonical greml GENIE source in gcorr. The gbase greml closure is explicit and does not follow the expanding full native core. No root gsuite import is required.
The standalone package also owns the marginal summary RHE handoff. gcorr_sum_rhe_trace() records the target marker set, sample size and fixed design identity alongside the two-component trace. gcorr_sum_rhe() reconstructs the phenotype quadratics and solves the moment system in R. The genotype producer can supply a trace from a separate computation. Summary-statistic workflow
For a full PLINK panel, gbase::gprep() uses gmat to create or reopen same-stem .ext files for on-demand metadata and genotype summary reads. The recode task passes an allele catalog to gmat, which checks BIM and uses gbits to swap the packed homozygote codes for reversed markers. gbase::gfilter() consumes those summaries directly. The QC output is a marker selection in physical panel order. The sparse-LD task uses that selection with the mapped panel and original BED. The default sparse-LD output prefix for a single BED is its filename stem. gmat reports completed blocks to gbase for progress logging. gbase keeps LD marker metadata on disk and retains ordered rsids and LD scores in Glist. Model entry points continue to use their existing Glist or aligned inputs.
Direct LD scores use gbase::gprep(task = "ldscores"). Ordinary values retain the existing lowercase Glist$ldscores per-component layout; architecture arrays and resolved settings are stored separately in Glist$ldscore_models.
SumHer fitting uses gcorr(..., method = "sumher"). The default marginal/pairwise route uses stored D scores when available, retains full-reference contribution totals and returns a distinct SumHer fit class. It returns h2 per trait and rg for all trait pairs. Select sumher_fitter = "standard" for the previous estimator; its compatibility entry point remains unchanged.
The standalone DMU and restricted four-trait LMT adapters share staged data manifests. Directive translation and data conversion are independent operations; the legacy combined DMU commands reuse the same parser and writer. Reverse LMT conversion requires explicit marker/allele metadata rather than inferring it from text dosages.
MiX99 I/2022 CLIM and ASReml-SA 4.2 preparation reuse the shared classification writer and interoperability manifests through classical_interop.py. Directive parsing/rendering is separate from binary64 table conversion; the admitted single-trait identity profiles exclude pedigree/genomic computation and never launch third-party software.
Primary terminology is ancestry-specific ssSNPBLUP, with ANCESTRY_UNCOR/ANCESTRY_COR and optional local ancestry proportion (LAP). BOA/LBP names remain compatibility aliases; model restrictions and defaults are unchanged.
The following ancestry-specific entries retain the scope of each individual native API. Current standalone composition is described in ancestry-specific YAML/standalone (source-checkout reference: boa-single-step-yaml.md); R integration remains deferred.
Native fixed-covariance single-step ANCESTRY_UNCOR and ANCESTRY_COR use the optional greml::bed_adapter ancestry marker factor with gmat/gbits packed known-phase ancestry resources and the existing one-trait conditional single-step solver. Selected exact breeding-value PEV/reliability reuse the existing numerical gates. There is no R/YAML adapter, covariance learning or large-scale qualification. See the native ancestry-specific contract (unpublished greml reference: single_step_boa.md).
The separate native exact ancestry-specific REML route (unpublished greml reference: single_step_boa_reml.md) estimates diagonal (ANCESTRY_UNCOR) or full SPD (ANCESTRY_COR) breed SNP covariance and scalar residual variance while keeping pedigree scale, C0 and ancestry coding fixed. It reuses conditional single-step solves, pedigree factors and selected plug-in PEV, with explicit exact-work caps. No R/YAML, stochastic estimation, parameter standard errors or large-scale qualification is added.
The native general multiple-trait ancestry-specific route (unpublished greml reference: single_step_boa_multitrait.md) supports fixed ANCESTRY_UNCOR within-ancestry trait blocks or full nonseparable ANCESTRY_COR ancestry-by-trait SNP covariance, with fixed base trait covariance, prepared missing- trait records, complete pedigree predictions and exact selected PEV/cross-covariance. Trait count is declared and budgeted; two/three traits are focused validation cases. Multiple-trait REML, longitudinal ancestry-specific and R/YAML interfaces are not added.
The separate native exact multiple-trait ancestry-specific REML route (unpublished greml reference: single_step_boa_multitrait_reml.md) fits ANCESTRY_UNCOR within-ancestry trait blocks or full ANCESTRY_COR ancestry-by-trait SNP covariance and residual trait covariance, keeping K0/C0 and ancestry coding fixed. Missing traits are integrated. Exact work caps, retained pedigree factors and fitted-state selected PEV retain existing equation gates. Two/three traits are focused validation cases; no stochastic, R/YAML or longitudinal extension is added.
The separate native longitudinal/random-regression ancestry-specific adapter (unpublished greml reference: single_step_boa_longitudinal.md) reuses general ANCESTRY_UNCOR/ANCESTRY_COR coefficient covariance and existing longitudinal basis/index contracts for irregular repeated records, complete pedigree trajectory prediction and exact selected trajectory PEV/cross-covariance. Trait and basis counts are declared; all breed, base/pedigree and residual covariances are fixed. This adds no longitudinal REML, R/YAML dispatch or large-scale qualification; earlier scalar/multiple-trait routes and their evidence are unchanged.
The separate native exact longitudinal ancestry-specific REML route (unpublished greml reference: single_step_boa_longitudinal_reml.md) estimates ANCESTRY_UNCOR/ANCESTRY_COR ancestry-by-trait-by-basis covariance and same-occasion residual trait covariance while keeping K0/C0 and basis values fixed. Genetic coefficient width and observed residual trait width are distinct. Missing traits are integrated; fitted trajectories and selected conditional PEV reuse existing equation gates and exact-work caps. No serial residual parameter estimation, R/YAML dispatch or large-scale qualification is added.
The native multiple-component ancestry-specific extension (unpublished greml reference: single_step_boa_components.md) supports named disjoint SNP covariance partitions plus independent-level random effects such as permanent environment. Both ANCESTRY_UNCOR and ANCESTRY_COR support fixed prediction, joint selected PEV and exact component REML, keeping K0/C0 fixed. The existing pedigree conditional and equation gates are reused. Small numerical references cover scalar-component optima and matrix-component initial states; component identifiability, large-scale qualification and R/YAML dispatch are not established by this extension.
The native stochastic ancestry-specific REML option (unpublished greml reference: single_step_boa_stochastic_reml.md) supports ANCESTRY_UNCOR/ANCESTRY_COR with multiple SNP and independent-level random components, reusing common Rademacher probes, existing solves and fixed K0/C0. Moment/score Monte Carlo standard errors and one independent frozen-state probe-bank check control acceptance. Both original/transformed equation gates and total solve caps remain in force. Exact remains the default; no stochastic likelihood, R/YAML or large-scale/scientific qualification is added.
The experimental ancestry-specific YAML/standalone adapter (source-checkout reference: boa-single-step-yaml.md) now exposes ANCESTRY_UNCOR/ANCESTRY_COR fixed prediction, exact selected contrast PEV, exact and stochastic REML through the existing licensed model driver. It reuses prepared sparse trait/ basis records, packed phased alleles and explicit ancestry identities/frequencies. Named SNP partitions and independent-level random components retain fixed K0/C0; labelled diagnostics include score/moment MCSE and independent stochastic validation. The earlier native-only scope statements describe those individual implementations; this adapter adds their standalone composition. R remains deferred. Ordinary pedigree and independent occasion residuals only; no new scale or scientific qualification is implied.
The explicit partial-pedigree ancestry-specific option (source-checkout reference: boa-partial-pedigree.md) supports native and YAML/standalone fixed-covariance ANCESTRY_UNCOR using ancestry-specific partial relationships, separate fixed base channel covariances and exact selected total PEV. Active breed supports have exact zero incidence outside their support; conditional sparse factors and packed SNP products avoid dense P/G/H construction. Two-breed scalar and three-breed two-trait dense references define the initial numerical scope. Current partial REML, COR and LAP coverage is described below; R fitting remains deferred; deterministic active innovations and unassigned missing-parent breeds are rejected.
Optional fixed reference-ancestry LAP (source-checkout reference: boa-reference-lbp.md) now composes a correlated non-reference contrast/channel covariance with partial-pedigree ANCESTRY_UNCOR or ANCESTRY_COR through YAML/standalone. It combines pedigree LAP contrasts before total-LAP single-step conditioning, uses packed ancestry products and retained nonseparable sparse factors, and includes LAP in selected total/joint PEV. Two-/three-breed numerical references include transformed-reference equivalence and exact purebred/F1 zeros. Breed/LAP-specific selected PEV and final diagnostics are described in the completed model coverage (source-checkout reference: boa-model-coverage.md). R fitting remains deferred. Earlier partial-pedigree-only scope statements describe that initial implementation, not the optional LAP composition.
Exact partial-pedigree ancestry-specific REML with reference-ancestry LAP (source-checkout reference: boa-partial-reml.md) is available through YAML/standalone. It estimates selected within-ancestry SNP, LAP, independent random and residual covariance blocks while keeping K_b/C0 fixed. Analytic scores include covariance-dependent LAP pedigree conditioning; L-BFGS acceptance requires fresh scores and prediction equation gates. The first route bounds observation-space likelihood and solver dimensions; selected PEV is conditional on fitted covariances. R fitting remains deferred; partial COR and component PEV (source-checkout reference: boa-model-coverage.md) are available. See the linked guide for work accounting and qualification limits.
Stochastic partial-pedigree ancestry-specific/LAP REML (source-checkout reference: boa-partial-stochastic-reml.md) uses checked SNP-coordinate projections, full analytic LAP conditional derivatives, Monte Carlo score errors and a frozen independent validation bank. Average-information updates use score merit, not an approximate likelihood objective. Fixed K_b/C0, existing equation gates and covariance-conditional selected PEV are preserved. Exact remains the default; stochastic likelihood, R fitting and broad large-scale/scientific qualification are not added.
Partial-pedigree ancestry-specific model coverage (source-checkout reference: boa-model-coverage.md) now includes ANCESTRY_COR, breed/LAP-specific selected PEV and final numerical identifiability diagnostics in YAML/standalone. R fitting remains deferred; this supersedes earlier partial-COR/component-PEV exclusions above.
Structured ancestry-specific simulation (source-checkout reference: boa-simulation.md) uses gsim phased inheritance and frozen ancestry/channel SNP and LAP truth, with correlated records and YAML/standalone fitting. The bounded pilot is a robustness example, not fitted-model covariance calibration.
Partial-pedigree ancestry-specific explicit worker controls (source-checkout reference: boa-model-coverage.md#explicit-worker-controls) reuse gsolve’s existing ssSNPBLUP PCG vector worker engine for marker ranges and non-OpenMP independent-RHS PEV execution. PEV workers own independent factors; all new controls default to one and keep the existing equation gates. R fitting and clean HPC-bundle qualification remain deferred.
Partial-pedigree ancestry-specific retains checked solve contexts and shares immutable geometry (source-checkout reference: boa-execution-reuse.md) across covariance updates and PEV workers. The optional qnn_data route reuses the ssSNPBLUP marker-column metric and gsolve fixed/coarse corrections. Mutable factors and buffers follow the existing exclusive-context policy; statistical models and defaults stay unchanged. Budgeted resident/packed ancestry products are shared with LAP. Operator buffers and final coordinate reconstruction are retained within each worker; both equation gates remain active. ancestry-specific HPC validation defaults to breeding values with supplied covariance; REML and PEV evaluation are explicit separate campaigns.
Partial-pedigree ancestry-specific explicit worker controls (source-checkout reference: boa-model-coverage.md#explicit-worker-controls) reuse gsolve’s existing ssSNPBLUP PCG vector worker engine for marker ranges and non-OpenMP independent-RHS PEV execution. PEV workers own independent factors; all new controls default to one and keep the existing equation gates. R fitting and clean HPC-bundle qualification remain deferred.
Regional gmap controls use short names without underscores: for example, ld$threshold, qc$neighbors, cs$reporting, and control$multi$maxiter. The resolved public controls are in fit$settings; native diagnostic and control records keep their native field names. Previous grouped names are rejected.
Optional regional neighbor-sign/SLALOM QC and credible-set reporting screens are available for multi-effect, BayesC and BayesR. QC and conditional screening currently require one study and fixed residual variance. Marker QC precedes fitting; reporting uses original LD on retained markers and records selected candidate indices without discarding native results. Chain disagreement remains warning-only for Bayesian fits; numerical failures remain ineligible. ## Saved posterior contract and mapping adapters
gbayes::fit_contract() provides a checked description of common bayes/sbayes/mbayes/msbayes results: labelled axes and study maps, actual method/algorithm, effect units, saved coding, sampling assumptions, probability definitions and capture availability. It describes existing fitted coordinates; it neither changes effects nor infers missing training coding for summaries.
gmap::gmap_from_fit() consumes this public contract for saved MCMC BayesC/BayesR posteriors. Individual inputs retain the existing gmap_bed() identity checks. Summary inputs bind to their fitted LD resource paths/checksums and counted alleles. Native gmap marginal grouping interprets the saved trait PIPs without refitting. Missing, incomplete or ambiguous per-trait LD has an explicit set status. Existing gbayes partition capture supplies joint regional events only for exactly matching disjoint groups; marker sharing is not reconstructed from marginal PIPs. Numerical fitting remains in gbayes, interpretation in gmap and score application in gscore. Native gmap fitting routes retain their existing independence from the gbayes R package; the saved common-fit adapter requires it.
Common multivariate IBSS fitting
msbayes(method="mvsusie", algorithm="ibss") and msbayes(method="multisusie", algorithm="ibss") expose the existing native gbayes engines through the common result boundary. Thin Rcpp conversions reuse gbayes’s checked LD cache and public native fitters. There is no gmap R runtime dependency or duplicated inference loop. gbase owns bounded full-LD preparation; temporary resources are labelled and released after fitting.
The shared-LD mvSuSiE route keeps standardized summary units and trait activity PIPs. The independent-study MultiSuSiE route keeps checked OLS coordinates and union assignment PIPs. Its per-trait PIPs remain unavailable. Typed components, assignment matrices, moments, objective histories and convergence/learning diagnostics pass through bayesfit and fit_contract(). IBSS has no MCMC chains, burn-in or exact continuation. Regional sets and sharing interpretation remain with gmap. The saved-fit adapter accepts MCMC C/R and full-domain IBSS results. For IBSS it checks the supplied LD against saved resource checksums and reuses the direct gmap component-set helpers. Existing regional LD preparation can reconstruct temporary fitted resources from the supplied Glist; the resulting checksums must match. No sampler or IBSS update is run by the adapter.
Source adapters for exact Bayesian residual learning
Pending batch gbayes 0.1.16 exposes existing native informed scalar and independent-provider residual variance learning through BayesC MCMC in bayes/sbayes and joint BayesC/BayesR MCMC in msbayes. The R layer checks normalization/labels and the Rcpp layer dispatches to native gbayes; numerical updates remain owned there. Genuine terminal effects are formatted separately from restart states, which the provider engine does not support. The source adapters/tests/docs await the batch build and runtime checks. See the exact residual contract.
Source population-shrinkage adapters
Pending gbayes 0.1.16 reuses native fit_population_shrinkage and fit_panther_reference behind msbayes continuous_shrinkage/mcmc. R owns population, marker/reference and hierarchy admission; the Rcpp bridge owns serial chain orchestration and result transport, reusing existing diagnostic formatters. Native gbayes retains every statistical transition and dense-block reservation. The common contract identifies population effect axes and one phenotype; continuous priors do not create spike PIPs. Source tests/docs are written, with build/runtime validation deferred. See the population contract.
Source scalar summary IBSS adapter
Pending gbayes 0.1.16 exposes native fit_multi_effect through sbayes multi_effect/ibss. Raw OLS preparation reuses exported gmap_stat; prepared cross-products avoid any mandatory gmap dependency. The bridge composes public gsolve eigensystem and gbayes factor/response APIs, matching gmap full-rank binding without linking to private gmap headers or moving inference ownership. The common contract preserves OLS units and conditional assignment meanings. Builds/runtime validation are deferred; see the scalar IBSS contract.
Source weighted elastic-net adapter
Pending gbayes 0.1.16 adds scalar and joint packed marker L1/L2 multipliers through bayes/mbayes elastic_net/coordinate_descent. R validates labelled weights and owns the common handoff; Rcpp converts empirical-SD penalties to the native HWE sum-scale and reuses public prepare_individual_bed plus fit_l1_quadratic. Native gbayes retains all coordinate/residual/KKT optimization. The joint bridge calls additive native fit_individual_weighted_covariance_elastic_net, reusing the packed multivariate preparer and covariance operator with marker scales on full precision blocks. Native signatures/result layouts are preserved; the new symbol requires a native rebuild before the R package at the batch checkpoint. No dense genotype/ Gram or sibling private-code dependency is added. Builds/runtime acceptance is deferred; see the weighted penalty contract.
The source scalar sbayes weighted adapter reuses checked marginal-summary alignment/conversion and public native disk_ld_cross_products, prepare_summary_gaussian/common_n and fit_l1_quadratic. It needs no further native source/API changes. The Rcpp layer only binds penalties/controls and normalizes diagnostics; no coordinate optimizer or dense LD is copied. Effects retain standardized summary units with no training coding/intercept. Supplied PSD reference LD is an assumption, not certified or repaired by this adapter. Numerical tests/builds remain deferred to the same batch checkpoint.
The joint summary weighted entry now reuses public multivariate preparation and an additive native fit_summary_weighted_covariance_elastic_net binding. The native Coupled operator accepts optional shared likelihood precision; existing CrossProducts residuals and fit_l1_quadratic retain all optimization. Independent losses normalize each provider by its own N/residual scale; shared-LD uses common N and fixed sampling precision. Penalty K remains separate. The full-panel, one-provider-per-trait route preserves saved provider maps in fit_contract. No dense global LD or solver is moved into Rcpp. Native signatures/result layouts remain compatible; the new summary symbol requires the deferred native rebuild.
Source prepared-design Gaussian and penalty adapters
Pending gbayes 0.1.16 admits scalar bayes X and exact blr inputs for existing marker_gaussian/pcg and elastic_net/coordinate_descent. R owns labelled sample/ feature preparation, bounded dense crossprod and existing full Gram validation. Rcpp constructs public native dense_cross_products and calls the existing marker Gaussian mean bridge or fit_l1_quadratic, including fixed means/weights. No numerical optimizer or new native owner API is introduced.
Already prepared X retains supplied feature coordinates; only the response is centered. Prediction requires prepared target features with identity coding. Exact blr retains supplied coding and never reconstructs genotypes or GWAS scales. The common contract explicitly labels these feature units, including the scalar blr companion, without adding PIPs/mapping. Dense preparation is bounded and budgeted before Gram/eigensystem work. Sparse/streamed, nuisance-covariate and joint generic adapters remain separate. Build/runtime acceptance is deferred; see the prepared-design contract.
Source streamed mixture and candidate adapters
Pending 0.1.16 adds scalar bayes normal_mixture/vbayes and a streamed X route for laplace_gaussian/vbayes. A labelled matrix or synchronous column-reader descriptor implements the public gsolve RidgeDesignSource interface. The Rcpp adapter only validates/copies columns and binds fixed priors/options; native fit_variational_prediction owns QR projection, chunk products, conditional moments, objective audits and candidate retirement. No solver, prior formula, storage format or native owner API is added.
Input component variances are preserved by compensating the native mixture normalization in total prior variance. Fixed covariates include an explicit intercept and are separate from feature priors. Candidate batches return named ordinary bayesfit entries in bayesfit_batch, with shared execution diagnostics; they are not traits or selection decisions. The native memory planner runs before reads after reserving bridge/output/chunk/history space. Sources/caller storage remain outside the numeric bound. No whole-panel Gram is formed. Saved results omit reader closures and handles; prediction takes supplied target features/fixed covariates. Compile/reference checks remain deferred. See the streamed contract.
Scalar Gaussian co-data is also source-ready in pending gbayes 0.1.16 through bayes marker_gaussian/gaussian with prior$coData. R owns labelled design/coding validation and the common saved-result contract; installed native gbayes owns one-group-set moments, hypershrinkage, optional bounded known-noise ML and exact Gaussian fitting/prediction. Sparse Matrix input uses the installed CSC operator; no solver or sibling source is copied. Numeric bounds, zero-mean/no-intercept semantics and absent posterior uncertainty are explicit. Builds/runtime checks remain deferred; see the design.
The pending scalar co-data adapter now also uses native fit_gaussian_co_data_multi for named annotation sets, within-set group learning, shared global variance selection and native set-weight inference. The same marker_gaussian/gaussian family, effect units, frozen coding and prediction contract apply. Native NNLS remains owned by gsolve through gbayes; R does not implement a weight solver. See the multiple-set contract. Source tests/docs are prepared; build/runtime qualification remains pending.
Pending co-data source adapters now forward saved feature-group splits to native one-/multiple-set path construction and hyper-ridge tuning. The selector remains marker_gaussian/gaussian, with hyperLambda=0 and explicit split membership. R owns label/partition validation and the saved contract; native gbayes/gsolve own equations, paths and search. No patient-fold selector or numerical engine is added to R. See the contract. Builds and numerical execution remain deferred.
Scalar co-data source now forwards native joint_noise_ml for a one-time shared residual/global variance profile before group/tuning/set-weight stages. Native gbayes retains estimation, identification and operation accounting; R validates explicit ratio bounds, rejects ignored fixed-variance inputs and saves actual variance units/stage through the common descriptor. No numerical fitter or joint-trait interface is added. See the contract. Compilation and numerical acceptance remain pending.
Supplied-fold co-data initialization is now source-ready through gscore 0.1.2 co_data_cv and gbayes 0.1.16 co_data_cv_statistics/bayes. gscore owns the independent selection rule, profile verification and refit orchestration; gbayes retains all numerical fold/variance/annotation fitting. The explicit optional R workflow dependency uses public interfaces, without root imports or copied sibling code. Saved provenance distinguishes initializer tuning from final-model/outer validation and the final conditional fixed-pair fit. See the contract. Build/runtime qualification is pending.
YAML model discovery is shared by the standalone and developer launchers through model_capabilities.py. The strict Model validator remains authoritative; describe reports effective inference/output contracts after validation. The capability inventory is included in source and binary frontend installations, and distinguishes existing Gaussian YAML routes from missing Bayesian dispatch and absent threshold animal models. See standalone models.
The optional evaluation bundle builds gsim as a separate owned application. Its new R and standalone adapters call one native workflow using the existing identity-keyed RNG, meiosis and packed-storage implementations; legacy R entry points remain unchanged. The existing native-cache and binary installer gain an optional gsim/case payload. Cases remain in gsuite; no simulation algorithms are vendored into the fitting frontend. See the smoke workflow in benchmarks/single_step_scaling/evaluation-bundle.md.
Routine YAML execution/output defaults are resolved once by Model, after relationship/effect validation and before existing native lowering. describe records inferred choices in defaulted_settings; validate, prepare and run use the same resolution. Explicit controls override one shared set of defaults. No solver, simulation algorithm or acceptance gate is implemented in this layer.
Windows runtime packaging also carries the existing models/ catalogue and fixtures directly from the paired Linux source archive. The shared cases/ catalogue owns linked simulation/fitting recipes and documents where the standalone generator does not express a model’s generating process. The full model catalogue is not treated as a Cartesian product with simulation controls.
For a supplied sparse relationship precision, gs_relationship_matrix() can forward complete exact covariance diagonal/log-determinant metadata with explicit caller SPD certification to greml’s existing scalable constructor. Default calls keep bounded dense verification unchanged. The caller must derive the metadata from the same covariance/precision pair, retain its numerical checks and provenance, and satisfy resource limits. This adds an R bridge, not an estimator or numerical algorithm.