Skip to content

Feature/relationship matrix#95

Open
wvjgsuhp wants to merge 6 commits into
feature/adjacency-metricfrom
feature/relationship-matrix
Open

Feature/relationship matrix#95
wvjgsuhp wants to merge 6 commits into
feature/adjacency-metricfrom
feature/relationship-matrix

Conversation

@wvjgsuhp
Copy link
Copy Markdown
Contributor

@wvjgsuhp wvjgsuhp commented May 7, 2026

The rendered vignette: genetic_relationship.html

wvjgsuhp and others added 3 commits May 8, 2026 00:17
Introduces an optional `relationship` argument to `calculate_adjacency_score()`
and `speed()`, letting neighbour pairs contribute a graded similarity from a
user-supplied matrix instead of a strict identity match. `speed()` validates
and pre-flattens the matrix once before the SA loop via the new exported
`prep_relationship()` helper.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Walks through a 16-treatment, 4-group blocked design and contrasts the
default identity-only optimisation against `speed()` driven by a
relationship matrix.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
.Rbuildignore: exclude .claude/ and Rplots.pdf from package builds.
.gitignore: exclude *.local.json.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@wvjgsuhp wvjgsuhp requested a review from rogerssam May 7, 2026 14:50
wvjgsuhp and others added 2 commits May 9, 2026 20:15
speed() forwards these explicitly from optim_params() while also
splatting `...` to the objective function, so a direct
`speed(..., bal_weight = 2)` triggered "matched by multiple actual
arguments". `speed()` now stops with a message pointing the caller at
`optimise_params = optim_params(...)`.

Factor the dots guard and the pre-loop relationship prep into
`.reject_optim_params_in_dots()` and `.prep_dots()` helpers.

Vignette `genetic_relationship.qmd` gains a "Per-Pair Similarities"
example with closely-related-pair highlighting.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow input of genetic relationship matrix for designs to optimise relationship adjacency

1 participant