Visit us at Fulcrum Genomics to learn more about how we can power your Bioinformatics with rd4 and beyond.
The Dense Depth Data Dump (D4) format provides fast analysis and compact storage of quantitative genomics datasets. rd4
provides R bindings for reading and querying D4 files. For full details on the format, see Hou et al..
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("rd4")
library(rd4)
browseVignettes("rd4")
Consider using renv to isolate an R environment for rd4
development.
Note: these steps have already been done for rd4
and don't need to be repeated by new developers.
- rextendr package
- Instructions on setting up and developing a package
Build Rust code
cd src/rust/
cargo build
Build and check R package within an R session
# Set working directory to package root
setwd(".")
# Compile Rust code into R functions and auto-generate R documentation (yes, rextendr::document() does both)
rextendr::document()
# Load the package
devtools::load_all()
# Run tests
devtools::test()
# Run CRAN and/or Bioconductor checks
devtools::check()
BiocCheck::BiocCheck()
cd src/rust/
cargo test
Auto-generated R code produced by rextendr
may not satisfy formatting requirements for Bioconductor or CRAN. Consider using an automatic formatter like formatr to auto-format before submission, or the Code -> Reformat Code
workflow in Rstudio.