Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
187 commits
Select commit Hold shift + click to select a range
cecd8ca
bugfix useHdf5=FALSE addImputeWeights
jgranja24 Feb 22, 2021
716abd8
bugfix imputation
jgranja24 Feb 22, 2021
35a89aa
trim edge cases tssFeatures
jgranja24 Feb 23, 2021
3187af4
bugfix handling low cells when subsetting keep 1 range regardless if …
jgranja24 Feb 24, 2021
ca871d6
update
jgranja24 Feb 24, 2021
af56a49
maxDist coAccessibilty is 1/2 the size it should be.
jgranja24 Mar 7, 2021
fe48101
fix NA's in bam/tabix and max/minFragSize
jgranja24 Mar 8, 2021
49f87b7
Update createArrowFiles.Rd
jgranja24 Mar 8, 2021
c08c913
documentation
jgranja24 Mar 8, 2021
9f008ad
improve offsetPlus and offsetMinus description
rcorces Mar 10, 2021
921d8db
check for peakset matched in ArchRProj for addBgdPeaks
jgranja24 Mar 29, 2021
1a7eb7d
Merge branch 'release_1.0.2' of https://github.com/GreenleafLab/ArchR…
jgranja24 Mar 29, 2021
8b5bee9
add check for default assay in seurat object.
jgranja24 Mar 29, 2021
66d8988
update check in iterativeLSI to 50 cells to bug handle. Additionally …
jgranja24 Mar 29, 2021
1823c99
Update IterativeLSI.R
jgranja24 Mar 29, 2021
803fba6
checking fragments for tile matrix creation
jgranja24 Mar 29, 2021
faf6deb
bugfix inputFiles improperly being called instead of ArrowFiles
jgranja24 Apr 5, 2021
bcd72a2
bugfix missing logFile in addIterativeLSI
jgranja24 Apr 5, 2021
46dfca9
bugfix check cells in project for ColSums
jgranja24 Apr 5, 2021
d9eda0a
bugfix getColSums check cellNames
jgranja24 Apr 5, 2021
1a62519
bugfix
jgranja24 Apr 5, 2021
73287e6
bug fix sampledCellNames arrowRead
jgranja24 Apr 12, 2021
0291b6f
fix fast H5Fopen to be read only
rcorces Apr 22, 2021
400ecf9
remove extra paren
rcorces Apr 28, 2021
7ff7e4d
Add requirement for genomeSize argument when using non-standard genomes.
rcorces Apr 29, 2021
bac49ae
add default nDim for .loadUWOT
rcorces Apr 29, 2021
05d66f2
Add check for existence of matrix passed to useMatrix
rcorces Apr 30, 2021
eec8474
update normMethod param documentation
rcorces Apr 30, 2021
9801988
Check for PeakMatrix in addBgdPeaks
rcorces May 10, 2021
d4dd9ae
add force parameter where missing
rcorces Jun 3, 2021
0d77da2
create error when genes lacks symbol column
rcorces Jun 3, 2021
b0a48c8
bugfix for tabix dt column names
rcorces Jul 1, 2021
f98354c
Fix mColSums
rcorces Jul 3, 2021
2aabfc3
add useMatrix to param documentation
rcorces Jul 6, 2021
a861399
fix ylim quantile calculation
rcorces Jul 16, 2021
8caa716
fix ylim quantile again
rcorces Jul 16, 2021
e622a3a
Merge pull request #906 from GreenleafLab/dev_210716_ylimPlot
rcorces Jul 18, 2021
d596b23
Fix CreateGenomeAnnotation
rcorces Jul 21, 2021
ef6fd03
annotate that this is pearson correlation
rcorces Jul 21, 2021
699a886
add the ability to designate sample labels independently
rcorces Jul 22, 2021
eb8d77a
delete requirePackage(genome)
rcorces Jul 23, 2021
54efef1
Remove unneeded if and update param definitions
rcorces Jul 28, 2021
8fc9eca
Merge pull request #919 from GreenleafLab/dev_createGenomeAnno
rcorces Jul 28, 2021
779a2d5
Default sampleLabels to Sample
rcorces Jul 28, 2021
e042f03
Merge pull request #925 from GreenleafLab/dev_groupCov_1.0.2
rcorces Jul 28, 2021
79f567e
update function description for getMatrixFromProject
rcorces Jul 29, 2021
ff34d61
remove .requirePackage(genome)
rcorces Jul 29, 2021
ccac7bc
remove requirePackage(genome)
rcorces Jul 29, 2021
73a2867
explain geneAnnotations in plots
rcorces Jul 29, 2021
17d613d
fix clusterCols being set to NULL by .binarySort()
rcorces Jul 30, 2021
8adea54
delete requirePackage(genome)
rcorces Aug 2, 2021
818b615
Set addRowVarsLog2 to true when adding TileMatrix
rcorces Aug 19, 2021
cd8baa3
Enable null ArchRProj in PlotFootprints
rcorces Aug 24, 2021
96a71cc
improve messaging for tabix indexing failure
rcorces Aug 25, 2021
3861420
fix inadvertent typo and add bam index fail message
rcorces Aug 25, 2021
ee6bc0b
add rastr option to plotMarkers
rcorces Aug 26, 2021
2770d1b
add param definition for rastr
rcorces Aug 26, 2021
18bcead
update getMatches() description
rcorces Aug 26, 2021
9366af8
add documentation and comments for addModuleScore
rcorces Aug 27, 2021
8fa2c85
add validInput checks to addModuleScore
rcorces Aug 27, 2021
12846a5
Merge pull request #990 from GreenleafLab/dev_210701_createArrow
rcorces Sep 6, 2021
96aa3a8
Fix coverage files for chromosomes with no insertions
rcorces Sep 10, 2021
e39e278
add RNGkind("L'Ecuyer-CMRG") to fix mclapply seed
rcorces Sep 13, 2021
87b2dfb
fix errorList biasMat type
rcorces Sep 17, 2021
4d005fe
add warning message to console in addition to log file
rcorces Sep 23, 2021
5d666ff
fix typo
rcorces Sep 23, 2021
16faba1
Merge pull request #1045 from GreenleafLab/dev_1025_groupCov
rcorces Sep 23, 2021
f6ac862
fix RNGkind if statement
rcorces Sep 24, 2021
c61f782
fix grey background in gene tracks
rcorces Oct 29, 2021
b2f3d95
Fixing typo in blacklisted tile removal
rcorces Oct 29, 2021
b38b3bd
Fix distTSS bug
rcorces Nov 4, 2021
82306c4
Merge pull request #1141 from GreenleafLab/dev_distTSS
rcorces Nov 4, 2021
351875a
fix typo in validInput for features
rcorces Nov 4, 2021
d321481
update error handling for binarized matrix with top
rcorces Nov 10, 2021
52a5ef1
Merge pull request #1153 from GreenleafLab/dev_tileMatrix
rcorces Nov 10, 2021
3927b70
fix check for feature not in matrix
rcorces Nov 11, 2021
4800d9f
improve error message
rcorces Nov 11, 2021
9997f87
make acceptable fragments less or equal to chr ends
rcorces Nov 15, 2021
0630ae0
add require(parallel)
rcorces Nov 16, 2021
2d4d638
Merge pull request #1166 from GreenleafLab/dev_chrEnds
rcorces Nov 16, 2021
560764a
log ranges1/2 before removal
rcorces Nov 17, 2021
84c8ff4
address boundary case where chr length is a multiple of num tiles
rcorces Nov 18, 2021
2291f01
add check for success for file download
rcorces Nov 18, 2021
41e621b
update loading of parallel to use native ArchR .requirePackage
rcorces Nov 19, 2021
5e489a3
Sort SE containing rowRanges prior to return
rcorces Nov 19, 2021
c4296ee
define prefix
rcorces Nov 19, 2021
70d48c7
Merge pull request #1173 from GreenleafLab/dev_addPeakSet
rcorces Nov 19, 2021
48dccf3
fix typo in check for isDeviations
rcorces Nov 22, 2021
63e7883
revert change to ylim
rcorces Dec 2, 2021
fdfce2d
update no cell overlap error message
rcorces Feb 17, 2022
5350569
update overlap error message
rcorces Feb 17, 2022
e575276
fix processing multiple RNA inputs
rcorces Feb 17, 2022
987813c
Merge pull request #1294 from GreenleafLab/dev_10xMultiome
rcorces Feb 17, 2022
705e9f5
remove unnecessary ArchR::: reference
rcorces Feb 17, 2022
c95add0
remove try catch and improve error handling
rcorces Feb 18, 2022
972aa83
Update MultiModal.R
rcorces Feb 18, 2022
99248d6
change from cbind to combineCols
rcorces Feb 18, 2022
fa9c1b7
revert back to cbind but force SummarizedExperiment
rcorces Feb 18, 2022
0ca5fda
Merge pull request #1297 from GreenleafLab/dev_10xMultiome
rcorces Feb 18, 2022
09864ad
improve stop message for chr not in AnnoFile
rcorces Feb 22, 2022
4a56079
fix multi-sample handling and mismatch reporting
rcorces Mar 8, 2022
8ddd943
fix cbind to explicit reference SummarizedExperiment
rcorces Mar 9, 2022
8f05eef
Fix handling of multiple input samples
rcorces Mar 9, 2022
f31660d
explicitly call GenomicRanges::resize
rcorces Mar 9, 2022
b441c88
strictly call GenomicRanges::resize()
rcorces Mar 9, 2022
394f7cc
strictly call GenomicRanges::resize()
rcorces Mar 9, 2022
4803ee9
strictly call GenomicRanges::resize()
rcorces Mar 9, 2022
f208a34
strictly call GenomicRanges::resize()
rcorces Mar 9, 2022
c574404
fix deleted line
rcorces Mar 9, 2022
6dd1e30
strictly call GenomicRanges::resize()
rcorces Mar 9, 2022
0023165
strictly call GenomicRanges::resize()
rcorces Mar 9, 2022
7c6690b
remove NULL as option for scaleDims
rcorces Mar 9, 2022
6bde881
fix footprinting crashes bc of ggrepel
rcorces Mar 12, 2022
d28fa1d
set drop=FALSE in matrix operations
rcorces Mar 12, 2022
8e89361
Merge pull request #1333 from GreenleafLab/dev_LSI-singleFeature2
rcorces Mar 13, 2022
f7a0f74
fix deprecated ggplot calls and ggridges xlim
rcorces Mar 13, 2022
d5032d7
Merge pull request #1334 from GreenleafLab/dev_ggridges
rcorces Mar 13, 2022
8f2ec3a
revert xlim change
rcorces Mar 13, 2022
6a005c4
bugfixes
rcorces Mar 15, 2022
849a59c
change how featureMats are sorted
rcorces Mar 16, 2022
42c8be3
specify sort function
rcorces Mar 16, 2022
0aa874a
update comments
rcorces Mar 17, 2022
3c43c85
Merge pull request #1348 from GreenleafLab/dev_randomSeed
rcorces Mar 20, 2022
420a3c2
update function param docs
rcorces Mar 22, 2022
293d20f
Bug Fixes 20220327
jeffmgranja Mar 28, 2022
506161d
Bugfix
jeffmgranja Mar 30, 2022
9275d4e
normBy doesnt actually take a value
rcorces Mar 31, 2022
dd38f7f
Merge pull request #1365 from GreenleafLab/dev_normBy
rcorces Mar 31, 2022
231f5ea
change name param to annoName
rcorces Apr 1, 2022
d729490
Merge pull request #1369 from GreenleafLab/dev_annoName
rcorces Apr 2, 2022
6e7abec
Bugfix and improvements
jeffmgranja Apr 4, 2022
553b609
Merge branch 'release_1.0.2' of https://github.com/GreenleafLab/ArchR…
jeffmgranja Apr 4, 2022
9d2ebba
update readme
jeffmgranja Apr 4, 2022
3075f1f
fix impute weights completion message
rcorces Apr 6, 2022
3af7c30
update warning message and function params
rcorces Apr 13, 2022
a8c48d8
revert warning to error
rcorces Apr 13, 2022
cf8d41d
fix excludeChr param definition
rcorces Apr 13, 2022
0b30081
Merge pull request #1005 from GreenleafLab/dev_plotMarkers
rcorces Apr 15, 2022
b94711f
Merge pull request #950 from GreenleafLab/dev_customGenome
rcorces Apr 15, 2022
db42a20
add native support for Vierstra motifs
rcorces Apr 15, 2022
b1fb5f0
typo
rcorces Apr 15, 2022
d7a3105
unify file download workflow
rcorces Apr 15, 2022
3f263a9
update collection param
rcorces Apr 16, 2022
08fb08e
Merge pull request #1385 from GreenleafLab/dev_VierstraMotifs
rcorces Apr 16, 2022
6feac13
update param definition for pal
rcorces Apr 16, 2022
c61dfca
require hexbin to be installed
rcorces Apr 18, 2022
0dada5f
update vierstra archetype motifs to v2.1
rcorces Apr 22, 2022
b40e6b3
add strictMatch to handle mismatch in cells
rcorces Apr 22, 2022
ee0c8ec
update clusterParams description
rcorces Apr 26, 2022
f162072
fix module scores when only one set of features is supplied
rcorces Apr 26, 2022
9b3e72e
update pal param def
rcorces Apr 29, 2022
ba21b05
bugfix import data.table causing issues
jeffmgranja May 4, 2022
7ead541
update ... additional params def
rcorces May 4, 2022
b9ee266
typo in geneTiles
rcorces May 5, 2022
f2d5d05
Add message to point to Vierstra website
rcorces May 6, 2022
ee5f217
remove strictMatch from batchlapply
rcorces May 18, 2022
65151a0
Merge pull request #1434 from GreenleafLab/dev_strictMatch
rcorces May 18, 2022
e008328
add marker subsetting to plotMarkerHeatMap
rcorces May 25, 2022
eaa1599
remove printing of marker genes when subsetMarkers is used
rcorces May 25, 2022
d74445f
update param def for subsetMarkers
rcorces May 25, 2022
03a8d6b
add validInput for subsetMarkers
rcorces May 25, 2022
b3dd164
catch problematic inputs to subsetMarkers
rcorces May 25, 2022
80d57bb
fix if statement typo
rcorces May 25, 2022
673943f
fix if statement typo
rcorces May 25, 2022
17dbf94
improve error message when no cells found passing filter
rcorces May 27, 2022
978cd3c
check to make sure tmpdir exists
rcorces Jun 3, 2022
6a23fa1
check for file named "tmp" in .tempFile directory creation
rcorces Jun 3, 2022
7358dd1
patch error with file.exists
rcorces Jun 3, 2022
e2d911b
update strictMatch warning message and typo
rcorces Jun 3, 2022
cadcd31
Properly catch NULL value for quantCut
rcorces Jun 6, 2022
92bb44c
make tutorial downloads cleaner
rcorces Jun 7, 2022
cea4782
fix typo
rcorces Jun 7, 2022
6e218eb
Merge pull request #1453 from GreenleafLab/dev_betterDownload
rcorces Jun 7, 2022
21099d6
fix error message typo
rcorces Jun 8, 2022
e395adf
bugfix - `error` does not exist
rcorces Jun 8, 2022
792487b
update documentation on "features"
rcorces Jun 9, 2022
9769de9
catch when GRangesList has no names
rcorces Jun 9, 2022
d214b0b
update featureList with generic name
rcorces Jun 9, 2022
851427b
fix featureList naming
rcorces Jun 9, 2022
bfdb35c
Merge pull request #1465 from GreenleafLab/dev_subsetSE
rcorces Jun 9, 2022
8345fc6
fix guides FALSE warning from ggplot
rcorces Jun 9, 2022
450b360
Merge pull request #1466 from GreenleafLab/dev_guides
rcorces Jun 9, 2022
05a8344
update param for ArchRProj in plotFootprints
rcorces Jun 10, 2022
8877bd1
remove NULL as option for nPrint and nLabel
rcorces Jun 14, 2022
44cb095
update param def for plotMarkerHeatmap
rcorces Jun 14, 2022
706b88a
update param def for nLabel
rcorces Jun 14, 2022
6a0ec0c
add md5sum check for tutorial data
rcorces Jun 17, 2022
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
Binary file modified .DS_Store
Binary file not shown.
26 changes: 13 additions & 13 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: ArchR
Type: Package
Date: 2020-11-23
Date: 2022-04-03
Title: Analyzing single-cell regulatory chromatin in R.
Version: 1.0.1
Version: 1.0.2
Authors@R: c(
person("Jeffrey", "Granja", email = "jgranja.stanford@gmail.com", role = c("aut","cre")),
person("Ryan", "Corces", role = "aut"))
Expand All @@ -11,9 +11,17 @@ Roxygen: list(markdown = TRUE)
License: GPL (>= 2)
LinkingTo: Rcpp
LazyData: TRUE
RoxygenNote: 7.1.1
RoxygenNote: 7.1.2
Encoding: UTF-8
Imports:
ggplot2,
SummarizedExperiment,
data.table,
Matrix,
rhdf5,
magrittr,
S4Vectors (>= 0.9.25),
BiocGenerics,
Rcpp (>= 0.12.16),
matrixStats,
plyr,
Expand All @@ -29,17 +37,9 @@ Imports:
grid,
gridExtra,
Biostrings,
ComplexHeatmap
Depends:
ggplot2,
SummarizedExperiment,
data.table,
Matrix,
rhdf5,
magrittr,
S4Vectors (>= 0.9.25),
BiocGenerics,
ComplexHeatmap,
GenomicRanges
Depends:
Collate:
'AllClasses.R'
'AnnotationGenome.R'
Expand Down
4 changes: 3 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
S3method("$",ArchRProject)
S3method("$<-",ArchRProject)
S3method("[",ArchRProject)
S3method(.DollarNames,ArchRProject)
export("%bcin%")
export("%bcni%")
export("%ni%")
export(.DollarNames.ArchRProject)
export(ArchRBrowser)
export(ArchRBrowserTrack)
export(ArchRPalettes)
Expand Down Expand Up @@ -158,5 +158,7 @@ export(subsetCells)
export(theme_ArchR)
export(trajectoryHeatmap)
export(validBSgenome)
import(data.table)
importFrom(GenomicRanges,GRanges)
importFrom(Rcpp,sourceCpp)
useDynLib(ArchR)
56 changes: 18 additions & 38 deletions R/AllClasses.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#' @useDynLib ArchR
#' @importFrom Rcpp sourceCpp
#' @importFrom GenomicRanges GRanges
#' @import data.table
NULL

setClassUnion("characterOrNull", c("character", "NULL"))
Expand Down Expand Up @@ -569,51 +571,29 @@ saveArchRProject <- function(
newProj@imputeWeights <- SimpleList()
}

#Copy Other Folders 2 layers nested
#Copy Recursively
message("Copying Other Files...")
for(i in seq_along(oldFiles)){

fin <- file.path(outDirOld, oldFiles[i])
fout <- file.path(outputDirectory, oldFiles[i])
message(sprintf("Copying Other Files (%s of %s): %s", i, length(oldFiles), basename(fin)))

if(dir.exists(fin)){

dir.create(file.path(outputDirectory, basename(fin)), showWarnings=FALSE)
fin2 <- list.files(fin, full.names = TRUE)

for(j in seq_along(fin2)){

if(dir.exists(fin2[j])){

dir.create(file.path(outputDirectory, basename(fin), basename(fin2)[j]), showWarnings=FALSE)
fin3 <- list.files(fin2[j], full.names = TRUE)

for(k in seq_along(fin3)){

cf <- file.copy(fin3[k], file.path(fout, basename(fin3[k])), overwrite = overwrite)

}

}else{

cf <- file.copy(fin2[j], file.path(fout, basename(fin2[j])), overwrite = overwrite)

}

}

}else{

cf <- file.copy(fin, fout, overwrite = overwrite)

}

message(sprintf("Copying Other Files (%s of %s): %s", i, length(oldFiles), oldFiles[i]))
oldPath <- file.path(outDirOld, oldFiles[i])
file.copy(oldPath, outputDirectory, recursive=TRUE, overwrite=overwrite)
}

#Set New Info
newProj@sampleColData <- newProj@sampleColData[names(ArrowFilesNew), , drop = FALSE]
newProj@sampleColData$ArrowFiles <- ArrowFilesNew[rownames(newProj@sampleColData)]

#Check for Group Coverages Copied
groupC <- length(newProj@projectMetadata$GroupCoverages)
if(length(groupC) > 0){
for(z in seq_len(groupC)){
zdata <- newProj@projectMetadata$GroupCoverages[[z]]$coverageMetadata
zfiles <- gsub(outDirOld, outputDirectory, zdata$File)
newProj@projectMetadata$GroupCoverages[[z]]$coverageMetadata$File <- zfiles
stopifnot(all(file.exists(zfiles)))
}
}

}

message("Saving ArchRProject...")
Expand Down
41 changes: 20 additions & 21 deletions R/AnnotationGenome.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
#' @param chromSizes A `GRanges` object containing chromosome start and end coordinates.
#' @param blacklist A `GRanges` object containing regions that should be excluded from analyses due to unwanted biases.
#' @param filter A boolean value indicating whether non-standard chromosome scaffolds should be excluded.
#' These "non-standard" chromosomes are defined by `filterChrGR()`.
#' These "non-standard" chromosomes are defined by `filterChrGR()` and by manual annotation using the `filterChr` parameter.
#' @param filterChr A character vector indicating the seqlevels that should be removed if manual removal is desired for certain seqlevels.
#' If no manual removal is desired, `filterChr` should be set to `NULL`.
#' If no manual removal is desired, `filterChr` should be set to `NULL`. If `filter` is set to `TRUE` but `filterChr` is set to `NULL`,
#' non-standard chromosomes will still be removed as defined in `filterChrGR()`.
#' @export
createGenomeAnnotation <- function(
genome = NULL,
Expand All @@ -24,23 +25,27 @@ createGenomeAnnotation <- function(
.validInput(input = filter, name = "filter", valid = c("boolean"))
.validInput(input = filterChr, name = "filterChr", valid = c("character", "null"))

if(is.null(genome) | is.null(blacklist) | is.null(chromSizes)){
##################
message("Getting genome..")
#validBSgenome works on both character and BSgenome inputs, which are the only allowable inputs to the param
bsg <- validBSgenome(genome)
genome <- bsg@pkgname

##################
message("Getting genome..")
bsg <- validBSgenome(genome)
genome <- bsg@pkgname

##################
message("Getting chromSizes..")
if(is.null(chromSizes)) {
message("Attempting to infer chromSizes..")
chromSizes <- GRanges(names(seqlengths(bsg)), IRanges(1, seqlengths(bsg)))
if(filter){
chromSizes <- filterChrGR(chromSizes, remove = filterChr)
chromSizes <- filterChrGR(chromSizes, remove = filterChr)
}
seqlengths(chromSizes) <- end(chromSizes)
} else {
message("Using provided chromSizes..")
chromSizes <- .validGRanges(chromSizes)
}

if(is.null(blacklist)){
##################
message("Getting blacklist..")
message("Attempting to infer blacklist..")

genomeName <- tryCatch({
bsg@provider_version
Expand All @@ -50,15 +55,9 @@ createGenomeAnnotation <- function(

blacklist <- .getBlacklist(genome = genomeName)

}else{

bsg <- validBSgenome(genome)
genome <- bsg@pkgname

chromSizes <- .validGRanges(chromSizes)

} else {
message("Using provided blacklist...")
blacklist <- .validGRanges(blacklist)

}

SimpleList(genome = genome, chromSizes = chromSizes, blacklist = blacklist)
Expand Down Expand Up @@ -172,7 +171,7 @@ createGeneAnnotation <- function(

###########################
message("Getting TSS..")
TSS <- unique(resize(GenomicFeatures::transcripts(TxDb), width = 1, fix = "start"))
TSS <- unique(GenomicRanges::resize(GenomicFeatures::transcripts(TxDb), width = 1, fix = "start"))

if(!is.null(inGenes)){
genes <- .validGRanges(inGenes)
Expand Down
Loading