Skip to content

fulcrumgenomics/rd4

Repository files navigation

rd4

Fulcrum Genomics

Visit us at Fulcrum Genomics to learn more about how we can power your Bioinformatics with rd4 and beyond.

Overview

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..

Installation

if (!require("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("rd4")

Usage

library(rd4)
browseVignettes("rd4")

For developers

R dependencies

Consider using renv to isolate an R environment for rd4 development.

Developing an R package using Rust code

Note: these steps have already been done for rd4 and don't need to be repeated by new developers.

Build and test the package locally

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()

Add new Rust code

rextendr vignette

Test Rust code

cd src/rust/
cargo test

Formatting of auto-generated R code

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.

About

No description, website, or topics provided.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •