This R package makes the process of generating fragment density plots
(also known as “V-plots”) straightforward. V-plots have been introduced
for the first time
by the Henikoff lab in 2011. Recently, V-plots have proven to be very
instructive to understand the molecular organization of the chromatin.
For instance, the
nucleoATAC
package relies on cross-correlation of ATAC-seq fragment density plots to
accurately map nucleosome occupancy along the genome. VplotR aim is to streamline the process of generating V-plots. It contains
wrapping functions to import paired-end sequencing bam files and generate
V-plots around genomic loci of interest. VplotR is designed around ggplot2 and
makes full use of its potential. As such, it is easy to generate V-plots
in batches and combine them with other plots to make
publication-ready figures.
VplotR documentation
VplotR documentation is available here
or directly within R:
vignette("VplotR")
V-plots: what they are and how to interpret them
V-plots are two-dimensional plots of paired-end sequencing fragments from
chromatin accessibility assays (e.g. ATAC-seq, MNase-seq or DNAse-seq) of
from chromatin immunoprecipitation assays (i.e. ChIP-seq).
The x axis represents the distance between sequencing fragments and genomic
loci of interest (e.g. nucleosome-depleted regions, or NDR), while the y axis
indicates the length of the sequenced fragments. The color scale indicates
the density of fragments mapping over aggregated genomic loci of interest.
Thus, V-plots can reveal where protein bound to DNA (e.g. nucleosomes)
protect it from digestion.
System requirements
VplotR has been tested on Mac OS (>= 10.13), Ubuntu (>= 18.04) and Windows Server (2012). VplotR requires R >= 4.0 and is available from Bioconductor (release > 3.12).
Installation
VplotR and all its dependencies can be installed from Bioconductor:
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("VplotR")
library("VplotR")
VplotR developpment version can be installed from Github as follows:
The main user-level functions of VplotR are getFragmentsDistribution(),
plotVmat(), plotFootprint() and plotProfile().
getFragmentsDistribution() computes the distribution of fragment sizes
over sets of genomic ranges;
plotVmat() is used to compute fragment density and generate V-plots;
plotFootprint() generates the MNase-seq or ATAC-seq footprint at a
set of genomic ranges.
plotProfile() is used to plot the distribution of paired-end fragments
at a single locus of interest.
See the package vignette
for an in-depth introduction to the package functionalities and
the reference
for a full description of each function, a list of the available data
provided in the package and examples of use cases.
Getting started with VplotR
Plotting a V-plot
V-plots can be generated using the plotVmat() function:
data(MNase_sacCer3_Henikoff2011)
data(ABF1_sacCer3)
p <- plotVmat(
x = MNase_sacCer3_Henikoff2011,
granges = ABF1_sacCer3
)
p
Importing sequencing fragments as GRanges
Paired-end .bam files are imported using the importPEBamFiles()
function as follows:
VplotR
Introduction
This R package makes the process of generating fragment density plots (also known as “V-plots”) straightforward. V-plots have been introduced for the first time by the Henikoff lab in 2011. Recently, V-plots have proven to be very instructive to understand the molecular organization of the chromatin. For instance, the nucleoATAC package relies on cross-correlation of ATAC-seq fragment density plots to accurately map nucleosome occupancy along the genome.
VplotR aim is to streamline the process of generating V-plots. It contains wrapping functions to import paired-end sequencing bam files and generate V-plots around genomic loci of interest.
VplotR is designed around ggplot2 and makes full use of its potential. As such, it is easy to generate V-plots in batches and combine them with other plots to make publication-ready figures.
VplotR documentation
VplotR documentation is available here or directly within R:
V-plots: what they are and how to interpret them
V-plots are two-dimensional plots of paired-end sequencing fragments from chromatin accessibility assays (e.g. ATAC-seq, MNase-seq or DNAse-seq) of from chromatin immunoprecipitation assays (i.e. ChIP-seq).
The x axis represents the distance between sequencing fragments and genomic loci of interest (e.g. nucleosome-depleted regions, or NDR), while the y axis indicates the length of the sequenced fragments. The color scale indicates the density of fragments mapping over aggregated genomic loci of interest.
Thus, V-plots can reveal where protein bound to DNA (e.g. nucleosomes) protect it from digestion.
System requirements
VplotR has been tested on Mac OS (
>= 10.13), Ubuntu (>= 18.04) and Windows Server (2012).VplotR requires
R >= 4.0and is available from Bioconductor (release> 3.12).Installation
VplotR and all its dependencies can be installed from Bioconductor:
VplotR developpment version can be installed from Github as follows:
Citation
If you are using VplotR in your research, please cite:
Main functions
The main user-level functions of VplotR are
getFragmentsDistribution(),plotVmat(),plotFootprint()andplotProfile().getFragmentsDistribution()computes the distribution of fragment sizes over sets of genomic ranges;plotVmat()is used to compute fragment density and generate V-plots;plotFootprint()generates the MNase-seq or ATAC-seq footprint at a set of genomic ranges.plotProfile()is used to plot the distribution of paired-end fragments at a single locus of interest.See the package vignette for an in-depth introduction to the package functionalities and the reference for a full description of each function, a list of the available data provided in the package and examples of use cases.
Getting started with VplotR
Plotting a V-plot
V-plots can be generated using the
plotVmat()function:Importing sequencing fragments as
GRangesPaired-end
.bamfiles are imported using theimportPEBamFiles()function as follows:Plotting fragment size distribution
The distribution of fragment sizes can be computed with the
getFragmentsDistribution()function:Datasets provided in VplotR
Several dataset samples are provided as
GRangesobject in this package:.bamfile sample containing 100,000 reads mapped to C. elegans:For a full list of the data available in this package, please go to the reference page.
Contributions
Code contributions, bug reports, fixes and feature requests are most welcome. Please make any pull requests against the master branch at https://github.com/js2264/VplotR and file issues at https://github.com/js2264/VplotR/issues.
Feel free to reach out to J. Serizay for any query.
License
VplotR is licensed under the GPL-3 license.
Code of Conduct
Please note that
VplotRis released with a Contributor Code of Conduct.By contributing to this project, you agree to abide by its terms.