• Stars
    star
    153
  • Rank 243,368 (Top 5 %)
  • Language
    R
  • License
    Other
  • Created about 9 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

chromatin Variability Across Regions (of the genome!)

Build Status

chromVAR

chromVAR is an R package for the analysis of sparse chromatin accessibility data from single cell or bulk ATAC or DNAse-seq data. The package aims to identify motifs or other genomic annotations associated with variability in chromatin accessibility between individual cells or samples. For a more detail overview of the method, please see the publication (pdf, supplement).

For a paper evaluating chromVAR and other methods as a method for enabling clustering of single cells, see the preprint from Huidong Chen et al. Using kmers + PCA appears to be the best variant of chromVAR for clustering, but newer methods such as SnapATAC outperform chromVAR for the clustering tasks evaluated in the paper. chromVAR may be complementary to some other methods, as a way of annotating TF motif usage in cells & clusters rather than cluster identification or embedding.

Installation

The recommended installation method for chromVAR is using BiocManager. You will first have to have installed the BiocManager package .

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install("chromVAR")

A number of needed packages are installed in this process. One of the dependencies has a system requirement for the gsl library, so if this is not installed already it may need to be installed separately. Several people have reported issues with the GO.db package (a dependency of one of the dependencies) not being installed automatically -- if you see an error relating to that package, try installing it separately first (BiocManager::install("GO.db")).

For Windows users, some have reported that the S4Vector dependency does not currently function on windows R 3.3.3, but that installation was successful on R 3.3.2.

For Mac users, some have encountered installation difficulties relating to compiling the C++ code. If you encounter problems, please see the threads and advice in Issues 11 and 20.

Two additional packages that are recommended and used in the vignettes:

Additionally, the package chromVARmotifs can be useful for loading additional motif collections:

  • chromVARmotifs - available on GitHub

Parallelization

Before running chromVAR functions, it is advisable to use the register function from BiocParallel to specify your preferred method of parallelization. For unix systems,

library(BiocParallel)
register(MulticoreParam(8)) # Use 8 cores

For Windows, MulticoreParam will not work, but you can use SnowParam:

register(SnowParam(SnowParam(workers=1, type = "SOCK")))

Even if you don't want to use more than one core, it is recommended to explicitly register that choice using SerialParam:

register(SerialParam())

Please see the documentation for BiocParallel for more information about the register function and the various options for multi-processing.

Quickstart

library(chromVAR)
library(motifmatchr)
library(BSgenome.Hsapiens.UCSC.hg19)

### Example of how to read in counts -------------------------------------------

# Caution: FAKE FILENAMES -- Replace with real as appropriate! If you want to 
# run on example data in package, start at next section with example_counts data

peakfile <- "mypeaks.bed"
peaks <- getPeaks(peakfile)

bamfiles <- c("mybam1.bam","mybam2.bam")
fragment_counts <- getCounts(bamfiles, peaks, 
                              paired =  TRUE, 
                              by_rg = TRUE, 
                              format = "bam", 
                              colData = DataFrame(celltype = c("GM","K562")))

### ----------------------------------------------------------------------------

### Using example counts from package ------------------------------------------

data(example_counts, package = "chromVAR")
example_counts <- addGCBias(example_counts, 
                              genome = BSgenome.Hsapiens.UCSC.hg19)
counts_filtered <- filterSamples(example_counts, min_depth = 1500,
                                  min_in_peaks = 0.15)
counts_filtered <- filterPeaks(counts_filtered)
motifs <- getJasparMotifs()
motif_ix <- matchMotifs(motifs, counts_filtered,
                         genome = BSgenome.Hsapiens.UCSC.hg19)

# computing deviations
dev <- computeDeviations(object = counts_filtered, 
                                 annotations = motif_ix)

See documentation website for more information!

More Repositories

1

ArchR

ArchR : Analysis of Regulatory Chromatin in R (www.ArchRProject.com)
R
380
star
2

NucleoATAC

nucleosome calling using ATAC-seq
Python
106
star
3

10x-scATAC-2019

Publication Page for Satpathy*, Granja* et al 2019
R
92
star
4

MPAL-Single-Cell-2019

Publication Page for MPAL Paper 2019
R
76
star
5

motifmatchr

Fast motif matching in R
C++
41
star
6

brainchromatin

Code used to analyze single cell RNA and ATAC sequencing in developing human brain
R
31
star
7

NucleoATACR

R package for reading in & working with NucleoATAC outputs
R
26
star
8

chromVARmotifs

R package with motifs for use with chromVAR
R
24
star
9

scScalpChromatin

R
22
star
10

ArchR_2020

Publication Page for ArchR Manuscript 2020
HTML
22
star
11

ChrAccR

Analyzing chromatin accessibility data in R
R
17
star
12

Brain_ASD

Python
9
star
13

shareseq-pipeline

Python
5
star
14

LKB1_2021

R
3
star
15

NEAT-seq_reproducibility

R
3
star
16

SpearATAC_MS_2021

R
3
star
17

ImagingStationController

Hardware-control software for a sequencing flowcell imaging station based on GAIIx components
MATLAB
2
star
18

puflibs

Python
2
star
19

amplicon-smf

Code for processing single-molecule footprinting data on synthetic amplicons (from Doughty*, Hinks*, Schaepe*, et al. 2024).
Python
2
star
20

snakeATAC_singularity

Python
2
star
21

array_fitting_tools

Python
1
star
22

ChrAccRex

Example data for ChrAccR
R
1
star
23

nnn_paper

Analysis for "High-Throughput DNA melt measurements enable improved models of DNA folding thermodynamics".
Jupyter Notebook
1
star
24

array_analysis

Snakemake pipeline for Greenleaf lab array preprocessing.
Python
1
star
25

matcha

Python library for fast barcode matching in sequencing data
Python
1
star