Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
CATALYST-project committed Feb 27, 2024
2 parents 3bbb17f + 026566e commit 3680824
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-bioc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ jobs:
fail-fast: false
matrix:
config:
- { os: ubuntu-latest, r: 'devel', bioc: '3.18', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: macOS-latest, r: 'devel', bioc: '3.18'}
- { os: windows-latest, r: 'devel', bioc: '3.18'}
- { os: ubuntu-latest, r: 'devel', bioc: '3.19', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: macOS-latest, r: 'devel', bioc: '3.19'}
- { os: windows-latest, r: 'devel', bioc: '3.19'}
## Check https://github.com/r-lib/actions/tree/master/examples
## for examples using the http-user-agent
env:
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: CATALYST
Type: Package
Title: Cytometry dATa anALYSis Tools
Version: 1.27.0
Depends: R (>= 4.2), SingleCellExperiment
Version: 1.27.1
Depends: R (>= 4.4), SingleCellExperiment
Authors@R: c(
person("Helena L.", "Crowell",
role=c("aut", "cre"),
Expand Down
13 changes: 12 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
changes in version 1.27.1

+ bug fix in 'plotDiffHeatmap': add 'drop=FALSE'
to avoid failure for DA when 1 cluster remains

+ fix typos in differential vignette (issue #387)

changes in version 1.27.0

+ Bioconductor release 3.18

changes in version 1.25.1

+ fixed unit tests for differential plotting
Expand All @@ -6,7 +17,7 @@ changes in version 1.25.1

changes in version 1.25.0

+ Bioconductor release 3.18
+ Bioconductor release 3.17

changes in version 1.23.5

Expand Down
2 changes: 1 addition & 1 deletion R/plotDiffHeatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ plotDiffHeatmap <- function(x, y, k = NULL,
da = {
ns <- table(x$cluster_id, x$sample_id)
fq <- prop.table(ns, 2)
fq <- fq[top$cluster_id, ]
fq <- fq[top$cluster_id, , drop=FALSE]
y <- as.matrix(unclass(fq))
if (normalize) y <- .z_normalize(asin(sqrt(y)))
Heatmap(
Expand Down
6 changes: 6 additions & 0 deletions tests/testthat/test_plotDiffHeatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ test_that("plotDiffHeatmap() - DA; cluster filtering", {
}
})

test_that("plotDiffHeatmap() - DA; single cluster (#382)", {
y <- da[da$cluster_id == 1, ]
p <- plotDiffHeatmap(x, y)
expect_is(p, "Heatmap")
})

test_that("plotDiffHeatmap() - DS; cluster filtering", {
for (ks in lapply(c(1, 3, 5), sample, x = levels(kids))) {
y <- filterSCE(x, !cluster_id %in% ks, k = k)
Expand Down
8 changes: 3 additions & 5 deletions vignettes/differential.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ output:
knitr::opts_chunk$set(cache = TRUE)
```

---

<span style="color:firebrick">**Most of the pipeline and visualizations presented herein have been adapted from @Nowicka2019-F1000's *"CyTOF workflow: differential discovery in high-throughput high-dimensional cytometry datasets"* available [here](https://f1000research.com/articles/6-748/v4).**</span>

```{r warning = FALSE, message = FALSE}
Expand Down Expand Up @@ -121,10 +119,10 @@ sce <- cluster(sce, features = "type",

Let K = `xdim` x `ydim` be the number of `r BiocStyle::Biocpkg("FlowSOM")` clusters. `cluster` will add information to the following slots of the input `SingleCellExperiment`:

- `rowData`:
- `cluster_id`: cluster ID as inferred by `r BiocStyle::Biocpkg("FlowSOM")`. One of 1, ..., K.
- `rowData``:
- `marker_class`: factor `"type"` or `"state"`. Specifies whether a marker has been used for clustering or not, respectively.
- `colData`:
- `marker_class`: factor `"type"` or `"state"`. Specifyies whether a marker has been used for clustering or not, respectively.
- `cluster_id`: cluster ID as inferred by `r BiocStyle::Biocpkg("FlowSOM")`. One of 1, ..., K.
- `metadata`:
- `SOM_codes`: a table with dimensions K x (# type markers). Contains the SOM codes.
- `cluster_codes`: a table with dimensions K x (`maxK` + 1). Contains the cluster codes for all metaclusterings.
Expand Down
2 changes: 0 additions & 2 deletions vignettes/preprocessing.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ output:
knitr::opts_chunk$set(cache = TRUE)
```

---

<span style="color:firebrick">**Most of the pipeline and visualizations presented herein have been adapted from @Chevrier2018-CATALYST's *"Compensation of Signal Spillover in Suspension and Imaging Mass Cytometry"* available [here](https://doi.org/10.1016/j.cels.2018.02.010).**</span>

```{r load-libs, warning = FALSE, message = FALSE}
Expand Down

0 comments on commit 3680824

Please sign in to comment.