Skip to content

Commit b4bb622

Browse files
committed
Built site for prolfqua@1.6.2: 81eb50a
1 parent 341ec80 commit b4bb622

216 files changed

Lines changed: 2541 additions & 729 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CLAUDE.html

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CLAUDE.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,23 @@ autoload is disabled.
6868
└── Returns a Facade with uniform API:
6969
$get_contrasts(), $get_missing(), $get_Plotter(), $to_wide()
7070

71-
### Facade Pattern (`ContrastsFacades.R`, `build_contrast_analysis.R`)
71+
### Facade Pattern (`ContrastsFacades.R`, `ContrastsChildToParentFacades.R`, `build_contrast_analysis.R`)
7272

7373
[`build_contrast_analysis()`](https://wolski.github.io/prolfqua/reference/build_contrast_analysis.md)
7474
is the recommended entry point. Each method dispatches to a Facade class
7575
that wires strategy → model → contrasts → moderation internally.
7676

77-
**Aggregated input** (protein-level, `subject_Id == hierarchy_keys`):
78-
`lm`, `rlm`, `lm_missing`, `lm_impute`, `limma`, `deqms`, `firth`
77+
Facades split by input/output hierarchy shape:
7978

80-
**Nested input** (peptide-level, `subject_Id` is strict subset of
81-
`hierarchy_keys`): `lmer`, `ropeca`
79+
**Aggregated input** (same-level, protein → protein FC;
80+
`subject_Id == hierarchy_keys`) — `R/ContrastsFacades.R`: `lm`, `rlm`,
81+
`lm_missing`, `lm_impute`, `limma`, `limma_impute`, `limma_voom`,
82+
`limma_voom_impute`, `deqms`, `deqms_voom`, `firth`, `limpa`
83+
84+
**Nested input** (child → parent, peptide/precursor → protein FC;
85+
`subject_Id` is strict subset of `hierarchy_keys`) —
86+
`R/ContrastsChildToParentFacades.R`: `lmer_nested`, `ropeca_nested`,
87+
`firth_nested`, `limpa_nested`
8288

8389
### Weights & `nr_children`
8490

@@ -216,8 +222,8 @@ downstream packages.
216222
`options(prolfqua.vectorize = TRUE)` activates vectorized
217223
implementations of `compute_contrast` and `linfct_matrix_contrasts`
218224
(matrix multiplication instead of per-row loops). Affects all Wald test
219-
facades (lm, rlm, firth, lmer) and limma’s linfct path. Results are
220-
numerically identical. Default is `FALSE`.
225+
facades (lm, rlm, firth, firth_nested, lmer_nested) and limma’s linfct
226+
path. Results are numerically identical. Default is `FALSE`.
221227

222228
## Testing
223229

articles/Comparing2Groups.html

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

articles/Comparing2Groups.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ sessionInfo()
529529
## [34] grid_4.5.2 jomo_2.7-6 xtable_1.8-8
530530
## [37] mice_3.19.0 ggplot2_4.0.3 scales_1.4.0
531531
## [40] iterators_1.0.14 MASS_7.3-65 cli_3.6.6
532-
## [43] crayon_1.5.3 UpSetR_1.4.0 rmarkdown_2.31
532+
## [43] crayon_1.5.3 UpSetR_1.4.1 rmarkdown_2.31
533533
## [46] ragg_1.5.2 reformulas_0.4.4 generics_0.1.4
534534
## [49] otel_0.2.0 httr_1.4.8 minqa_1.2.8
535535
## [52] cachem_1.1.0 operator.tools_1.6.3.1 splines_4.5.2

articles/ContrastFacade2Factor.html

Lines changed: 14 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

articles/ContrastFacade2Factor.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -425,32 +425,31 @@ proteins that plain lm could not estimate
425425

426426
## Peptide-input facades
427427

428-
The mixed-effects `lmer` facade and `ropeca` require lower-level
429-
measurements below the analysis subject. The `firth` facade can also
430-
operate directly on peptide-level `LFQData`. `firth` is shown a second
431-
time here on purpose, because it can also be fitted on peptide input.
432-
All three still return protein-level contrasts.
428+
The mixed-effects `lmer_nested` facade and `ropeca_nested` require
429+
lower-level measurements below the analysis subject. The `firth_nested`
430+
facade is the peptide-input variant of `firth` shown above. All three
431+
still return protein-level contrasts.
433432

434433
``` r
435434
fa_lmer_2f <- build_contrast_analysis(
436435
lfq_peptide_2f,
437436
"~ Subgroup + (1 | peptide_Id) + (1 | sampleName)",
438437
contrasts_2f,
439-
method = "lmer"
438+
method = "lmer_nested"
440439
)
441440

442441
fa_ropeca_2f <- build_contrast_analysis(
443442
lfq_peptide_2f,
444443
"~ Subgroup",
445444
contrasts_2f,
446-
method = "ropeca"
445+
method = "ropeca_nested"
447446
)
448447

449448
fa_firth_peptide_2f <- build_contrast_analysis(
450449
lfq_peptide_2f,
451450
"~ Subgroup",
452451
contrasts_2f,
453-
method = "firth"
452+
method = "firth_nested"
454453
)
455454
```
456455

@@ -474,11 +473,11 @@ results_peptide_2f |>
474473
```
475474

476475
## # A tibble: 3 × 2
477-
## facade n_results
478-
## <chr> <int>
479-
## 1 firth 240
480-
## 2 lmer 179
481-
## 3 ropeca 231
476+
## facade n_results
477+
## <chr> <int>
478+
## 1 firth_nested 240
479+
## 2 lmer_nested 179
480+
## 3 ropeca_nested 231
482481

483482
``` r
484483
ggplot(results_peptide_2f, aes(x = diff, y = -log10(p.value), color = significant)) +
@@ -560,7 +559,7 @@ sessionInfo()
560559
## [31] nnet_7.3-20 grid_4.5.2 jomo_2.7-6
561560
## [34] mice_3.19.0 scales_1.4.0 iterators_1.0.14
562561
## [37] MASS_7.3-65 cli_3.6.6 crayon_1.5.3
563-
## [40] UpSetR_1.4.0 rmarkdown_2.31 ragg_1.5.2
562+
## [40] UpSetR_1.4.1 rmarkdown_2.31 ragg_1.5.2
564563
## [43] reformulas_0.4.4 generics_0.1.4 otel_0.2.0
565564
## [46] httr_1.4.8 minqa_1.2.8 cachem_1.1.0
566565
## [49] operator.tools_1.6.3.1 splines_4.5.2 vctrs_0.7.3
1.17 KB
Loading

0 commit comments

Comments
 (0)