Initializes a registry where Capsule records metadata for this analysis.
library(Capsule)
start_capsule(
analysis_name = "rnaseq_demo",
registry_dir = ".capsule"
)
Explicitly records which reference genome and key analysis thresholds were used.
track_reference_genome(
fasta = "GRCh38.fa",
gtf = "gencode.v44.gtf",
analysis_name = "rnaseq_demo"
)
track_params(
list(alpha = 0.05, lfc_threshold = 1),
analysis_name = "rnaseq_demo",
description = "DESeq2 thresholds"
)
Produces a script plus environment metadata that can be re-run with the same packages and configuration.
generate_repro_script(
script_file = "rnaseq_demo_repro.R",
source_script = "rnaseq_demo.R",
analysis_name = "rnaseq_demo",
include_renv = TRUE,
include_data_check = TRUE,
include_session_info = TRUE
)
“Capsule.” Comprehensive R Archive Network (CRAN), 10 Nov. 2025, cran.r-project.org/web/packages/Capsule/Capsule.pdf. Accessed 16 Dec. 2025.
“Help for package Capsule.” Comprehensive R Archive Network (CRAN), 5 Nov. 2025, cran.r-project.org/web/packages/Capsule/refman/Capsule.html. Accessed 16 Dec. 2025.