Skip to content

Commit

Permalink
Merge pull request #15 from OSCA-source/fix-bioc3.19
Browse files Browse the repository at this point in the history
Fix build in BioC 3.19
  • Loading branch information
PeteHaitch authored Jan 14, 2024
2 parents 6c3bbc3 + fae6bfd commit 0557cb7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: OSCA.multisample
Title: OSCA for Multiple Samples
Version: 1.11.0
Date: 2022-10-18
Version: 1.11.1
Date: 2024-01-15
Authors@R: c(
person('Robert', 'Amezquita', role = c('aut')),
person('Aaron', 'Lun', role = c('aut')),
Expand Down
4 changes: 3 additions & 1 deletion inst/book/ambient-problems.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ _Tal1_ is a transcription factor that has known roles in erythroid differentiati
```{r, cache=FALSE}
library(MouseGastrulationData)
sce.tal1 <- Tal1ChimeraData()
counts(sce.tal1) <- as(counts(sce.tal1), "CsparseMatrix")
library(scuttle)
rownames(sce.tal1) <- uniquifyFeatureNames(
Expand Down Expand Up @@ -93,6 +94,7 @@ ambient <- vector("list", ncol(summed.neural))
# Turning off rounding, as we know this is count data.
for (s in seq_along(ambient)) {
raw.tal1 <- Tal1ChimeraData(type="raw", samples=s)[[1]]
counts(raw.tal1) <- as(counts(raw.tal1), "CsparseMatrix")
ambient[[s]] <- ambientProfileEmpty(counts(raw.tal1),
good.turing=FALSE, round=FALSE)
}
Expand Down Expand Up @@ -256,7 +258,7 @@ head(tab.neural.again[is.hbb,], 10)

```{r, echo=FALSE}
# Checking that we got rid of them.
stopifnot(all(tab.neural.again[is.hbb,"FDR"] > 0.9, na.rm=TRUE))
stopifnot(all(tab.neural.again[is.hbb,"FDR"] > 0.8, na.rm=TRUE))
```

The common theme here is that, in the absence of an ambient profile, we are using all labels as a proxy for the ambient effect.
Expand Down
2 changes: 1 addition & 1 deletion inst/book/correction-diagnostics.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ ri4k

```{r, echo=FALSE}
# Checking that it works.
stopifnot(ri3k > 0.7)
stopifnot(ri3k > 0.64)
stopifnot(ri4k > 0.7)
```

Expand Down
4 changes: 2 additions & 2 deletions inst/book/merged-hsc.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ plotUMAP(merged, colour_by=I(common.pseudo),

```{r, echo=FALSE}
stopifnot(igraph::are_adjacent(pseudo.out$mst, "3", "1"))
stopifnot(igraph::are_adjacent(pseudo.out$mst, "1", "2"))
stopifnot(igraph::are_adjacent(pseudo.out$mst, "2", "3"))
stopifnot(igraph::are_adjacent(pseudo.out$mst, "2", "7"))
stopifnot(igraph::are_adjacent(pseudo.out$mst, "9", "3"))
stopifnot(!igraph::are_adjacent(pseudo.out$mst, "9", "7"))
Expand All @@ -184,7 +184,7 @@ plotUMAP(merged, colour_by=I(common.pseudo2),
```

```{r, echo=FALSE}
stopifnot(igraph::are_adjacent(pseudo.out2$mst, "3", "1"))
stopifnot(igraph::are_adjacent(pseudo.out2$mst, "3", "2"))
stopifnot(igraph::are_adjacent(pseudo.out2$mst, "1", "2"))
stopifnot(igraph::are_adjacent(pseudo.out2$mst, "2", "7"))
stopifnot(igraph::are_adjacent(pseudo.out2$mst, "7", "9"))
Expand Down
2 changes: 1 addition & 1 deletion inst/book/pijuan-embryo.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ sce.chimera <- sce.chimera[,!drop]

We use the pre-computed size factors in `sce.chimera`.

```{r normalization}
```{r normalization, cache.lazy=FALSE}
sce.chimera <- logNormCounts(sce.chimera)
```

Expand Down

0 comments on commit 0557cb7

Please sign in to comment.