Package: BinaryDosage 2.0.0

BinaryDosage: Creates, Merges, and Reads Binary Dosage Files

Tools to create binary dosage files from either VCF or GEN files, merge binary dosage files, and read binary dosage files. Binary dosage files tend to have quicker read times than VCF and GEN formats. There is a small increase in size compared to compressed VCF and GEN files.

Authors:John Morrison [aut, cre], NCI [fnd], NCI [fnd], NIEHS [fnd], NHLBI [fnd]

BinaryDosage_2.0.0.tar.gz
BinaryDosage_2.0.0.zip(r-4.7-x86_64)BinaryDosage_2.0.0.zip(r-4.7-arm64)BinaryDosage_2.0.0.zip(r-4.6-x86_64)BinaryDosage_2.0.0.zip(r-4.6-arm64)BinaryDosage_2.0.0.zip(r-4.5-x86_64)
BinaryDosage_2.0.0.tgz(r-4.6-x86_64)BinaryDosage_2.0.0.tgz(r-4.6-arm64)BinaryDosage_2.0.0.tgz(r-4.5-x86_64)BinaryDosage_2.0.0.tgz(r-4.5-arm64)
BinaryDosage_2.0.0.tar.gz(r-4.7-arm64)BinaryDosage_2.0.0.tar.gz(r-4.7-x86_64)BinaryDosage_2.0.0.tar.gz(r-4.6-arm64)BinaryDosage_2.0.0.tar.gz(r-4.6-x86_64)
BinaryDosage_2.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
BinaryDosage/json (API)

# Install 'BinaryDosage' in R:
install.packages('BinaryDosage', repos = c('https://jimb3.r-universe.dev', 'https://cloud.r-project.org'))
Uses libs:
  • zlib– Compression library
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

zlibcpp

5.13 score 1 packages 82 scripts 490 downloads 22 exports 37 dependencies

Last updated from:40f112c2b3. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK141
linux-devel-x86_64OK151
source / vignettesOK253
linux-release-arm64OK134
linux-release-x86_64OK171
macos-release-arm64OK176
macos-release-x86_64OK339
macos-oldrel-arm64OK215
macos-oldrel-x86_64OK436
windows-devel-arm64OK363
windows-devel-x86_64OK164
windows-release-arm64OK368
windows-release-x86_64OK116
windows-oldrel-x86_64OK146
wasm-releaseOK123

Exports:bdapplybdmergeclosebd5congenapplygentobdgetaafgetbd5snpgetbd5snp_bufgetbd5snp_congetbdinfogetgeninfogetmafgetrsqgetsnpgetvcfinfomergebdopenbd5consubsetbdupdatebdvcfapplyvcftobdvcftobdlegacy

Dependencies:clicodetoolscpp11data.tablediagramdigestfarverfuturefuture.applyggplot2globalsgluegtableisobandKernSmoothlabelinglatticelavalifecyclelistenvMatrixnumDerivparallellyprodlimprogressrR6RColorBrewerRcpprlangS7scalesshapeSQUAREMsurvivalvctrsviridisLitewithr

Binary Dosage Formats
Format 1 | Format 1.1 | Format 1.2 | Format 2 | Format 2.1 | Format 2.2 | Format 3 | Format 3.1 and 3.3 | Format 3.2 | Format 3.4 | Format 4 | Format 4.1 and 4.3 | Format 4.2 and 4.4 | Minimizing the data stored

Last update: 2026-04-29
Started: 2020-01-13

Estimating Imputed R-squares

Last update: 2026-04-29
Started: 2020-01-13

Genetic File Information
Common section | Binary Dosage Additional Information | VCF File Additional Information | GEN File Additional Information

Last update: 2026-04-29
Started: 2020-01-13

Legacy Binary Dosage Formats (Formats 1-4)
Introduction | Legacy File Formats | Formats 1, 2, and 3 (three-file layout) | Format 1 | Format 2 | Format 3 | Format 4 (single-file layout) | Compressed storage (subformats x.2 and x.4) | Functions Overview | Converting VCF Files | Example files | Basic conversion | Compressed VCF files | Other VCF formats | snpidformat option | bdoptions — calculating per-SNP statistics | Converting GEN Files | Parameters | snpcolumns | impformat | gz | Merging Legacy Binary Dosage Files | Example | Reading Legacy Binary Dosage Files | getbdinfo | bdapply | getsnp | Working Directly with VCF and GEN Files | VCF files | GEN files | Full Workflow Example

Last update: 2026-04-29
Started: 2026-04-29

Merging Files
bdmerge

Last update: 2026-04-29
Started: 2020-01-13

Merging Format 5 Binary Dosage Files
Introduction | Setup | Subject merge | Verifying subject order | SNP merge | Verifying SNP order

Last update: 2026-04-29
Started: 2026-04-29

Reading SNPs from Format 5 Files
Introduction | Setup | getbd5snp | Parameters | Return value | Reading a SNP by index | Reading a SNP by ID | Using getbd5snp in a loop | getbd5snp_buf | Important: R copy-on-modify semantics | Example | getbd5snp_con | Workflow | openbd5con | closebd5con | Choosing a reader

Last update: 2026-04-29
Started: 2026-04-29

Using Binary Dosage files
getbdinfo | bdapply | getsnp

Last update: 2026-04-29
Started: 2020-01-13

Using Format 5 Binary Dosage Files
Introduction | Example files | Converting a VCF file to Format 5 | Loading Format 5 file information | File and format metadata | Sample information | SNP information | Byte offsets | Reading SNP data | Reading a SNP by index | Reading a SNP by ID | Applying a function to all SNPs

Last update: 2026-04-29
Started: 2026-04-29

Using GEN Files
Introduction | GEN file formats | Example files | Converting a GEN file to the Binary Dosage format | Default options | snpcolumns | startcolumn | impformat | chromosome | header parameter | gz | separator | bdfiles | format | subformat | snpidformat | bdoptions | Additional routines | getgeninfo | genapply

Last update: 2026-04-29
Started: 2020-01-13

Using VCF files
Introduction | Example files | Converting a VCF file to the Binary Dosage format | Minimac files | Uncompressed VCF files | No imputation information file | Using the imputation information file | Compressed VCF files | Checking the files | Other VCF file formats | Other vcftobdlegacy options | format and subformat options | snpidformat | bdoptions | Additional routines | getvcfinfo | vcfapply

Last update: 2026-04-29
Started: 2020-01-13