Appendix
Run the verification scripts
Run these commands from the repository root. The supplied scripts use base R; no additional R packages are required for these exercises.
Rscript scripts/R/03-verify-sample-matching.R
Rscript scripts/R/04-verify-microbiome.R
Rscript scripts/R/05-verify-rnaseq.R
Rscript scripts/R/06-verify-singlecell.R
Rscript scripts/R/07-verify-proteomics.R
Rscript scripts/R/08-verify-gwas.RRun one script at a time and inspect its outputs before continuing. These are targeted verification exercises, not complete omics pipelines.
| Chapter | Output folder | Main evidence |
|---|---|---|
| ABE-003 | results/ch03/ |
Identifier checks and sample membership |
| ABE-004 | results/ch04/ |
Per-sample summaries and paired changes |
| ABE-005 | results/ch05/ |
Design rank and illustrative result checks |
| ABE-006 | results/ch06/ |
Donor proportions, pooled summaries, and fictional marker checks |
| ABE-007 | results/ch07/ |
Missingness and imputation sensitivity |
| ABE-008 | results/ch08/ |
Pooled and within-group carrier odds ratios |
| ABE-009 | results/ch09/ |
Independent report, evidence log, and calculation records |
ABE-009 has no supplied verification script: choose your own tool and retain the calculations. ABE-010 records your development plan in results/10-development-plan.md.
Understand the outputs
A script completing successfully means its instructions ran. Some exercises deliberately report failed checks, such as mismatched identifiers or a rank-deficient design. Read the findings before deciding whether an analysis is usable.
The scripts overwrite their named outputs on rerun. Preserve previous results before changing inputs. Keep original teaching files separate from experimental copies, and document any modification.
Reference tables for ABE-004 through ABE-008 were calculated independently with Python. The R scripts were not executed in the authoring environment. Record your own observed results and software details; expected tables are comparison aids, not proof of an R execution.
Evaluation labels
| Label | Use when… |
|---|---|
| Supported | Inspected evidence supports the claim within its stated scope. |
| Incorrect | A check demonstrates an error or contradiction. |
| Not established | Evidence is insufficient to decide. |
| Not applicable | A criterion falls outside the task; give a reason. |
For issues requiring action, assign Blocking, Major, or Minor according to scientific consequence. Use none when no correction is needed. Split statements that combine correct calculations with unsupported conclusions.
Troubleshooting
| Problem | First check or action |
|---|---|
Rscript is not found |
Check whether R is installed and accessible from the terminal. Alternatively, use source("scripts/R/<script-name>.R") in an R session opened at the repository root, replacing the placeholder with the actual filename. |
| An input file cannot be opened | Check your working directory and the extracted folder structure. In R, getwd() shows the current directory. |
| An assertion fails | Inspect the message and corresponding input. Do not remove the check merely to let the script continue. |
| Results differ from a reference | Compare input versions, identifiers, denominators, and numeric precision. Save the discrepancy before editing anything. |
| A chapter link cannot be resolved | Confirm that both the link and _quarto.yml use the current filename. Microbiome is 04-microbiome-case.qmd; RNA-seq is 05-rnaseq-case.qmd. |
| Rendering produces no analysis outputs | Run the verification scripts separately. Display-only code fences and eval: false keep analysis execution separate from book rendering. |
A genuine error may be in the input, environment, or supplied script. Document it before proposing a correction.
Reusable templates
The ABE-009 package provides:
templates/independent-evaluation-report.qmdtemplates/independent-evidence-log.tsvtemplates/independent-self-assessment.md
Copy them into your exercise output folder before editing. An evidence record should identify the claim, source location, check, observed result, judgment, consequence, and recommended action.
Scientific foundations
Microbiome interpretation: Relative abundance describes composition and does not directly establish absolute microbial quantities (Gloor et al. 2017).
RNA-seq study design: Complete confounding prevents separate estimation of batch and condition effects (Analyzing RNA-seq Data with DESeq2 n.d.).
Single-cell replication: Comparisons across conditions must account for biological replication rather than treating cells from the same donor as independent biological replicates (Squair et al. 2021).
Proteomics missingness: Interpretation depends on the missing-data mechanism and assumptions used for imputation (Lazar et al. 2016).
GWAS population structure: Genetic structure can confound association estimates and requires appropriate assessment and adjustment (Price et al. 2006).