Skip to content

Commit 5714176

Browse files
committed
Set GeneScoreMatrix as default for ATAC in ArchR objects
1 parent 9c94cce commit 5714176

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+727
-239
lines changed

R/CHOIR.R

+4-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,10 @@
236236
#' indicating which matrix or matrices to use in the provided object. The
237237
#' default value, \code{NULL}, will use the “GeneScoreMatrix” for ATAC-seq data
238238
#' or the “GeneExpressionMatrix” for RNA-seq data. For multi-omic datasets,
239-
#' provide a vector with a value corresponding to each modality.
239+
#' provide a vector with a value corresponding to each modality. When
240+
#' "GeneScoreMatrix" is provided, the "GeneScoreMatrix" will be used as input
241+
#' to the random forest classifiers, but the "TileMatrix" will be used for the
242+
#' initial dimensionality reduction(s).
240243
#' @param ArchR_depthcol For \code{ArchR} objects, a character string or vector
241244
#' indicating which column to use for correlation with sequencing depth. The
242245
#' default value, \code{NULL}, will use the “nFrags” column for ATAC-seq data or

R/HelperUtils.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ getRecords <- function(object,
303303
if (is.null(use_matrix)) {
304304
# Matrix to pull from
305305
if (is.null(ArchR_matrix)) {
306-
ArchR_matrix <- "TileMatrix"
306+
ArchR_matrix <- "GeneScoreMatrix"
307307
}
308308
if (ArchR_matrix == "GeneScoreMatrix") {
309309
gene_score_matrix <- ArchR::getMatrixFromProject(object, useMatrix = "GeneScoreMatrix")

R/TreeUtils.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@
343343
}
344344
} else if (atac == TRUE) {
345345
if (is.null(ArchR_matrix)) {
346-
ArchR_matrix <- "TileMatrix"
346+
ArchR_matrix <- "GeneScoreMatrix"
347347
}
348348
if (is.null(ArchR_depthcol)) {
349349
ArchR_depthcol <- "nFrags"
@@ -2131,7 +2131,7 @@
21312131
"tree_records" = tree_records))
21322132
}
21332133

2134-
#' Infer clustering tree ---------------------------
2134+
#' Infer clustering tree from pre-generated clusters
21352135
#'
21362136
#' Generate clustering tree from provided, pre-generated clusters. Provide a set
21372137
#' of cluster labels and either a dimensionality reduction or distance matrix.

R/buildParentTree.R

+4-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@
102102
#' indicating which matrix or matrices to use in the provided object. The
103103
#' default value, \code{NULL}, will use the “GeneScoreMatrix” for ATAC-seq data
104104
#' or the “GeneExpressionMatrix” for RNA-seq data. For multi-omic datasets,
105-
#' provide a vector with a value corresponding to each modality.
105+
#' provide a vector with a value corresponding to each modality. When
106+
#' "GeneScoreMatrix" is provided, the "GeneScoreMatrix" will be used as input
107+
#' to the random forest classifiers, but the "TileMatrix" will be used for the
108+
#' initial dimensionality reduction(s).
106109
#' @param ArchR_depthcol For \code{ArchR} objects, a character string or vector
107110
#' indicating which column to use for correlation with sequencing depth. The
108111
#' default value, \code{NULL}, will use the “nFrags” column for ATAC-seq data or

R/buildTree.R

+4-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,10 @@
205205
#' indicating which matrix or matrices to use in the provided object. The
206206
#' default value, \code{NULL}, will use the “GeneScoreMatrix” for ATAC-seq data
207207
#' or the “GeneExpressionMatrix” for RNA-seq data. For multi-omic datasets,
208-
#' provide a vector with a value corresponding to each modality.
208+
#' provide a vector with a value corresponding to each modality. When
209+
#' "GeneScoreMatrix" is provided, the "GeneScoreMatrix" will be used as input
210+
#' to the random forest classifiers, but the "TileMatrix" will be used for the
211+
#' initial dimensionality reduction(s).
209212
#' @param ArchR_depthcol For \code{ArchR} objects, a character string or vector
210213
#' indicating which column to use for correlation with sequencing depth. The
211214
#' default value, \code{NULL}, will use the “nFrags” column for ATAC-seq data or

R/combineTrees.R

+12
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,18 @@
156156
#' object. The default value, \code{NULL}, will choose the current active assay
157157
#' for \code{Seurat} objects and the \code{logcounts} assay for
158158
#' \code{SingleCellExperiment} objects.
159+
#' @param use_slot For \code{Seurat} objects, a character string or vector
160+
#' indicating the layers(s)—previously known as slot(s)—to use in the provided
161+
#' object. The default value, \code{NULL}, will choose a layer/slot based on the
162+
#' selected assay. If an assay other than "RNA", "sketch”, "SCT”, or
163+
#' "integrated" is provided, you must specify a value for \code{use_slot}. For
164+
#' multi-omic datasets, provide a vector with a value corresponding to each
165+
#' provided value of \code{use_assay} in the same order.
166+
#' @param ArchR_matrix For \code{ArchR} objects, a character string or vector
167+
#' indicating which matrix or matrices to use in the provided object. The
168+
#' default value, \code{NULL}, will use the “GeneScoreMatrix” for ATAC-seq data
169+
#' or the “GeneExpressionMatrix” for RNA-seq data. For multi-omic datasets,
170+
#' provide a vector with a value corresponding to each modality.
159171
#' @param countsplit A Boolean value indicating whether or not to use count
160172
#' split input data (see \code{countsplit} package), such that one matrix of
161173
#' counts is used for clustering tree generation and a separate matrix is used

_pkgdown.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ navbar:
1414
href: index.html
1515
tutorial:
1616
icon: fa-graduation-cap
17-
href: articles/CHOIR.html
18-
text: Quick Tutorial
17+
text: Tutorials
18+
menu:
19+
- text: Quick start
20+
href: articles/CHOIR.html
21+
- text: Atlas-scale data
22+
href: articles/atlas_scale_data.html
1923
functions:
2024
icon: fa-code
2125
href: reference/index.html
@@ -27,3 +31,4 @@ navbar:
2731

2832
toc:
2933
depth: 4
34+

docs/404.html

+7-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE-text.html

+7-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE.html

+7-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)