Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
6305c5e
bump x.y.z versions to even y prior to creation of RELEASE…
nturaga May 2, 2019
f6960da
bump x.y.z versions to odd y after creation of RELEASE_3_9 branch
nturaga May 2, 2019
7a74fdd
bump x.y.z version to even y prior to creation of RELEASE_3_10 branch
nturaga Oct 29, 2019
0a01062
bump x.y.z version to odd y after creation of RELEASE_3_10 branch
nturaga Oct 29, 2019
08e915a
bump x.y.z version to even y prior to creation of RELEASE_3_11 branch
nturaga Apr 27, 2020
2f5251b
bump x.y.z version to odd y following creation of RELEASE_3_11 branch
nturaga Apr 27, 2020
ea35241
bump x.y.z version to even y prior to creation of RELEASE_3_12 branch
nturaga Oct 27, 2020
25bb45c
bump x.y.z version to odd y following creation of RELEASE_3_12 branch
nturaga Oct 27, 2020
2dc5547
bump x.y.z version to even y prior to creation of RELEASE_3_13 branch
nturaga May 19, 2021
debe7b3
bump x.y.z version to odd y following creation of RELEASE_3_13 branch
nturaga May 19, 2021
f4109be
bump x.y.z version to even y prior to creation of RELEASE_3_14 branch
nturaga Oct 26, 2021
2767927
bump x.y.z version to odd y following creation of RELEASE_3_14 branch
nturaga Oct 26, 2021
d00cba8
Pass serialized S4 instances thru updateObject()
hpages Nov 21, 2021
42d22d3
bump x.y.z version to even y prior to creation of RELEASE_3_15 branch
nturaga Apr 26, 2022
cc2c5d3
bump x.y.z version to odd y following creation of RELEASE_3_15 branch
nturaga Apr 26, 2022
f74a527
bump x.y.z version to even y prior to creation of RELEASE_3_16 branch
jwokaty Nov 1, 2022
9ef81dc
bump x.y.z version to odd y following creation of RELEASE_3_16 branch
jwokaty Nov 1, 2022
329103c
bump x.y.z version to even y prior to creation of RELEASE_3_17 branch
jwokaty Apr 25, 2023
de4dcab
bump x.y.z version to odd y following creation of RELEASE_3_17 branch
jwokaty Apr 25, 2023
e2d61b0
bump x.y.z version to even y prior to creation of RELEASE_3_18 branch
jwokaty Oct 24, 2023
4dc365e
bump x.y.z version to odd y following creation of RELEASE_3_18 branch
jwokaty Oct 24, 2023
8150876
bump x.y.z version to even y prior to creation of RELEASE_3_19 branch
jwokaty Apr 30, 2024
641df9d
bump x.y.z version to odd y following creation of RELEASE_3_19 branch
jwokaty Apr 30, 2024
0f0fb6e
bump x.y.z version to even y prior to creation of RELEASE_3_20 branch
jwokaty Oct 29, 2024
261e3b9
bump x.y.z version to odd y following creation of RELEASE_3_20 branch
jwokaty Oct 29, 2024
b483872
bump x.y.z version to even y prior to creation of RELEASE_3_21 branch
jwokaty Apr 15, 2025
ed712e1
bump x.y.z version to odd y following creation of RELEASE_3_21 branch
jwokaty Apr 15, 2025
4783c45
chromVAR 1.31.1: Import Seqinfo instead of GenomeInfoDb
hpages Jul 23, 2025
c67de98
bump x.y.z version to even y prior to creation of RELEASE_3_22 branch
jwokaty Oct 29, 2025
1730858
bump x.y.z version to odd y following creation of RELEASE_3_22 branch
jwokaty Oct 29, 2025
de7762f
bump x.y.z version to even y prior to creation of RELEASE_3_23 branch
jwokaty Apr 28, 2026
894590d
bump x.y.z version to odd y following creation of RELEASE_3_23 branch
jwokaty Apr 28, 2026
deabb1e
Use pwalign for nucleotideSubstitutionMatrix and stringDist
AliciaSchep May 1, 2026
2a43158
feat: allow different jaspar DB sources
kelly-sovacool Jul 10, 2024
afa7ef2
Fix C++14 requirement and document jaspar_db parameter
AliciaSchep May 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: chromVAR
Type: Package
Title: Chromatin Variation Across Regions
Version: 1.5.0
Version: 1.35.1
Authors@R: c(
person("Alicia", "Schep", email = "aschep@gmail.com", role = c("aut","cre")),
person("Jason", "Buenrostro", role = "ctb"),
Expand All @@ -15,13 +15,14 @@ Description: Determine variation in chromatin accessibility across sets of
License: MIT + file LICENSE
Imports:
IRanges,
GenomeInfoDb,
Seqinfo,
GenomicRanges,
ggplot2,
nabor,
BiocParallel,
BiocGenerics,
Biostrings,
pwalign,
TFBSTools,
Rsamtools,
S4Vectors,
Expand Down Expand Up @@ -54,6 +55,6 @@ Suggests:
biocViews: SingleCell, Sequencing, GeneRegulation, ImmunoOncology
LazyData: TRUE
LinkingTo: Rcpp, RcppArmadillo
SystemRequirements: C++11
SystemRequirements: C++14
VignetteBuilder: knitr
RoxygenNote: 6.0.1
RoxygenNote: 7.3.2
12 changes: 6 additions & 6 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,10 @@ importClassesFrom(SummarizedExperiment,SummarizedExperiment)
importFrom(BSgenome,getBSgenome)
importFrom(BiocGenerics,relist)
importFrom(BiocParallel,bplapply)
importFrom(Biostrings,nucleotideSubstitutionMatrix)
importFrom(Biostrings,stringDist)
importFrom(pwalign,nucleotideSubstitutionMatrix)
importFrom(pwalign,stringDist)
importFrom(DT,datatable)
importFrom(DT,formatSignif)
importFrom(GenomeInfoDb,"seqlevels<-")
importFrom(GenomeInfoDb,seqlevels)
importFrom(GenomeInfoDb,seqnames)
importFrom(GenomeInfoDb,sortSeqlevels)
importFrom(IRanges,IRanges)
importFrom(IRanges,PartitioningByEnd)
importFrom(IRanges,overlapsAny)
Expand All @@ -91,6 +87,10 @@ importFrom(S4Vectors,elementNROWS)
importFrom(S4Vectors,isSorted)
importFrom(S4Vectors,queryHits)
importFrom(S4Vectors,subjectHits)
importFrom(Seqinfo,"seqlevels<-")
importFrom(Seqinfo,seqlevels)
importFrom(Seqinfo,seqnames)
importFrom(Seqinfo,sortSeqlevels)
importFrom(TFBSTools,PWMatrix)
importFrom(TFBSTools,PWMatrixList)
importFrom(TFBSTools,bg)
Expand Down
4 changes: 2 additions & 2 deletions R/background_peaks.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ setGeneric("addGCBias", function(object, ...) standardGeneric("addGCBias"))
#' @export
setMethod(addGCBias, c(object = "RangedSummarizedExperiment"),
function(object,
genome = GenomeInfoDb::genome(object)) {
genome = Seqinfo::genome(object)) {
genome <- validate_genome_input(genome)
peaks <- rowRanges(object)
seqs <- getSeq(genome, peaks)
Expand All @@ -38,7 +38,7 @@ setMethod(addGCBias, c(object = "RangedSummarizedExperiment"),
#' @export
setMethod(addGCBias, c(object = "SummarizedExperiment"),
function(object, peaks,
genome = GenomeInfoDb::genome(peaks)) {
genome = Seqinfo::genome(peaks)) {
genome <- validate_genome_input(genome)
seqs <- getSeq(genome, peaks)
nucfreqs <- letterFrequency(seqs, c("A", "C", "G", "T"))
Expand Down
2 changes: 1 addition & 1 deletion R/chromVAR.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#' txtProgressBar
#' @importFrom Rcpp sourceCpp
#' @importFrom S4Vectors queryHits subjectHits DataFrame elementNROWS isSorted
#' @importFrom GenomeInfoDb seqlevels seqlevels<- sortSeqlevels seqnames
#' @importFrom Seqinfo seqlevels seqlevels<- sortSeqlevels seqnames
#' @importFrom Rsamtools ScanBamParam scanBamFlag scanBam countBam
#' @importFrom IRanges IRanges overlapsAny
#' @importFrom BiocParallel bplapply
Expand Down
2 changes: 1 addition & 1 deletion R/kmers.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ deviationsCovariability <- function(object) {
return(normed_covs)
}

#' @importFrom Biostrings nucleotideSubstitutionMatrix stringDist
#' @importFrom pwalign nucleotideSubstitutionMatrix stringDist
get_kmer_dist <- function(kmers) {
stopifnot(all_equal(nchar(kmers)))
out <- as.matrix(stringDist(kmers,
Expand Down
2 changes: 1 addition & 1 deletion R/match_kmers.R
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ setMethod("matchKmers", signature(k = "character", subject = "DNAString"),
setMethod("matchKmers", signature(k = "character", subject = "GenomicRanges"),
function(k,
subject,
genome = GenomeInfoDb::genome(subject),
genome = Seqinfo::genome(subject),
out = c("matches", "positions")) {
out <- match.arg(out)
GenomicRanges::strand(subject) <- "+"
Expand Down
25 changes: 15 additions & 10 deletions R/motifs.R
Original file line number Diff line number Diff line change
@@ -1,28 +1,33 @@
#' getJasparMotifs
#'
#' Function to get motifs from JASPAR database
#' @param species Which species? use eithe jaspar code or latin name.
#' @param species Which species? use eithe jaspar code or latin name.
#' default is 'Homo sapiens'
#' @param collection Which collection to use? default is 'CORE'
#' @param ... additional arguments to opts for
#' @param jaspar_db Which JASPAR database? default is `JASPAR2016::JASPAR2016`
#' @param ... additional arguments to opts for
#' \code{\link[TFBSTools]{getMatrixSet}}
#' @details Simply a wrapper function for \code{\link[TFBSTools]{getMatrixSet}}
#' that calls JASPAR2016 database using \code{\link[JASPAR2016]{JASPAR2016}}
#' @return \code{\link[TFBSTools]{PFMatrixList}}
#' @export
#' @examples
#'
#' @examples
#'
#' motifs <- getJasparMotifs()
#'
#'
getJasparMotifs <- function(species = "Homo sapiens",
collection = "CORE", ...) {
#'
#' # use the JASPAR2020 database
#' motifs <- getJasparMotifs(jaspar_db = JASPAR2020::JASPAR2020)
#'
getJasparMotifs <- function(species = "Homo sapiens",
collection = "CORE",
jaspar_db = JASPAR2016::JASPAR2016,
...) {
opts <- list()
opts["species"] <- species
opts["collection"] <- collection
opts <- c(opts, list(...))
out <- TFBSTools::getMatrixSet(JASPAR2016::JASPAR2016, opts)
if (!isTRUE(all.equal(TFBSTools::name(out), names(out))))
out <- TFBSTools::getMatrixSet(jaspar_db, opts)
if (!isTRUE(all.equal(TFBSTools::name(out), names(out))))
names(out) <- paste(names(out), TFBSTools::name(out), sep = "_")
return(out)
}
2 changes: 1 addition & 1 deletion data-raw/example_counts.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cleanup_peaks <- function(peaks){
non_mito_peaks = which(!blacklisted)
peaks <- peaks[non_mito_peaks]

seqlengths(peaks) <- GenomeInfoDb::seqlengths(BSgenome.Hsapiens.UCSC.hg19::BSgenome.Hsapiens.UCSC.hg19)[GenomeInfoDb::seqlevels(peaks)]
seqlengths(peaks) <- Seqinfo::seqlengths(BSgenome.Hsapiens.UCSC.hg19::BSgenome.Hsapiens.UCSC.hg19)[Seqinfo::seqlevels(peaks)]
within_boundaries = which(GenomicRanges::trim(peaks) == peaks)
peaks <- peaks[within_boundaries]
return(peaks)
Expand Down
Binary file modified data/example_counts.rda
Binary file not shown.
Binary file modified data/mini_counts.rda
Binary file not shown.
Binary file modified data/mini_dev.rda
Binary file not shown.
Binary file modified data/mini_ix.rda
Binary file not shown.
13 changes: 5 additions & 8 deletions man/addGCBias.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/annotationMatches.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/cbind-chromVARDeviations-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion man/chromVAR.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

96 changes: 63 additions & 33 deletions man/computeDeviations.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading