-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37a6c03
commit 6b04c97
Showing
18 changed files
with
151 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,12 @@ Package: clustSIGNAL | |
Type: Package | ||
Title: clustSIGNAL: a spatial clustering method | ||
Version: 0.1.0 | ||
Author: c( | ||
person(given = "Pratibha", family = "Panwar", email = "[email protected]", role = c("cre", "aut", "ctb")), | ||
Authors@R: c( | ||
person(given = "Pratibha", family = "Panwar", email = "[email protected]", role = c("cre", "aut", "ctb")), | ||
person(given = "Boyi", family = "Guo", email = "[email protected]", role = "aut"), | ||
person(given = "Haowen", family = "Zhao", email = "[email protected]", role = "aut"), | ||
person(given = "Stephanie", family = "Hicks", email = "[email protected]", role = "aut"), | ||
person(given = "Shila", family = "Ghazanfar", email = "[email protected]", role = "aut", "ctb")) | ||
Maintainer: Pratibha Panwar <[email protected]> | ||
person(given = "Shila", family = "Ghazanfar", email = "[email protected]", role = c("aut", "ctb"))) | ||
Description: clustSIGNAL: clustering of Spatially Informed Gene expression with Neighbourhood Adapted Learning. | ||
A tool for adaptively smoothing and clustering gene expression data. clustSIGNAL uses entropy to measure | ||
heterogeneity of cell neighbourhoods and performs a weighted, adaptive smoothing, where homogeneous | ||
|
@@ -17,31 +16,24 @@ Description: clustSIGNAL: clustering of Spatially Informed Gene expression with | |
expression data is used for clustering and could be used for other downstream analyses. | ||
License: GPL-2 | ||
Encoding: UTF-8 | ||
LazyData: true | ||
LazyDataCompression: xz | ||
URL: https://sydneybiox.github.io/clustSIGNAL/, https://sydneybiox.github.io/clustSIGNAL/ | ||
URL: https://sydneybiox.github.io/clustSIGNAL/ | ||
BugReports: https://github.com/sydneybiox/clustSIGNAL/issues | ||
biocViews: Clustering, Software | ||
Roxygen: list(markdown = TRUE) | ||
biocViews: Clustering, Software, GeneExpression, Spatial | ||
RoxygenNote: 7.3.2 | ||
Depends: | ||
R (>= 4.0.0), | ||
SpatialExperiment, | ||
doParallel | ||
Imports: | ||
Depends: R (>= 4.4.0), SpatialExperiment | ||
Imports: BiocParallel, | ||
BiocNeighbors, | ||
bluster, | ||
scater, | ||
SingleCellExperiment, | ||
SummarizedExperiment, | ||
methods | ||
Suggests: knitr, | ||
BiocStyle, | ||
aricode, | ||
cluster, | ||
distances, | ||
dplyr, | ||
ggplot2, | ||
patchwork | ||
Suggests: | ||
knitr, | ||
rmarkdown, | ||
VignetteBuilder: | ||
knitr, | ||
rmarkdown | ||
VignetteBuilder: knitr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#' Exponential distribution weights | ||
#' | ||
#' @description | ||
#' A utility function to generate BPPARAM object. | ||
#' | ||
#' @param cores Desired number of cores for BPPARAM object. | ||
#' @return A BPPPARAM object. | ||
#' @importFrom BiocParallel SerialParam SnowParam MulticoreParam bpparam | ||
|
||
.generateBPParam <- function(cores = 1) { | ||
seed <- .Random.seed[1] | ||
if (cores == 1) { | ||
BPparam <- BiocParallel::SerialParam(RNGseed = seed) | ||
} else { ## Parallel processing is desired. | ||
## Also set the BPparam RNGseed if the user ran set.seed(someNumber) themselves. | ||
if (Sys.info()["sysname"] == "Windows") { # Only SnowParam suits Windows. | ||
BPparam <- BiocParallel::SnowParam(min( | ||
cores, | ||
BiocParallel::snowWorkers("SOCK") | ||
), | ||
RNGseed = seed | ||
) | ||
} else if (Sys.info()["sysname"] %in% c("MacOS", "Linux")) { | ||
BPparam <- BiocParallel::MulticoreParam(min( | ||
cores, | ||
BiocParallel::multicoreWorkers() | ||
), | ||
RNGseed = seed | ||
) | ||
## Multicore is faster than SNOW, but it doesn't work on Windows. | ||
} else { ## Something weird. | ||
BPparam <- BiocParallel::bpparam() ## BiocParallel will figure it out. | ||
} | ||
} | ||
BPparam | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.