-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
These stopifnot() checks are currently failing for me on macOS (arm64) in BioC 3.221:
OSCA.advanced/inst/book/more-reddim.Rmd
Lines 485 to 502 in 5e6af59
| ```{r, echo=FALSE} | |
| ds <- reducedDim(sce.zeisel, "dens-SNE") | |
| ts <- reducedDim(sce.zeisel, "TSNE") | |
| du <- reducedDim(sce.zeisel, "dens-SNE") | |
| tu <- reducedDim(sce.zeisel, "TSNE") | |
| ds <- scale(ds) | |
| ts <- scale(ts) | |
| du <- scale(du) | |
| tu <- scale(tu) | |
| vars_d <- colVars(ds[sce.zeisel$level1class == "astrocytes_ependymal", ]) | |
| vars_t <- colVars(ts[sce.zeisel$level1class == "astrocytes_ependymal", ]) | |
| stopifnot(mean(vars_d) > mean(vars_t)) | |
| vars_d <- colVars(du[sce.zeisel$level1class == "astrocytes_ependymal", ]) | |
| vars_t <- colVars(tu[sce.zeisel$level1class == "astrocytes_ependymal", ]) | |
| stopifnot(mean(vars_d) > mean(vars_t)) | |
| ``` |
@alanocallaghan I've realised I don't understand what the sanity checks in this section are supposed to be checking
Can you please add some comments explaining what these checks are for?
Moreover:
- I don't really understand why
dt,dm,ds,duare created. AFAICT thedt,ds,duare all identical (at least prior to callingscale()). Also, it seems likedushould probably bedu <- dmi.e.du <- reducedDim(sce.zeisel, "densMAP"), so it seems like the checks were probably never checking what they were supposed to ... Can this code please be checked and simplified to avoid making redundant objects and avoiding re-using the same name for different objects and vice versa. - Should there be some calls to
set.seed()to ensure reproducibility? These are used pretty liberally throughout the rest of OSCA, particularly to help with cases of sections getting moved around, or earlier sections being commented out, and where the random seed might therefore be altered by the time the build gets to this section in the book. - In this same section,
r Biocpkg("densviz")should ber Biocpkg("densvis")
Footnotes
-
This is when using change proposed in https://github.com/alanocallaghan/densvis/issues/10 so that densvis works on macOS (arm64). ↩
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels