... | ... |
@@ -21,9 +21,8 @@ Authors@R: c( |
21 | 21 |
Description: This package implements the spatially aware library size normalisation algorithm, SpaNorm. SpaNorm normalises out library size effects while retaining biology through the modelling of smooth functions for each effect. Normalisation is performed in a gene- and cell-/spot- specific manner, yielding library size adjusted data. |
22 | 22 |
License: GPL (>= 3) |
23 | 23 |
Encoding: UTF-8 |
24 |
-LazyDataCompression: bzip2 |
|
25 | 24 |
Roxygen: list(markdown = TRUE) |
26 |
-RoxygenNote: 7.3.1 |
|
25 |
+RoxygenNote: 7.3.2 |
|
27 | 26 |
biocViews: Software, GeneExpression, Transcriptomics, Spatial, CellBiology |
28 | 27 |
Depends: |
29 | 28 |
R (>= 4.4) |
... | ... |
@@ -6,4 +6,5 @@ |
6 | 6 |
#' @docType data |
7 | 7 |
#' @references Maynard KR, Collado-Torres L, Weber LM, Uytingco C, Barry BK, Williams SR, Catallini JL, Tran MN, Besich Z, Tippani M, Chew J. Transcriptome-scale spatial gene expression in the human dorsolateral prefrontal cortex. Nature neuroscience. 2021 Mar;24(3):425-36. |
8 | 8 |
#' @source {SpatialLIBD} R/Bioconductor package. |
9 |
+#' @usage data(HumanDLPFC) |
|
9 | 10 |
"HumanDLPFC" |
10 | 11 |
\ No newline at end of file |
... | ... |
@@ -156,6 +156,12 @@ plotSpatial <- |
156 | 156 |
return(p1) |
157 | 157 |
} |
158 | 158 |
|
159 |
+requirePkg <- function(pkg) { |
|
160 |
+ if (!requireNamespace(pkg, quietly = TRUE)) { |
|
161 |
+ stop(sprintf("'%s' needed for this function to work.", pkg), call. = FALSE) |
|
162 |
+ } |
|
163 |
+} |
|
164 |
+ |
|
159 | 165 |
custom_theme <- function(rl = 1.1) { |
160 | 166 |
stopifnot(rl > 0) |
161 | 167 |
rl = ggplot2::rel(rl) |
... | ... |
@@ -3,7 +3,7 @@ bibentry( |
3 | 3 |
title = "SpaNorm: spatially-aware normalisation for spatial transcriptomics data", |
4 | 4 |
author = c( |
5 | 5 |
person("Agus", "Salim", comment = c(ORCID = "0000-0003-3999-7701")), |
6 |
- person("Dharmesh D.", "Bhuva"comment = c(ORCID = "0000-0002-6398-9157")), |
|
6 |
+ person("Dharmesh D.", "Bhuva", comment = c(ORCID = "0000-0002-6398-9157")), |
|
7 | 7 |
person("Carissa", "Chen"), |
8 | 8 |
person("Pengyi", "Yang"), |
9 | 9 |
person("Melissa J", "Davis"), |
... | ... |
@@ -11,7 +11,7 @@ A SpatialExperiment containing region annotations in the \code{colData} column ' |
11 | 11 |
{SpatialLIBD} R/Bioconductor package. |
12 | 12 |
} |
13 | 13 |
\usage{ |
14 |
-HumanDLPFC |
|
14 |
+data(HumanDLPFC) |
|
15 | 15 |
} |
16 | 16 |
\description{ |
17 | 17 |
Human DLPFC sample profiled using the 10x Visium platform. Lowly expressed genes were filtered out using the \code{filterGenes} function to retain genes expressed in at least 10\% of samples. This version was obtained from the SpatialLIBD R/Bioconductor package. |