| Title: | Comprehensive Reproducibility Framework for R and Bioinformatics Analysis |
|---|---|
| Description: | A comprehensive reproducibility framework designed for R and bioinformatics workflows. Automatically captures the entire analysis environment including R session info, package versions, external tool versions (Samtools, STAR, BWA, etc.), conda environments, reference genomes, data provenance with smart checksumming for large files, parameter choices, random seeds, and hardware specifications. Generates executable scripts with Docker, Singularity, and renv configurations. Integrates with workflow managers (Nextflow, Snakemake, WDL, CWL) to ensure complete reproducibility of computational research workflows. |
| Authors: | Abu SAADAT [aut, cre] (ORCID: <https://orcid.org/0000-0001-9636-2513>, affiliation: Università degli Studi della Campania Luigi Vanvitelli) |
| Maintainer: | Abu SAADAT <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.2.0 |
| Built: | 2026-10-18 10:31:39 UTC |
| Source: | https://github.com/SAADAT-Abu/Capsule |
Captures the current global environment state including objects and their types
capture_environment( output_file = NULL, include_values = FALSE, max_size = 1024 * 1024 )capture_environment( output_file = NULL, include_values = FALSE, max_size = 1024 * 1024 )
output_file |
Character. Path to save environment info. If NULL, returns as list. |
include_values |
Logical. Whether to include object values (for small objects). Default FALSE. |
max_size |
Numeric. Maximum object size (in bytes) to include values. Default 1MB. |
A list containing environment information
## Not run: x <- 1:10 y <- "test" capture_environment("env_state.json") ## End(Not run)## Not run: x <- 1:10 y <- "test" capture_environment("env_state.json") ## End(Not run)
Capture hardware specifications including CPU, RAM, and GPU information. Useful for documenting computational resources used in analysis.
capture_hardware(output_file = NULL)capture_hardware(output_file = NULL)
output_file |
Character. Path to save hardware info. If NULL, returns as list. |
List containing hardware information
## Not run: capture_hardware("hardware_info.json") ## End(Not run)## Not run: capture_hardware("hardware_info.json") ## End(Not run)
Captures comprehensive R session information including R version, platform, loaded packages, system information, and locale settings.
capture_session(output_file = NULL, format = c("json", "yaml", "rds"))capture_session(output_file = NULL, format = c("json", "yaml", "rds"))
output_file |
Character. Path to save the session info. If NULL, returns as list. |
format |
Character. Output format: "json", "yaml", or "rds". Default is "json". |
A list containing session information, invisibly returned
## Not run: # Capture session info to JSON capture_session("session_info.json") # Capture and return as list info <- capture_session() ## End(Not run)## Not run: # Capture session info to JSON capture_session("session_info.json") # Capture and return as list info <- capture_session() ## End(Not run)
Capture version information for system libraries that R packages depend on (e.g., libcurl, libxml2, BLAS/LAPACK implementations)
capture_system_libraries(output_file = NULL)capture_system_libraries(output_file = NULL)
output_file |
Character. Path to save library info. If NULL, returns as list. |
List containing system library information
## Not run: capture_system_libraries("system_libs.json") ## End(Not run)## Not run: capture_system_libraries("system_libs.json") ## End(Not run)
Compare two Capsule snapshots to identify differences in packages, parameters, data files, and other tracked components
compare_snapshots(snapshot1, snapshot2, output_file = "snapshot_comparison.md")compare_snapshots(snapshot1, snapshot2, output_file = "snapshot_comparison.md")
snapshot1 |
Character. Name of first snapshot |
snapshot2 |
Character. Name of second snapshot |
output_file |
Character. Path to save comparison report. Default "snapshot_comparison.md" |
List containing comparison results
## Not run: compare_snapshots("analysis_v1", "analysis_v2") ## End(Not run)## Not run: compare_snapshots("analysis_v1", "analysis_v2") ## End(Not run)
Generate an renv-compatible lockfile for package reproducibility
create_renv_lockfile(output_file = "renv.lock", project_path = ".")create_renv_lockfile(output_file = "renv.lock", project_path = ".")
output_file |
Character. Path to save lockfile. Default "renv.lock". |
project_path |
Character. Path to project. Default is current directory. |
Path to created lockfile
## Not run: create_renv_lockfile("renv.lock") ## End(Not run)## Not run: create_renv_lockfile("renv.lock") ## End(Not run)
Generate a comprehensive markdown report documenting all reproducibility information
create_repro_report( output_file = "reproducibility_report.md", analysis_name = NULL, include_package_list = TRUE )create_repro_report( output_file = "reproducibility_report.md", analysis_name = NULL, include_package_list = TRUE )
output_file |
Character. Path to save the report. Default "reproducibility_report.md" |
analysis_name |
Character. Name of the analysis |
include_package_list |
Logical. Include full package list. Default TRUE. |
Path to generated report
## Not run: create_repro_report("report.md", "main_analysis") ## End(Not run)## Not run: create_repro_report("report.md", "main_analysis") ## End(Not run)
Export Capsule data in YAML format suitable for CWL workflows
export_for_cwl(output_file = "capsule_cwl_inputs.yml")export_for_cwl(output_file = "capsule_cwl_inputs.yml")
output_file |
Character. Path to save inputs. Default "capsule_cwl_inputs.yml" |
List containing input data
## Not run: export_for_cwl("reproflow_cwl_inputs.yml") ## End(Not run)## Not run: export_for_cwl("reproflow_cwl_inputs.yml") ## End(Not run)
Export all Capsule tracking data in a format suitable for Nextflow pipelines
export_for_nextflow( output_file = "capsule_manifest.json", include_checksums = TRUE )export_for_nextflow( output_file = "capsule_manifest.json", include_checksums = TRUE )
output_file |
Character. Path to save manifest. Default "capsule_manifest.json" |
include_checksums |
Logical. Include file checksums. Default TRUE. |
List containing manifest data
## Not run: export_for_nextflow("reproflow_manifest.json") ## End(Not run)## Not run: export_for_nextflow("reproflow_manifest.json") ## End(Not run)
Export all Capsule tracking data in YAML format for Snakemake pipelines
export_for_snakemake( output_file = "capsule_config.yaml", include_checksums = TRUE )export_for_snakemake( output_file = "capsule_config.yaml", include_checksums = TRUE )
output_file |
Character. Path to save config. Default "capsule_config.yaml" |
include_checksums |
Logical. Include file checksums. Default TRUE. |
List containing config data
## Not run: export_for_snakemake("reproflow_config.yaml") ## End(Not run)## Not run: export_for_snakemake("reproflow_config.yaml") ## End(Not run)
Export Capsule data in JSON format suitable for WDL workflows
export_for_wdl(output_file = "capsule_inputs.json")export_for_wdl(output_file = "capsule_inputs.json")
output_file |
Character. Path to save config. Default "capsule_inputs.json" |
List containing config data
## Not run: export_for_wdl("reproflow_inputs.json") ## End(Not run)## Not run: export_for_wdl("reproflow_inputs.json") ## End(Not run)
Generate a Dockerfile and docker-compose.yml for complete environment reproducibility
generate_docker( output_dir = ".", r_version = NULL, base_image = "rocker/r-ver", system_deps = NULL, project_name = "reproflow-project", include_rstudio = FALSE )generate_docker( output_dir = ".", r_version = NULL, base_image = "rocker/r-ver", system_deps = NULL, project_name = "reproflow-project", include_rstudio = FALSE )
output_dir |
Character. Directory to save Docker files. Default is current directory. |
r_version |
Character. R version to use. Default is current R version. |
base_image |
Character. Base Docker image. Default "rocker/r-ver" |
system_deps |
Character vector. System dependencies to install |
project_name |
Character. Name for the project |
include_rstudio |
Logical. Include RStudio Server. Default FALSE. |
List of generated file paths
## Not run: generate_docker( output_dir = ".", project_name = "my_analysis", system_deps = c("libcurl4-openssl-dev", "libxml2-dev") ) ## End(Not run)## Not run: generate_docker( output_dir = ".", project_name = "my_analysis", system_deps = c("libcurl4-openssl-dev", "libxml2-dev") ) ## End(Not run)
Generate an executable R script that includes all reproducibility information including package versions, seeds, parameters, and data verification.
generate_repro_script( script_file, source_script = NULL, analysis_name = "analysis", include_renv = TRUE, include_data_check = TRUE, include_session_info = TRUE )generate_repro_script( script_file, source_script = NULL, analysis_name = "analysis", include_renv = TRUE, include_data_check = TRUE, include_session_info = TRUE )
script_file |
Character. Path to save the generated script |
source_script |
Character. Original analysis script to include |
analysis_name |
Character. Name for this analysis |
include_renv |
Logical. Include renv initialization. Default TRUE. |
include_data_check |
Logical. Include data verification. Default TRUE. |
include_session_info |
Logical. Include session info at end. Default TRUE. |
Path to generated script
## Not run: generate_repro_script( "analysis_reproducible.R", source_script = "analysis.R", analysis_name = "main_analysis" ) ## End(Not run)## Not run: generate_repro_script( "analysis_reproducible.R", source_script = "analysis.R", analysis_name = "main_analysis" ) ## End(Not run)
Generate a Singularity/Apptainer definition file for HPC environments. Singularity is commonly used in HPC clusters where Docker is not available.
generate_singularity( output_dir = ".", r_version = NULL, base_image = "rocker/r-ver", conda_env = NULL, system_deps = NULL, project_name = "reproflow-project" )generate_singularity( output_dir = ".", r_version = NULL, base_image = "rocker/r-ver", conda_env = NULL, system_deps = NULL, project_name = "reproflow-project" )
output_dir |
Character. Directory to save Singularity files. Default "." |
r_version |
Character. R version to use. Default is current R version. |
base_image |
Character. Base Docker image. Default "rocker/r-ver" |
conda_env |
Character. Path to conda environment file. Optional. |
system_deps |
Character vector. System dependencies to install |
project_name |
Character. Name for the project |
List of generated file paths
## Not run: generate_singularity( output_dir = ".", project_name = "my_analysis", system_deps = c("samtools", "bwa") ) ## End(Not run)## Not run: generate_singularity( output_dir = ".", project_name = "my_analysis", system_deps = c("samtools", "bwa") ) ## End(Not run)
Retrieve information about tracked conda environments
get_conda_env_info( env_name = NULL, registry_file = ".capsule/conda_registry.json" )get_conda_env_info( env_name = NULL, registry_file = ".capsule/conda_registry.json" )
env_name |
Character. Specific environment name, or NULL for all |
registry_file |
Character. Path to conda registry |
List of environment information
Retrieve complete lineage information for tracked data
get_data_lineage( data_path = NULL, registry_file = ".capsule/data_registry.json" )get_data_lineage( data_path = NULL, registry_file = ".capsule/data_registry.json" )
data_path |
Character. Path to data file. If NULL, returns all lineage. |
registry_file |
Character. Path to provenance registry. |
List containing lineage information
## Not run: # Get lineage for specific file lineage <- get_data_lineage("data/mydata.csv") # Get all lineage all_lineage <- get_data_lineage() ## End(Not run)## Not run: # Get lineage for specific file lineage <- get_data_lineage("data/mydata.csv") # Get all lineage all_lineage <- get_data_lineage() ## End(Not run)
Retrieve parameter tracking history
get_param_history( analysis_name = NULL, registry_file = ".capsule/param_registry.json" )get_param_history( analysis_name = NULL, registry_file = ".capsule/param_registry.json" )
analysis_name |
Character. Specific analysis name, or NULL for all |
registry_file |
Character. Path to parameter registry |
List of parameter records
Retrieve information about tracked reference genomes
get_reference_info( genome_build = NULL, registry_file = ".capsule/reference_registry.json" )get_reference_info( genome_build = NULL, registry_file = ".capsule/reference_registry.json" )
genome_build |
Character. Specific genome build, or NULL for all |
registry_file |
Character. Path to reference registry |
List of reference genome information
## Not run: # Get all tracked references get_reference_info() # Get specific reference get_reference_info("GRCh38") ## End(Not run)## Not run: # Get all tracked references get_reference_info() # Get specific reference get_reference_info("GRCh38") ## End(Not run)
Retrieve seed tracking history
get_seed_history( analysis_name = NULL, registry_file = ".capsule/seed_registry.json" )get_seed_history( analysis_name = NULL, registry_file = ".capsule/seed_registry.json" )
analysis_name |
Character. Specific analysis name, or NULL for all |
registry_file |
Character. Path to seed registry |
List of seed records
Retrieve version information for previously tracked external tools
get_tool_versions( tool_name = NULL, registry_file = ".capsule/tools_registry.json" )get_tool_versions( tool_name = NULL, registry_file = ".capsule/tools_registry.json" )
tool_name |
Character. Specific tool name, or NULL for all tools |
registry_file |
Character. Path to tools registry |
List of tool version information
## Not run: # Get all tracked tools get_tool_versions() # Get specific tool get_tool_versions("samtools") ## End(Not run)## Not run: # Get all tracked tools get_tool_versions() # Get specific tool get_tool_versions("samtools") ## End(Not run)
Initialize Capsule reproducibility framework in the current project. Creates necessary directory structure and configuration files.
init_capsule( project_path = ".", use_renv = TRUE, use_git = TRUE, create_gitignore = TRUE )init_capsule( project_path = ".", use_renv = TRUE, use_git = TRUE, create_gitignore = TRUE )
project_path |
Character. Path to project directory. Default is current directory. |
use_renv |
Logical. Initialize renv for package management. Default TRUE. |
use_git |
Logical. Initialize git if not already present. Default TRUE. |
create_gitignore |
Logical. Create/update .gitignore. Default TRUE. |
Invisible NULL
## Not run: # Initialize Capsule in current directory init_capsule() # Initialize without renv init_capsule(use_renv = FALSE) ## End(Not run)## Not run: # Initialize Capsule in current directory init_capsule() # Initialize without renv init_capsule(use_renv = FALSE) ## End(Not run)
Display a helpful list of common reference genome sources
list_reference_sources()list_reference_sources()
list_reference_sources()list_reference_sources()
List all available snapshots with basic metadata
list_snapshots()list_snapshots()
Data frame with snapshot information
## Not run: list_snapshots() ## End(Not run)## Not run: list_snapshots() ## End(Not run)
Restore a conda environment from a previously exported environment file
restore_conda_env( env_file = "conda_environment.yml", env_name = NULL, use_mamba = FALSE, force = FALSE )restore_conda_env( env_file = "conda_environment.yml", env_name = NULL, use_mamba = FALSE, force = FALSE )
env_file |
Character. Path to environment YAML file. Default "conda_environment.yml" |
env_name |
Character. Name for the new environment. If NULL, uses name from file. |
use_mamba |
Logical. Use mamba instead of conda. Default FALSE. |
force |
Logical. Remove existing environment if it exists. Default FALSE. |
Logical. TRUE if successful, FALSE otherwise
## Not run: # Restore environment from file restore_conda_env("conda_environment.yml") # Use mamba for faster installation restore_conda_env("conda_environment.yml", use_mamba = TRUE) # Force recreate if exists restore_conda_env("conda_environment.yml", force = TRUE) ## End(Not run)## Not run: # Restore environment from file restore_conda_env("conda_environment.yml") # Use mamba for faster installation restore_conda_env("conda_environment.yml", use_mamba = TRUE) # Force recreate if exists restore_conda_env("conda_environment.yml", force = TRUE) ## End(Not run)
Restore a previously tracked random seed
restore_seed(analysis_name, registry_file = ".capsule/seed_registry.json")restore_seed(analysis_name, registry_file = ".capsule/seed_registry.json")
analysis_name |
Character. Name of analysis to restore seed from |
registry_file |
Character. Path to seed registry |
The seed value (invisibly)
## Not run: # Restore previously tracked seed restore_seed("simulation_1") ## End(Not run)## Not run: # Restore previously tracked seed restore_seed("simulation_1") ## End(Not run)
Set a random seed and track it for reproducibility
set_seed( seed = NULL, kind = NULL, normal.kind = NULL, sample.kind = NULL, analysis_name = NULL, registry_file = ".capsule/seed_registry.json" )set_seed( seed = NULL, kind = NULL, normal.kind = NULL, sample.kind = NULL, analysis_name = NULL, registry_file = ".capsule/seed_registry.json" )
seed |
Numeric. Random seed to set. If NULL, generates random seed. |
kind |
Character. RNG kind (see ?set.seed). Default NULL uses current. |
normal.kind |
Character. Normal RNG kind. Default NULL uses current. |
sample.kind |
Character. Sample RNG kind. Default NULL uses current. |
analysis_name |
Character. Name to associate with this seed |
registry_file |
Character. Path to seed registry |
The seed value (invisibly)
## Not run: # Set and track a specific seed set_seed(12345, analysis_name = "simulation_1") # Generate and track a random seed set_seed(analysis_name = "bootstrap_analysis") ## End(Not run)## Not run: # Set and track a specific seed set_seed(12345, analysis_name = "simulation_1") # Generate and track a random seed set_seed(analysis_name = "bootstrap_analysis") ## End(Not run)
Creates a comprehensive snapshot of all installed packages, their versions, dependencies, and sources for reproducibility.
snapshot_packages( output_file = NULL, include_dependencies = TRUE, only_attached = FALSE )snapshot_packages( output_file = NULL, include_dependencies = TRUE, only_attached = FALSE )
output_file |
Character. Path to save package info. If NULL, returns as list. |
include_dependencies |
Logical. Include dependency tree. Default TRUE. |
only_attached |
Logical. Only track attached packages. Default FALSE. |
A list containing package information
## Not run: # Track all installed packages snapshot_packages("package_manifest.json") # Track only attached packages snapshot_packages("packages.json", only_attached = TRUE) ## End(Not run)## Not run: # Track all installed packages snapshot_packages("package_manifest.json") # Track only attached packages snapshot_packages("packages.json", only_attached = TRUE) ## End(Not run)
Create a comprehensive snapshot of the entire workflow including session info, packages, data, parameters, and generate all reproducibility artifacts.
snapshot_workflow( snapshot_name = NULL, analysis_name = "analysis", source_script = NULL, description = NULL, generate_docker = TRUE, generate_script = TRUE, generate_report = TRUE )snapshot_workflow( snapshot_name = NULL, analysis_name = "analysis", source_script = NULL, description = NULL, generate_docker = TRUE, generate_script = TRUE, generate_report = TRUE )
snapshot_name |
Character. Name for this snapshot. Default is timestamp. |
analysis_name |
Character. Name of the analysis |
source_script |
Character. Path to main analysis script |
description |
Character. Description of this workflow |
generate_docker |
Logical. Generate Docker configuration. Default TRUE. |
generate_script |
Logical. Generate reproducible script. Default TRUE. |
generate_report |
Logical. Generate reproducibility report. Default TRUE. |
List containing paths to generated files
## Not run: # Create complete workflow snapshot snapshot_workflow( snapshot_name = "analysis_v1", analysis_name = "main_analysis", source_script = "analysis.R", description = "Initial analysis run" ) ## End(Not run)## Not run: # Create complete workflow snapshot snapshot_workflow( snapshot_name = "analysis_v1", analysis_name = "main_analysis", source_script = "analysis.R", description = "Initial analysis run" ) ## End(Not run)
Export and track a conda environment specification for reproducibility. Works with both conda and mamba.
track_conda_env( env_name = NULL, output_file = "conda_environment.yml", use_mamba = FALSE, registry_file = ".capsule/conda_registry.json" )track_conda_env( env_name = NULL, output_file = "conda_environment.yml", use_mamba = FALSE, registry_file = ".capsule/conda_registry.json" )
env_name |
Character. Name of conda environment. If NULL, uses active environment. |
output_file |
Character. Path to save environment file. Default "conda_environment.yml" |
use_mamba |
Logical. Use mamba instead of conda. Default FALSE. |
registry_file |
Character. Path to conda registry |
List containing environment information
## Not run: # Track currently active conda environment track_conda_env() # Track specific environment track_conda_env(env_name = "bioinfo_env") # Use mamba instead track_conda_env(use_mamba = TRUE) ## End(Not run)## Not run: # Track currently active conda environment track_conda_env() # Track specific environment track_conda_env(env_name = "bioinfo_env") # Use mamba instead track_conda_env(use_mamba = TRUE) ## End(Not run)
Records comprehensive provenance information for data files including checksums, sources, timestamps, and metadata. Supports fast hashing for large files.
track_data( data_path, source = c("downloaded", "generated", "manual", "reference", "other"), source_url = NULL, description = NULL, metadata = NULL, fast_hash = TRUE, size_threshold_gb = 1, registry_file = ".capsule/data_registry.json" )track_data( data_path, source = c("downloaded", "generated", "manual", "reference", "other"), source_url = NULL, description = NULL, metadata = NULL, fast_hash = TRUE, size_threshold_gb = 1, registry_file = ".capsule/data_registry.json" )
data_path |
Character. Path to data file or directory. |
source |
Character. Source of the data (e.g., "downloaded", "generated", "manual", "reference"). |
source_url |
Character. URL if data was downloaded. Optional. |
description |
Character. Description of the data. Optional. |
metadata |
List. Additional metadata. Optional. |
fast_hash |
Logical. Use faster xxHash for large files (>1GB). Default TRUE. |
size_threshold_gb |
Numeric. Size threshold (GB) for using fast hash. Default 1. |
registry_file |
Character. Path to provenance registry. Default ".capsule/data_registry.json". |
A list containing data provenance information
## Not run: # Track a downloaded dataset track_data("data/mydata.csv", source = "downloaded", source_url = "https://example.com/data.csv", description = "Customer data from API" ) # Track generated data track_data("results/simulation.rds", source = "generated", description = "Monte Carlo simulation results" ) # Track large file with fast hashing track_data("data/large_file.bam", source = "generated", fast_hash = TRUE ) ## End(Not run)## Not run: # Track a downloaded dataset track_data("data/mydata.csv", source = "downloaded", source_url = "https://example.com/data.csv", description = "Customer data from API" ) # Track generated data track_data("results/simulation.rds", source = "generated", description = "Monte Carlo simulation results" ) # Track large file with fast hashing track_data("data/large_file.bam", source = "generated", fast_hash = TRUE ) ## End(Not run)
Track versions of external command-line tools commonly used in bioinformatics pipelines (e.g., samtools, STAR, BWA, etc.)
track_external_tools( tools = NULL, registry_file = ".capsule/tools_registry.json" )track_external_tools( tools = NULL, registry_file = ".capsule/tools_registry.json" )
tools |
Character vector of tool names to track. If NULL, tracks common tools. |
registry_file |
Character. Path to tools registry. Default ".capsule/tools_registry.json" |
List containing tool version information
## Not run: # Track common bioinformatics tools track_external_tools() # Track specific tools track_external_tools(c("samtools", "bwa", "STAR")) ## End(Not run)## Not run: # Track common bioinformatics tools track_external_tools() # Track specific tools track_external_tools(c("samtools", "bwa", "STAR")) ## End(Not run)
Record analysis parameters and configuration settings for reproducibility
track_params( params, analysis_name = NULL, description = NULL, registry_file = ".capsule/param_registry.json" )track_params( params, analysis_name = NULL, description = NULL, registry_file = ".capsule/param_registry.json" )
params |
Named list of parameters to track |
analysis_name |
Character. Name/identifier for this analysis |
description |
Character. Description of what these parameters control |
registry_file |
Character. Path to parameter registry |
List containing parameter information
## Not run: # Track model parameters params <- list( learning_rate = 0.01, epochs = 100, batch_size = 32, model_type = "neural_network" ) track_params(params, "model_training", "Deep learning model parameters") ## End(Not run)## Not run: # Track model parameters params <- list( learning_rate = 0.01, epochs = 100, batch_size = 32, model_type = "neural_network" ) track_params(params, "model_training", "Deep learning model parameters") ## End(Not run)
Track reference genome files, annotations, and indices for reproducibility. This is critical for genomics/transcriptomics pipelines where the exact reference version affects results.
track_reference_genome( fasta_path, gtf_path = NULL, gff_path = NULL, genome_build = NULL, species = NULL, source_url = NULL, indices = list(), metadata = list(), registry_file = ".capsule/reference_registry.json" )track_reference_genome( fasta_path, gtf_path = NULL, gff_path = NULL, genome_build = NULL, species = NULL, source_url = NULL, indices = list(), metadata = list(), registry_file = ".capsule/reference_registry.json" )
fasta_path |
Character. Path to reference genome FASTA file |
gtf_path |
Character. Path to GTF annotation file. Optional. |
gff_path |
Character. Path to GFF annotation file. Optional. |
genome_build |
Character. Genome build identifier (e.g., "GRCh38", "mm10") |
species |
Character. Species name (e.g., "Homo sapiens", "Mus musculus") |
source_url |
Character. URL where reference was downloaded from |
indices |
Named list. Paths to aligner indices (STAR, BWA, etc.) |
metadata |
List. Additional metadata about the reference |
registry_file |
Character. Path to reference registry |
List containing reference genome information
## Not run: track_reference_genome( fasta_path = "ref/GRCh38.fa", gtf_path = "ref/gencode.v38.annotation.gtf", genome_build = "GRCh38", species = "Homo sapiens", source_url = "https://www.gencodegenes.org/", indices = list( star = "ref/STAR_index/", bwa = "ref/bwa_index/GRCh38" ) ) ## End(Not run)## Not run: track_reference_genome( fasta_path = "ref/GRCh38.fa", gtf_path = "ref/gencode.v38.annotation.gtf", genome_build = "GRCh38", species = "Homo sapiens", source_url = "https://www.gencodegenes.org/", indices = list( star = "ref/STAR_index/", bwa = "ref/bwa_index/GRCh38" ) ) ## End(Not run)
Verify that tracked data files have not been modified by comparing checksums
verify_data(data_path = NULL, registry_file = ".capsule/data_registry.json")verify_data(data_path = NULL, registry_file = ".capsule/data_registry.json")
data_path |
Character. Path to specific file, or NULL to verify all tracked files. |
registry_file |
Character. Path to provenance registry. |
Logical. TRUE if data is unchanged, FALSE otherwise
## Not run: # Verify specific file verify_data("data/mydata.csv") # Verify all tracked files verify_data() ## End(Not run)## Not run: # Verify specific file verify_data("data/mydata.csv") # Verify all tracked files verify_data() ## End(Not run)