Manipulate and Visualize VCF Data
Overview
Facilitates easy manipulation of variant call format (VCF) data. Functions are provided to rapidly read from and write to VCF files. Once VCF data is read into R a parser function extracts matrices of data. This information can then be used for quality control or other purposes. Additional functions provide visualization of genomic data. Once processing is complete data may be written to a VCF file (*.vcf.gz). It also may be converted into other popular R objects (e.g., genlight, DNAbin). VcfR provides a link between VCF data and familiar R software.
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: vcfR/tests/testthat/test_genetic_diff.R (.Dim: 2, .Dimnames: 2, .Label: 1) vcfR/tests/testthat/test_genotype_matrix_functions.R (.Dim: 1, .Dimnames: 1) '.Dim' should be changed to 'dim'. '.Dimnames' should be changed to 'dimnames'. '.Label' should be changed to 'levels'.
- NOTE8 OK, 5 NOTENow
- NOTE11 OK, 2 NOTE2026-07-16
- OK12 OK2026-04-25
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 47 (2 internal)includes a package overview page
- Examples that run
- 93%27 run in a plain check · 2 never run
- Exported functions with examples
- 66%
- Documented parameters
- 100%
- Return-value docs
- 49%
- Help pages citing references
- 2%
- Converting data HTML
- Introduction to vcfR HTML
- vcf data HTML
- vcfR workflow HTML
Downloads
Repository
- PRs merged (all time)
- 71%
- Median days to close, 50 most recently updated closed issues
- 12
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
6 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/knausb/vcfr on 2026-10-25.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing vcfR adds 25 packages (15 with compiled code, 26 MB of source tarballs). Heaviest: stringi 11 MB, pinfsc50 3.3 MB, Rcpp 1.8 MB.
Show all 33 packagesHide all 33 packages
Code & Tests
Datasets
People & History
Show 6 peopleHide 6 people
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.16.0Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.15.02023-12-08 · diff ↗ ·
removed 20 exports
.CM_to_NM, .NM2winNM, .elementNumber, .extract_GT_to_CM, .extract_haps, .grepa, .gt_to_popsum, .rank_variants, .read_body_gz, .read_meta_gz, .seq_to_rects, .shankaR, .vcf_stats_gz, .window_init, .windowize_NM, .windowize_annotations, .windowize_fasta, .windowize_variants, .write_fasta, .write_vcf_body - RR 4.3.0 released · 2023-04-21
- 1.14.02023-02-10 · diff ↗
- 1.13.0
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- unarchivedReturned to CRAN2020-09-01
- 1.12.02020-09-01 · diff ↗
- archivedRemoved from CRAN2020-07-05check issues were not corrected in time
- 1.11.02020-06-05 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.10.02020-02-06 · diff ↗
Show 15 earlier eventsHide 15 earlier events
- 1.9.0
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- 1.8.0
- 1.7.02018-02-08 · diff ↗
- 1.6.02017-12-08 · diff ↗ ·
added 25 exports
.CM_to_NM, .NM2winNM, .elementNumber, .extract_GT_to_CM, .extract_haps, .grepa, .gt_to_popsum, .rank_variants, .read_body_gz, .read_meta_gz, .seq_to_rects, .shankaR, .vcf_stats_gz, .window_init, .windowize_NM, .windowize_annotations, .windowize_fasta, .windowize_variants, .write_fasta, .write_vcf_body, freq_peak_plot, pairwise_genetic_diff, peak_to_ploid, rePOS, vcfR2migrate - 1.5.0
- RR 3.4.0 released · 2017-04-21
- 1.4.02017-01-07 · diff ↗
- 1.3.02016-12-08 · diff ↗ ·
added 11 exports
INFO2df, freq_peak, getALT, getFILTER, getID, getINFO, getREF, masplit, metaINFO2df, ordisample, queryMETA - 1.2.0
- 1.1.02016-05-26 · diff ↗ ·
removed 1 export
windowizeadded 9 exports
%>%, AD_frequency, addID, extract_gt_tidy, extract_info_tidy, is.het, maf, vcfR2tidy, vcf_field_names - RR 3.3.0 released · 2016-05-03
- 1.0.02016-02-22
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2016-02-22
- Total releases
- 17 / 10 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.0.1
- Bundled data
- 651 KB / 4 files
- Download size
- 1.5 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("vcfR")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1111/1755-0998.12549, 10.1101/041277.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.