Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .github/workflows/basic_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v6

- name: Preserve Joint-RPCA validation report
run: |
cp \
inst/doc/filterRPCAInput_validation/joint-rpca-mia-gemelli-comparison.html \
"$RUNNER_TEMP/joint-rpca-mia-gemelli-comparison.html"


- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
Expand Down Expand Up @@ -63,12 +56,6 @@ jobs:
run: |
PATH=$PATH:$HOME/bin/ Rscript -e 'pkgdown::build_site(".")'

- name: Add Joint-RPCA validation report
run: |
mkdir -p docs/filterRPCAInput_validation
cp \
"$RUNNER_TEMP/joint-rpca-mia-gemelli-comparison.html" \
docs/filterRPCAInput_validation/index.html
- name: Upload pkgdown artifact
if: github.event_name == 'push'
uses: actions/upload-artifact@v4
Expand Down
5,077 changes: 0 additions & 5,077 deletions inst/doc/filterRPCAInput_validation/joint-rpca-mia-gemelli-comparison.html

This file was deleted.

1 change: 1 addition & 0 deletions vignettes/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.html
*.R
!filterRPCAInput_validation/scripts/*.R
85 changes: 0 additions & 85 deletions vignettes/HOWTO_BUILD_WORKSHOP.Rmd

This file was deleted.

14 changes: 7 additions & 7 deletions vignettes/filterRPCAInput-validation.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@ greater-than comparisons.
```{r}
expected_samples <- colSums(count_matrix) > min_sample_count
expected_features <- rowSums(count_matrix) > min_feature_count
feature_prevalence <-
rowSums(count_matrix > 0) / ncol(count_matrix)
expected_features <- expected_features &
rowMeans(count_matrix > 0) > min_feature_frequency
feature_prevalence > min_feature_frequency

stopifnot(
identical(
Expand Down Expand Up @@ -159,11 +161,9 @@ component alignment, sample and feature loadings, explained variation, sample
distances, and cross-validation trajectories.

View the
[rendered Joint-RPCA validation report](https://microbiome.github.io/OMAWorkflows/filterRPCAInput_validation/)
or inspect its reproducibility files under
`inst/doc/filterRPCAInput_validation/`,
`inst/extdata/filterRPCAInput_validation/`, and
`inst/scripts/filterRPCAInput_validation/`.
[complete Joint-RPCA validation report](https://microbiome.github.io/OMAWorkflows/articles/joint-rpca-mia-gemelli-comparison.html)
or inspect the
[reproducibility files](https://github.com/microbiome/OMAWorkflows/tree/devel/vignettes/filterRPCAInput_validation).

# References

Expand All @@ -176,4 +176,4 @@ dynamics. *Nature Biotechnology*, 39, 165-168.

```{r}
sessionInfo()
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
This guide runs the numbered scripts and then renders one complete HTML report.
You only need to enter the locations on your computer once in each environment.

The rendered report is published at
[the OMAWorkflows website](https://microbiome.github.io/OMAWorkflows/filterRPCAInput_validation/).
The rendered report is published as a pkgdown article:
[Joint-RPCA mia–Gemelli comparison](https://microbiome.github.io/OMAWorkflows/articles/joint-rpca-mia-gemelli-comparison.html).

## Repository locations

The reproducibility files are stored in standard package locations:
The reproducibility files are stored together with the vignette:

- report source, rendered report, and this guide:
`inst/doc/filterRPCAInput_validation/`;
- run configuration: `inst/extdata/filterRPCAInput_validation/config.tsv`;
- executable scripts: `inst/scripts/filterRPCAInput_validation/`.
- report source:
`vignettes/joint-rpca-mia-gemelli-comparison.qmd`;
- setup guide, configuration, scripts, and precomputed report assets:
`vignettes/filterRPCAInput_validation/`.

For an independent run, copy the report source and configuration into one
working directory, create a `scripts/` subdirectory, and copy the four
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
modality selected_variant selected_assay main_features selected_features shared_samples alternative_experiments
MGX main mgx 170 170 60 kingdom;phylum;class;order;family;genus;strain;original
MTX main mtx 800 800 60 gene_function;gene_taxon
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
modality features samples zero_fraction non_integer_fraction detected_scale
MGX 170 60 0.681078431372549 0.318921568627451 non_integer_abundance
MTX 800 60 0.308729166666667 0.691270833333333 non_integer_abundance
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
stage status primary_result interpretation
Configuration PASS identical fields = 11/11 All shared filtering, rank, iteration, split-size, and seed settings must match.
Filtering PASS exact retained ID sets = TRUE; minimum Jaccard = 1 This must match exactly before interpreting the ordination.
rclr preprocessing PASS minimum missingness agreement = 1; maximum absolute difference = 7.5495e-15 Missingness should match exactly and numeric differences should be at floating-point scale.
Sample scores DESCRIPTIVE minimum aligned Spearman correlation = 1 Higher aligned correlations indicate similar component-wise sample placement.
Sample subspace DESCRIPTIVE Procrustes correlation = 1; relative error = 2.6281e-15 High correlation and low relative error indicate similar global sample geometry.
Feature loadings DESCRIPTIVE minimum aligned Spearman correlation = 1 Higher aligned correlations indicate similar modality-specific feature patterns.
Singular values DESCRIPTIVE maximum relative difference = 6.5857e-15 Compare corresponding components after applying only the sample-derived sign correction.
Percent variance DESCRIPTIVE maximum absolute percentage-point difference = 1.4921e-13 Gemelli proportions were converted to percent before comparison.
Sample distances DESCRIPTIVE Spearman correlation = 1; Pearson correlation = 1 High correlations indicate similar pairwise sample geometry.
CV trajectory DESCRIPTIVE maximum RMSE across mean/std trajectories = 1.0402e-13 This is diagnostic and may vary with package and linear-algebra versions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mia_component gemelli_component sign sample_score_scale_factor
PC1 PC1 1 0.999999999999999
PC2 PC2 -1 0.999999999999999
PC3 PC3 1 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
field mia_value gemelli_value identical
run_label frequency_010 frequency_010 TRUE
data_variant main main TRUE
min_sample_count 0 0 TRUE
min_feature_count 0 0 TRUE
min_feature_frequency 0.1 0.1 TRUE
n_components 3 3 TRUE
max_iterations 5 5 TRUE
n_test_samples 10 10 TRUE
seed 42 42 TRUE
expected_mia_version 1.21.6 1.21.6 TRUE
expected_mia_commit 25fa7bb51792566131f2bd8d07b4ebd1fde54b38 25fa7bb51792566131f2bd8d07b4ebd1fde54b38 TRUE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
metric iterations spearman pearson root_mean_squared_error
mean_CV 5 1 1 8.97227271408944e-14
std_CV 5 1 1 1.04019306746447e-13
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
iteration gemelli_mean_CV mia_mean_CV mean_CV_difference gemelli_std_CV mia_std_CV std_CV_difference
1 122.392199209017 122.392199209017 -1.84741111297626e-13 98.1121083250345 98.1121083250347 2.1316282072803e-13
2 75.2041669553809 75.2041669553809 1.4210854715202e-14 29.4711263069991 29.4711263069991 1.77635683940025e-14
3 51.1356888648722 51.1356888648722 3.5527136788005e-14 34.9892542707158 34.9892542707158 2.1316282072803e-14
4 26.4879046563161 26.487904656316 -5.32907051820075e-14 14.4952642261867 14.4952642261866 -8.88178419700125e-14
5 30.8030503706242 30.8030503706242 4.2632564145606e-14 8.98979102158603 8.98979102158603 -1.77635683940025e-15
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
common_samples spearman pearson mean_absolute_difference max_absolute_difference
60 1 1 3.97108585813665e-16 1.99840144432528e-15
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
modality component features spearman pearson
MGX PC1 119 1 1
MGX PC2 119 1 1
MGX PC3 119 1 1
MTX PC1 785 1 1
MTX PC2 785 1 1
MTX PC3 785 1 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
modality mia_features gemelli_features feature_sets_identical feature_order_identical feature_jaccard mia_samples gemelli_samples sample_sets_identical sample_order_identical sample_jaccard
MGX 119 119 TRUE TRUE 1 60 60 TRUE TRUE 1
MTX 785 785 TRUE TRUE 1 60 60 TRUE TRUE 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
common_samples components relative_frobenius_error procrustes_correlation
60 3 2.62813118385605e-15 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
modality common_features common_samples missingness_agreement max_absolute_difference mean_absolute_difference
MGX 119 60 1 7.54951656745106e-15 1.99156540418163e-15
MTX 785 60 1 7.54951656745106e-15 1.66893903908174e-15
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mia_component gemelli_component sign scale_factor spearman pearson
PC1 PC1 1 0.999999999999999 1 1
PC2 PC2 -1 0.999999999999999 1 1
PC3 PC3 1 1 1 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
component gemelli_component mia_value gemelli_value absolute_difference relative_difference
PC1 PC1 24.910519821045 24.9105198210449 7.105427357601e-14 2.85238020267974e-15
PC2 PC2 19.2986001080818 19.2986001080818 1.06581410364015e-14 5.52275345191392e-16
PC3 PC3 13.4864332834734 13.4864332834733 8.88178419700125e-14 6.58571766924114e-15
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
component gemelli_component mia_percent gemelli_percent absolute_difference
PC1 PC1 52.8179738741672 52.8179738741671 6.3948846218409e-14
PC2 PC2 31.7006210781684 31.7006210781685 1.49213974509621e-13
PC3 PC3 15.4814050476644 15.4814050476643 8.34887714518118e-14
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
modality features_before features_after samples_before samples_after r_frequency_proportion gemelli_frequency_percent
MGX 170 119 60 60 0.1 10.0
MTX 800 785 60 60 0.1 10.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package version
python 3.8.20
gemelli 0.0.12
numpy 1.23.5
pandas 2.0.3
scikit-bio 0.5.9
biom-format 2.1.13
gemelli-commit not-recorded
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
modality features_before features_after_first_pass features_after samples_before samples_after_first_pass samples_after
MGX 170 119 119 60 60 60
MTX 800 785 785 60 60 60
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
item value
mia_version 1.21.6
mia_commit 25fa7bb51792566131f2bd8d07b4ebd1fde54b38
expected_mia_version 1.21.6
expected_mia_commit 25fa7bb51792566131f2bd8d07b4ebd1fde54b38
data_variant main
frequency_unit proportion_0_to_1
r_version R version 4.5.3 (2026-03-11 ucrt)
platform x86_64-w64-mingw32
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ execute:
warning: false
message: false
error: false
vignette: >
%\VignetteEngine{quarto::html}
%\VignetteIndexEntry{Reproducible Joint-RPCA validation}
%\VignetteEncoding{UTF-8}
---

```{r}
Expand All @@ -23,7 +27,14 @@ execute:

project_root <- Sys.getenv("MIA_GEMELLI_PROJECT", unset = "")
if (!nzchar(project_root)) {
project_root <- getwd()
input_file <- knitr::current_input(dir = TRUE)
input_directory <- dirname(
normalizePath(input_file, winslash = "/", mustWork = TRUE)
)
project_root <- file.path(
input_directory,
"filterRPCAInput_validation"
)
}
project_root <- normalizePath(project_root, winslash = "/", mustWork = TRUE)

Expand Down Expand Up @@ -105,11 +116,11 @@ numerical structure when both implementations receive:
- the same number of components and iterations.

The full installation and execution instructions are in
[README.md](https://github.com/microbiome/OMAWorkflows/blob/devel/inst/doc/filterRPCAInput_validation/README.md). The computational details remain in the numbered
[README.md](https://github.com/microbiome/OMAWorkflows/blob/devel/vignettes/filterRPCAInput_validation/README.md). The computational details remain in the numbered
scripts; this report contains only the small amount of code needed to display
their validated outputs. No machine-specific path is fixed in this report: it
uses `MIA_GEMELLI_PROJECT` when defined, or the folder from which the report is
rendered.
uses `MIA_GEMELLI_PROJECT` when defined. Otherwise, it uses the
`filterRPCAInput_validation` support directory beside this vignette.

::: {.callout-important}
Filtering and rCLR agreement must be established before differences in
Expand Down
Loading