Skip to content

Commit

Permalink
Improved examples and example data to ensure no errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
PratibhaPanwar committed Aug 27, 2024
1 parent 22c201b commit 6068101
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 19 deletions.
4 changes: 2 additions & 2 deletions R/clustSIGNAL.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
#'
#' names(colData(spe))
#' # identify the column names with cell and sample labels
#' samples = "embryo"
#' samples = "sample_id"
#' cells = "uniqueID"
#' res_list <- clustSIGNAL(spe, samples, cells, dimRed = "PCA", outputs = "c")
#' res_list <- clustSIGNAL(spe, samples, cells, outputs = "c")
#'
#'
#' @export
Expand Down
9 changes: 4 additions & 5 deletions R/clustering.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@
#' @examples
#' data(mouseEmbryo2)
#'
#' # for non-spatial clustering of normalised counts
#' spe <- scater::runPCA(spe)
#'
#' # reclust = FALSE for non-spatial clustering of normalised counts
#' # reclust = TRUE for non-spatial clustering of adaptively smoothed counts
#' spe <- nsClustering(spe, dimRed = "PCA", reclust = FALSE)
#' head(spe$nsCluster)
#' head(spe$nsSubcluster)
#'
#' # for non-spatial clustering of adaptively smoothed counts
#' spe <- nsClustering(spe, dimRed = "PCA", reclust = TRUE)
#' head(spe$reCluster)
#'
#' @export

#### Non-spatial clustering
Expand Down
2 changes: 1 addition & 1 deletion R/entropyMeasure.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#' @examples
#' data(mouseEmbryo2)
#'
#' # requires list of containing cluster proportions of each region (regXclust),
#' # requires list containing cluster proportions of each region (regXclust),
#' # generated using the neighbourDetect() function
#' spe <- entropyMeasure(spe, cells = "uniqueID", regXclust, threads = 1)
#' head(spe$entropy)
Expand Down
2 changes: 1 addition & 1 deletion R/neighborDetect.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#' @examples
#' data(mouseEmbryo2)
#'
#' out_list <- neighbourDetect(spe, samples = "embryo", NN = 30, cells = "uniqueID", sort = TRUE)
#' out_list <- neighbourDetect(spe, samples = "sample_id", NN = 30, cells = "uniqueID", sort = TRUE)
#' names(out_list)
#'
#' @export
Expand Down
Binary file modified data/mouseEmbryo2.rda
Binary file not shown.
4 changes: 2 additions & 2 deletions man/clustSIGNAL.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/entropyMeasure.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/neighbourDetect.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions man/nsClustering.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vignettes/1_seqFISH_mouseEmbryo.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ To run clustSIGNAL, we need the column names of sample and cell labels in the co

```{r}
set.seed(100)
samples = "embryo"
samples = "sample_id"
cells = "uniqueID"
res_emb = clustSIGNAL(spe, samples, cells, outputs = "a")
```
Expand Down

0 comments on commit 6068101

Please sign in to comment.