schema: gsuite.model/v1-draft
name: boa_cor_reml
traits:
- trait1
inputs:
  records:
    type: table
    file: ../frozen-inputs/rhe/cases/192-boa-cor-reml/data/observations.csv
    id: id
    columns:
      individual: individual
      time: time
    responses:
      trait1: y
  grid:
    type: table
    file: ../frozen-inputs/rhe/cases/192-boa-cor-reml/design/grid.csv
    id: id
    columns:
      individual: individual
      time: time
  pedigree:
    type: pedigree
    file: ../frozen-inputs/rhe/cases/192-boa-cor-reml/design/pedigree.csv
    columns:
      individual: individual
      parent1: sire
      parent2: dam
  phase:
    type: phased_ancestry
    hap: ../frozen-inputs/rhe/cases/192-boa-cor-reml/design/panel.hap
    samples: ../frozen-inputs/rhe/cases/192-boa-cor-reml/design/samples.csv
    markers: ../frozen-inputs/rhe/cases/192-boa-cor-reml/design/markers.csv
    ancestry_samples: ../frozen-inputs/rhe/cases/192-boa-cor-reml/design/samples.csv
    ancestry_markers: ../frozen-inputs/rhe/cases/192-boa-cor-reml/design/markers.csv
    ancestry_h1: ../frozen-inputs/rhe/cases/192-boa-cor-reml/design/a1.bin
    ancestry_h2: ../frozen-inputs/rhe/cases/192-boa-cor-reml/design/a2.bin
    ancestries:
    - breedA
    - breedB
    frequencies: ../frozen-inputs/rhe/cases/192-boa-cor-reml/design/frequencies.csv
    phase_alignment: phase-one
    ancestry_phase_alignment: phase-one
relationships:
  A:
    type: pedigree
    input: pedigree
covariances:
  from_fit: results/vc/run.json
model:
  data: records
  fixed: '1'
  random:
    genetic:
      type: boa
      mode: BOA_COR
      group: individual
      pedigree: A
      ancestry: phase
      base_covariance: K0
      genomic_residual:
        diagonal: 0.1
      components:
        first:
          markers:
          - m0
          - m1
          - m2
          covariance: S1
        second:
          markers:
          - m3
          - m4
          - m5
          covariance: S2
    pe:
      group: individual
      covariance: PE
  residual: R
analysis:
  task: solve
execution:
  formulation: ss_snp_boa
  solver: pcg
  sparse_backend: pardiso
  preconditioner: qnn_reuse
  threads: 4
output:
  directory: results/blup
  predictions:
    genetic_values:
      effects:
      - genetic
      levels: all
    total:
      effects:
      - genetic
      - pe
      data: grid
  uncertainty:
    method: exact
    maximum_solves: 2
    covariance: full
    contrasts:
      candidate:
      - prediction: genetic_values
        level: i16
        trait: trait1
        weight: 1
      joint:
      - prediction: total
        record: g0
        trait: trait1
        weight: 1
