DOI: 10.18129/B9.bioc.megadepth    

This is the development version of megadepth; for the stable release version, see megadepth.

megadepth: BigWig and BAM related utilities

Bioconductor version: Development (3.17)

This package provides an R interface to Megadepth by Christopher Wilks available at It is particularly useful for computing the coverage of a set of genomic regions across bigWig or BAM files. With this package, you can build base-pair coverage matrices for regions or annotations of your choice from BigWig files. Megadepth was used to create the raw files provided by

Author: Leonardo Collado-Torres [aut] , David Zhang [aut, cre]

Maintainer: David Zhang <david.zhang.12 at>

Citation (from within R, enter citation("megadepth")):


To install this package, start R (version "4.3") and enter:

if (!require("BiocManager", quietly = TRUE))

# The following initializes usage of Bioc devel


For older versions of R, please refer to the appropriate Bioconductor release.


To view documentation for the version of this package installed in your system, start R and enter:



HTML R Script megadepth quick start guide
PDF   Reference Manual


biocViews Coverage, DataImport, Preprocessing, RNASeq, Software, Transcriptomics
Version 1.9.0
In Bioconductor since BioC 3.12 (R-4.0) (2 years)
License Artistic-2.0
Imports xfun, utils, fs, GenomicRanges, readr, cmdfun, dplyr, magrittr
Suggests covr, knitr, BiocStyle, sessioninfo, rmarkdown, rtracklayer, derfinder, GenomeInfoDb, tools, RefManageR, testthat
SystemRequirements megadepth ()
Depends On Me
Imports Me dasper, ODER
Suggests Me
Links To Me
Build Report  

Package Archives

Follow Installation instructions to use this package in your R session.

Source Package megadepth_1.9.0.tar.gz
Windows Binary
macOS Binary (x86_64)
macOS Binary (arm64)
Source Repository git clone
Source Repository (Developer Access) git clone
Package Short Url
Package Downloads Report Download Stats

Documentation »


R / CRAN packages and documentation

Support »

Please read the posting guide. Post questions about Bioconductor to one of the following locations: