Skip to content

Commit

Permalink
Merge branch 'release/3.2.0' of github.com:satijalab/seurat-private i…
Browse files Browse the repository at this point in the history
…nto release/3.2.0
  • Loading branch information
andrewwbutler committed Jul 15, 2020
2 parents 416b0d6 + 84a1f71 commit b2b00fb
Show file tree
Hide file tree
Showing 43 changed files with 3,476 additions and 3,481 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: Seurat
Version: 3.1.2
Version: 3.2.0
Date: 2020-07-15
Title: Tools for Single Cell Genomics
Description: A toolkit for quality control, analysis, and exploration of single cell RNA sequencing data. 'Seurat' aims to enable users to identify and interpret sources of heterogeneity from single cell transcriptomic measurements, and to integrate diverse types of single cell data. See Satija R, Farrell J, Gennert D, et al (2015) <doi:10.1038/nbt.3192>, Macosko E, Basu A, Satija R, et al (2015) <doi:10.1016/j.cell.2015.05.002>, and Stuart T, Butler A, et al (2019) <doi:10.1016/j.cell.2019.05.031> for more details.
Expand Down Expand Up @@ -81,7 +81,6 @@ Collate:
'integration.R'
'objects.R'
'preprocessing.R'
'spatial.R'
'tree.R'
'utilities.R'
'zzz.R'
Expand Down
3 changes: 0 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ export(FindTransferAnchors)
export(FindVariableFeatures)
export(FontSize)
export(GeneSymbolThesarus)
export(GeomSpatial)
export(GetAssay)
export(GetAssayData)
export(GetImage)
Expand Down Expand Up @@ -409,7 +408,6 @@ export(as.Seurat)
export(as.SingleCellExperiment)
export(as.loom)
export(as.sparse)
export(geom_spatial)
export(scalefactors)
exportClasses(AnchorSet)
exportClasses(Assay)
Expand Down Expand Up @@ -586,7 +584,6 @@ importFrom(methods,.hasSlot)
importFrom(methods,as)
importFrom(methods,is)
importFrom(methods,new)
importFrom(methods,setAs)
importFrom(methods,setClass)
importFrom(methods,setClassUnion)
importFrom(methods,setMethod)
Expand Down
86 changes: 86 additions & 0 deletions R/convenience.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,92 @@ PCAPlot <- function(object, ...) {
return(SpecificDimPlot(object = object, ...))
}

#' @rdname SpatialPlot
#' @export
#'
SpatialDimPlot <- function(
object,
group.by = NULL,
images = NULL,
cols = NULL,
crop = TRUE,
cells.highlight = NULL,
cols.highlight = c('#DE2D26', 'grey50'),
facet.highlight = FALSE,
label = FALSE,
label.size = 7,
label.color = 'white',
repel = FALSE,
ncol = NULL,
combine = TRUE,
pt.size.factor = 1.6,
alpha = c(1, 1),
stroke = 0.25,
label.box = TRUE,
interactive = FALSE,
information = NULL
) {
return(SpatialPlot(
object = object,
group.by = group.by,
images = images,
cols = cols,
crop = crop,
cells.highlight = cells.highlight,
cols.highlight = cols.highlight,
facet.highlight = facet.highlight,
label = label,
label.size = label.size,
label.color = label.color,
repel = repel,
ncol = ncol,
combine = combine,
pt.size.factor = pt.size.factor,
alpha = alpha,
stroke = stroke,
label.box = label.box,
interactive = interactive,
information = information
))
}

#' @rdname SpatialPlot
#' @export
#'
SpatialFeaturePlot <- function(
object,
features,
images = NULL,
crop = TRUE,
slot = 'data',
min.cutoff = NA,
max.cutoff = NA,
ncol = NULL,
combine = TRUE,
pt.size.factor = 1.6,
alpha = c(1, 1),
stroke = 0.25,
interactive = FALSE,
information = NULL
) {
return(SpatialPlot(
object = object,
features = features,
images = images,
crop = crop,
slot = slot,
min.cutoff = min.cutoff,
max.cutoff = max.cutoff,
ncol = ncol,
combine = combine,
pt.size.factor = pt.size.factor,
alpha = alpha,
stroke = stroke,
interactive = interactive,
information = information
))
}

#' @rdname DimPlot
#' @export
#'
Expand Down
Loading

0 comments on commit b2b00fb

Please sign in to comment.