Repository navigation
Getting Started
This page takes you from installation to a first analysis. Begin with a small VCF and a new output directory. Do not start by enabling every optional module.
Docker is the simplest evaluation path because R, popgenVCF, BCFtools, and the required system libraries are packaged together.
docker pull ghcr.io/duceppemo/popgenvcf:latestFor production, use the immutable digest recorded by the corresponding GitHub Release:
docker pull ghcr.io/duceppemo/popgenvcf@sha256:<digest>Install R 4.3 or newer, BCFtools, and HTSlib first:
git clone https://github.com/duceppemo/popgenVCF.git
cd popgenVCF
Rscript install_popgenVCF.RFor Conda/Mamba or HPC, use Deployment and Troubleshooting.
The minimum input is a diploid, biallelic SNP VCF:
-
.vcf; - BGZF
.vcf.gzwith.tbior.csi; - BGZF
.vcf.gzwithout an index; - ordinary gzip
.vcf.gz; - sorted or unsorted input.
popgenVCF reuses a valid index. Otherwise it uses BCFtools to create a sorted, BGZF-compressed and indexed working copy. Preserve the original input and its checksum.
Metadata are optional. When supplied, the required sample column must match
every VCF sample identifier exactly and uniquely. An optional alias provides
a public label without changing the immutable VCF/GDS identity:
sample alias population latitude longitude location
Sample01 Ottawa_01 Ontario 45.4215 -75.6972 Ottawa
Sample02 NA Ontario 45.4200 -75.6900 Ottawa
Sample03 Montreal_01 Quebec 45.5019 -73.5674 Montreal
Sample04 Montreal_02 Quebec NA NA Montreal
Matching is case-sensitive. A mismatch is fatal because silent reordering could attach population or location information to the wrong individual.
Coordinates must be signed decimal degrees in latitude-longitude order: north and east are positive, south and west are negative. Do not use DMS, compass suffixes, UTM, or projected coordinates.
Use NA for unavailable optional values and keep every sample row. Missing
aliases fall back to sample; incomplete coordinate pairs exclude only that
sample spatially, while any missing population disables population modules.
See the User Guide metadata contract for all supported columns, identity rules, and missing-data behavior.
With Docker, run from the directory containing the VCF:
docker run --rm --user "$(id -u):$(id -g)" \
-e HOME=/tmp -v "$PWD:/data" \
ghcr.io/duceppemo/popgenvcf:latest \
--write-config /data/analysis.ymlFor a local installation:
Rscript -e 'popgenVCF::cli_main(c("--write-config", "analysis.yml"))'Use container paths in a Docker configuration:
input:
vcf: /data/cohort.vcf.gz
metadata: /data/metadata.tsv
output:
directory: /data/results
compute:
threads: 4
seed: 42
qc:
maf: 0.05
max_sample_missing: 0.20
report:
enabled: trueFor VCF-only operation, omit metadata or set it to null.
Docker:
docker run --rm --user "$(id -u):$(id -g)" \
-e HOME=/tmp -v "$PWD:/data" \
ghcr.io/duceppemo/popgenvcf:latest \
--config /data/analysis.ymlLocal R:
Rscript -e 'popgenVCF::cli_main(c("--config", "analysis.yml"))'Open these files first:
-
analysis_capabilities.tsv— modules available from the supplied input; -
analysis_execution_plan.tsv— dependency-resolved plan; -
analysis_execution_ledger.tsv— success, failure, blocking, retries, and timeouts; -
analysis_validation.tsv— module validation results; -
analysis_summary.tsv— stable run summary; -
sessionInfo.txt— R and package environment.
A skipped module is not a negative biological result. A failed, blocked, or timed-out module must not be interpreted.
popgenVCF documentation · Repository · pkgdown · Issues · MIT License
Users
Validators
Developers
Maintainers