/targets_vcf_example

Example variant calling workflow using R targets package

Primary LanguageRMIT LicenseMIT

targets_vcf_example

This is an example workflow using the targets R package. It is based on the Data Carpentry Variant Calling Workflow lesson.

Dependencies

Docker is used to run various programs. The docker daemon needs to be running so that containers can be launched. conda is used to maintain the environment for running Docker.

Restore the conda environment used by this project, called vcf-example-env:

conda env create -f environment.yml

Enter the environment:

conda activate vcf-example-env

The vcf-example-env environment includes R, which is used to run the workflow. The renv R package is used to maintain packages. The first time the analysis is run, you will need to restore the packages with renv:

Rscript -e 'renv::restore()'

Running the analysis

Activate the vcf-example-env environment, then run Rscript -e 'targets::tar_make()'.

License

MIT