Changes in version 1.11.34 - The decontPro vignette is rewritten. It uses the cord blood data's own cell-type labels (no Seurat clustering), explains every output, shows how to tune the priors with before/after density plots, has a template for estimating the ambient profile from empty droplets with background, and covers run time, reproducibility, a FAQ and how to cite DecontPro. Stan's progress no longer fills the page (#83). - decontPro() help describes every element it returns and says that only the ADT totals of background are used, so it must hold empty droplets only. Its example is smaller and seeded (#83). - dplyr is no longer suggested (#83). Changes in version 1.11.33 - decontPro() arguments are now camelCase, like decontX's: cellType, deltaSd, backgroundSd, and background for the empty-droplet counts. The old names cell_type, delta_sd, background_sd and ambient_counts keep working as permanent aliases; giving both names of an argument is an error. Positional calls are unchanged. Two kinds of call that used to work now stop with an error: an abbreviated old name (such as ambient =, or background = for background_sd, since background now names the empty-droplet counts), and a positional value after an alias (such as cell_type = k, 1e-2) (#81). - New decontPro() arguments iter (default 50000) and seed (default 12345) control Stan's fit; the defaults are the values used before, so results don't change. verbose = FALSE hides decontPro's messages and Stan's console output, which is shown only if the fit fails (#81). - decontPro() deletes the temporary CSV that rstan writes, about 100 bytes per ADT x droplet, as soon as the fit ends; before, it stayed until R exited (#46, #81). - decontPro() help: deltaSd and backgroundSd are standard deviations of the priors, not variances, and background is described apart from the model's background component (#81). Changes in version 1.11.32 - The decontX vignette shows the code that maps clusters to cell types, reuses the clusters for its second run, and splits "Running decontX" into runs without and with the background matrix, showing how to import the raw matrix and what decontX needs from it (#43). New sections cover multiple samples (#45) and a FAQ on data with one cell type (#43) and doublet detection (#44). It also says how to cite DecontX. - The package help page, the README and DESCRIPTION cite both papers. - Documentation fixes: contamination is a proportion between 0 and 1, not a percentage; simulateContamination() gives its real delta default (c(1, 10)) and lists everything it returns; decontXcounts() has an example (#83). Changes in version 1.11.31 - plotDensity() and plotBoxByCluster() now use a factor in features by its labels; before, they plotted the row at the factor's integer code under the label's title (#122). features must be rownames: row numbers, which used to select rows by position, now stop with an error. Empty features, features that aren't rownames of both count matrices, and (in plotBoxByCluster()) a cell_type without one entry per droplet now stop with an error that names the argument. Before, a cell_type of the wrong length could be recycled silently, giving droplets the wrong cell types (#122, #123). Changes in version 1.11.29 - decontPro() splits the counts after the Stan fit with about half the memory and in less time. The split results can differ from before in the last digits (about 1e-16, relative); the estimated parameters are unchanged (#111). Changes in version 1.11.28 - decontPro() now stops with a clear error when the counts have a single ADT or a single droplet. Before, Stan failed with an unclear message about mismatched dimensions (#110). Changes in version 1.11.26 - decontX now needs scrapper 1.5.0 or later; every Bioconductor release since 3.23 ships one. Results are unchanged (#115). Changes in version 1.11.25 - Removed compiled code that nothing used, and the help pages of internal functions. The results of decontX(), decontPro() and simulateContamination() are unchanged (#78). Changes in version 1.11.24 - decontX no longer imports plyr or reshape2. Their few uses are now done in base R, with the same results (#77). Changes in version 1.11.23 - decontX() now stops with an error when batch or bgBatch contains an empty string (""). The estimates of a batch named "" couldn't be read back by name, and its cells lost their cluster labels in z when decontX estimated the clusters or when the labels also appeared in another batch: every cell got "-" (or "" when it was the only batch). With more than one batch, a SingleCellExperiment and the default embedding = TRUE, the run failed with an unclear error while storing the UMAPs. Contamination and decontaminated counts were right (#102). Changes in version 1.11.21 - decontX() builds the decontaminated counts faster and with less memory: on 100,000 simulated cells with z given and embedding = FALSE, the run takes 1.2 s instead of 2.8 s and peaks about 1.2 GB lower. The native probability is now computed in the same direct form as in the EM, so the decontaminated counts can change in the last digits (at most about 1e-14 relative); contamination estimates are unchanged (#80). Changes in version 1.11.20 - decontX()'s EM step is faster: a run with cluster labels given in z and embedding = FALSE takes about half the time on the PBMC4k data (3.4 s to 1.7 s). The results are unchanged (#80). Changes in version 1.11.19 - New decontX() argument embedding. With embedding = FALSE and cluster labels given in z, decontX() skips the embedding (the normalization, variable genes, PCA and UMAP), which is most of the run time on large data sets. The decontamination is the same (except with legacyInit = TRUE and seed = NULL, where the EM's random start differs); only the decontX UMAP is left out of the results. embedding = FALSE needs z, and lowers the minimum batch size from 3 cells (15 with legacyInit = TRUE) to 2 (#79). - New decontX() argument numThreads (default 1) for computing the embedding. With more than one thread the PCA can differ in the last digits on large data sets, which can move the UMAP coordinates and change estimated clusters: on 100,000 simulated cells, four threads found 11 clusters instead of 10. Set numThreads the same way to reproduce a run. With legacyInit = TRUE only the UMAP uses the threads (#79). - plotDecontXContamination() can plot the contamination on any reducedDim of a SingleCellExperiment with the new argument reducedDimName, for example after a run with embedding = FALSE. With reducedDimName and batch = NULL it plots every cell (#79). Changes in version 1.11.17 - With HDF5-backed counts, decontXcounts is now a DelayedMatrix held in memory instead of one written to a temporary HDF5 file. Runs are faster, and a saved object no longer points at a file that is deleted when the R session ends. The result needs memory for the sparse decontaminated counts, and HDF5Array's dump settings (such as setHDF5DumpDir()) no longer apply to it. To keep it on disk, save it explicitly: HDF5Array::saveHDF5SummarizedExperiment() for a SingleCellExperiment, or HDF5Array::writeHDF5Array() for the matrix. Values don't change (#76). Changes in version 1.11.16 - decontX() makes fewer copies of the decontaminated counts when it puts them together, so it allocates less memory and runs slightly faster, with or without batch. Results don't change (#76). Changes in version 1.11.15 - decontX() stops when bgBatch is given with batch but without background. It used to ignore bgBatch then, unless its values didn't match batch (#76). Changes in version 1.11.14 - decontX() on a matrix also returns batch, the batch of each cell used for the run ("all_cells" when batch isn't given). The SingleCellExperiment results don't change, apart from runParams below (#76). - runParams in the decontX() results always has batchBackground, which is NULL when background and bgBatch are both NULL. It used to be missing then (#96). Changes in version 1.11.13 - The marker plots' error for duplicated groupClusters values has its missing space back ("assigned to a single group") (#75). Changes in version 1.11.12 - simulateContamination() gives every cell NRange[1] counts when both ends of NRange are equal; it used to draw totals from 1 to that value. K = 1 now stops with a clear message: the simulated contamination comes from the other cell populations, so it needs at least two. So does a C too small to give two populations (for example C = 1). Both used to fail with "Division by 0" (#74). - retrieveFeatureIndex() never matches a feature that is NA, even when a row is named NA, and stops with a clear message when by isn't a single string (#74). - runParams in the decontX() results also records seed and iterLogLik (#74). - Typos fixed in messages and help pages. The error for bgBatch given without batch now names both arguments, and the simulateContamination() help page names its outputs nativeCounts and observedCounts (#74). Changes in version 1.11.11 - plotDensity() smooths the original and decontaminated curves of an ADT with one bandwidth, computed from both. Each curve used to get its own, which made the less spread-out curve's peaks look taller than they are (#73). - plotDensity() and plotBoxByCluster() save to file as given when it ends in ".pdf"; file = "x.pdf" used to write x.pdf.pdf. Without the extension, ".pdf" is still added. The help pages now say the path is returned invisibly (#73). - When groupClusters names labels that aren't in z, the marker plots also list the labels z has. After a batched decontX() run, those can carry the batch as a prefix, such as "b1-1", which the help pages now explain (#73). - plotDecontXContamination() reads the UMAP columns by position, so a UMAP without column names, as after an h5ad round trip, plots instead of failing with .data[[NULL]] (#73). - The decontX() help page says a re-run keeps UMAPs from an earlier run with different batches in reducedDims (#73). - The decontPro vignette passes Seurat's cluster identities to decontPro() as they are, so the cluster numbers in plotBoxByCluster() match the Seurat plots; they used to be shifted by one. Results don't change (#73). Changes in version 1.11.10 - decontPro() reads every counts layer of a Seurat v5 object whose assay is split, joining them in Cells() order. It used to read only the first layer, with a warning, and either stop in Stan or run on that layer's cells alone (#72). - decontPro() accepts any cell_type labels, such as integers with gaps, character strings or a factor, and recodes them for Stan. The rows of parameters$r_est are named by label. A cell_type of the wrong length or with NA, counts that aren't non-negative whole numbers, and NA or negative values in ambient_counts stop with a clear message, and a failed Stan fit says so instead of stopping with "no applicable method for @". Results for labels 1 to K don't change (#72). - decontPro() stops on arguments it doesn't know, such as seed, batch or a misspelled delta_SD, which used to be ignored (#72). Changes in version 1.11.9 - decontX() stops with a clear message when a batch, or x without batch, has fewer than 3 cells (15 with legacyInit = TRUE), which the initialization needs. A one-cell batch used to stop with "subscript out of bounds" (#71). - decontX() accepts a DelayedMatrix over a dense matrix, which used to stop after the whole run, and dgRMatrix and dgTMatrix counts without errors or deprecation warnings. Other inputs, such as a data.frame, a SummarizedExperiment or a matrix of logical or character values (logical sparse matrices used to run as 0/1 counts), stop with a message naming the class. With a SingleCellExperiment x, background must be a SingleCellExperiment too (#71). - decontXcounts is always a dgCMatrix, or a DelayedMatrix for DelayedArray input. dgTMatrix and SVT_SparseMatrix input used to come back in their own class. No results change (#71). Changes in version 1.11.8 - decontX() returns z as a factor. A supplied z comes back with its own labels instead of integer codes; a factor keeps its level order. In batched runs the labels get the batch prefix ("-