Table of Contents
dNdS-Fun is implemented as an R package, which can be installed from GitHub by:
Installation #
Install as an R Package #
Requirements:R version > 4.0.5
To install dNdS-Fun from GitHub using devtools, run the following commands in R:
if (!requireNamespace("devtools", quietly = TRUE))
install.packages("devtools")
devtools::install_github("jianyanglab/dNdS-Fun", build_vignettes = FALSE)
Install from Source Code #
Requirements:
- parallel (version >= 4.0.5)
- data.table (version >= 1.16.4)
- MASS (version >= 7.3.56)
- doParallel (version >= 1.0.17)
- foreach (version >= 1.5.2)
- GenomicRanges (install via Bioconductor, version >= 1.42.0)
- Biostrings (install via Bioconductor, version >= 2.58.0)
- tabix (command-line tool, version >= 0.2.6)
Installation Steps: #
- Install necessary R packages:
# Install Bioconductor manager if not already installed if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") # Install required CRAN packages install.packages(c("parallel", "data.table", "MASS", "doParallel", "foreach")) # Install required Bioconductor packages BiocManager::install(c("GenomicRanges", "Biostrings"))
- Install tabix:
- On Linux: Use your package manager, e.g., sudo apt-get install tabix.
- On macOS: Use Homebrew, e.g., brew install htslib.
- On Windows: Precompiled binaries are available; ensure tabix is added to your system PATH.
- Clone the dNdS-Fun repository and install:
bashgit clone https://github.com/jianyanglab/dNdS-Fun.git
Then, from within R:
setwd("path_to_dNdS-Fun") install.packages(".", repos = NULL, type = "source")