Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating version to match Bioconductor #388

Merged
merged 18 commits into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
0c5da48
Fix in the report to work with displayName.
joshua-d-campbell Apr 27, 2022
46c1fdc
Fixed display names in feature plot in report
joshua-d-campbell Apr 27, 2022
c6b5bdd
Merge branch 'master' into devel
joshua-d-campbell May 1, 2022
bceb005
Fixed bug with altExp usage in plotting cell annotation code
joshua-d-campbell May 29, 2022
0d4c863
Fixed bug related to factors/integers for z/y cluster labels within i…
joshua-d-campbell Oct 22, 2022
f94fd23
Updates to version number and NEWS
joshua-d-campbell Oct 22, 2022
9c5b773
Updated Matrix conversion calls to be compatible with Matrix v1.4-2
joshua-d-campbell Oct 22, 2022
5180b5b
Merge pull request #381 from joshua-d-campbell/devel
joshua-d-campbell Oct 22, 2022
4670479
Updated website and docs based on pkgdown v2 with newer version number.
joshua-d-campbell Oct 22, 2022
d1fd362
Merge pull request #382 from joshua-d-campbell/devel
joshua-d-campbell Oct 23, 2022
e912edd
bump x.y.z version to even y prior to creation of RELEASE_3_16 branch
jwokaty Nov 1, 2022
b1d65c3
Bump version to trigger rebuild and propagation of new arm64 binary
jwokaty Dec 13, 2022
b0beb97
Bump version to trigger rebuild and propagation of new Mac binary
jwokaty Jan 19, 2023
a6a8eda
Merge branch 'RELEASE_3_16' into devel
joshua-d-campbell Feb 15, 2023
a53a1c2
Version bump to match Bioconductor
joshua-d-campbell Feb 15, 2023
b51a7fd
Updated GitHub Actions workflow versions
joshua-d-campbell Feb 15, 2023
358bb46
Updated GitHub Actions workflows
joshua-d-campbell Feb 15, 2023
9bf2f4e
Updated GitHub Actions workflows
joshua-d-campbell Feb 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/BioC-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,18 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-pandoc@v1
- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v1
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: rcmdcheck
extra-packages: |
any::rcmdcheck

- name: Install XQuartz on macOS
if: runner.os == 'macOS'
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/check-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-pandoc@v1
- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
Expand All @@ -45,12 +45,14 @@ jobs:
if: runner.os == 'macOS'
run: brew install fftw

- uses: r-lib/actions/setup-r-dependencies@v1
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: rcmdcheck, tinytex
extra-packages: |
any::rcmdcheck
any::tinytex

- uses: r-lib/actions/setup-tinytex@v1
- uses: r-lib/actions/check-r-package@v1
- uses: r-lib/actions/setup-tinytex@v2
- uses: r-lib/actions/check-r-package@v2

- name: Show testthat output
if: always()
Expand Down
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: celda
Title: CEllular Latent Dirichlet Allocation
Version: 1.12.0
Version: 1.14.2
Authors@R: c(person("Joshua", "Campbell", email = "camp@bu.edu",
role = c("aut", "cre")),
person("Shiyi", "Yang", email="syyang@bu.edu", role = c("aut")),
Expand Down Expand Up @@ -30,7 +30,7 @@ LinkingTo: Rcpp, RcppEigen
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.2
RoxygenNote: 7.2.1
BugReports: https://github.com/campbio/celda/issues
biocViews: SingleCell, GeneExpression, Clustering, Sequencing, Bayesian
biocViews: SingleCell, GeneExpression, Clustering, Sequencing, Bayesian, ImmunoOncology, DataImport
NeedsCompilation: yes
23 changes: 7 additions & 16 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# celda v1.14.2 (2023-01-19)
* Update to match Bioconductor release version

# celda v1.13.0 (2022-10-20)
* Bug fixes related to cluster labels stored as factors and plotting
* Updated sparse matrix conversion to work with Matrix v1.4-2

# celda v1.12.0 (2022-04-30)
* Update to match Bioconductor 3.15 release version

Expand All @@ -11,18 +18,15 @@
* Added ability to use batch parameter with the raw matrix in decontX

# celda v1.10.0 (2021-12-28)

* Update to match Bioconductor release version

# celda v1.9.3 (2021-10-04)

* Fixed bug in checking background matrix with decontX
* Switched to using Github Actions for Continuous Integration
* Fixed plotting bugs in celda results reports
* Speed up final step in decontX when creating final decontaminated matrix

# celda v1.9.2 (2021-07-19)

* Added a `NEWS.md` file to track changes to the package.
* Added new tutorials and documentation generated with pkgdown.
* Removed warnings in plotRPC functions.
Expand All @@ -31,54 +35,41 @@
* Several improvements to plotting functions.

# celda v1.7.7 (2021-04-12):

* Added handling for sparse matrices

# celda v1.7.6 (2021-04-04):

* Added functions for creating HTML reports
* Fixed bug in decontX plotting

# celda v1.7.4 (2021-03-09):

* Enable input of raw/droplet matrix into decontX to estimate ambient RNA

# celda v1.1.6 (2019-07-16):

* Add multiclass decision tree

# celda v1.1.4 (2019-05-28):

* Add Alternate headings support for plotDimReduceFeature

# celda v1.1.3 (2019-05-14):

* Add multiclass decision tree (MCDT) cell cluster annotation

# celda v1.1.2 (2019-05-14):

* Fix a bug in celdaHeatmap

# celda v1.0.1 (2019-05-09):

* Default seed setting to maintain reproducibility

# celda v0.99.34 (2019-04-23):

* Minor changes to the vignettes

# celda v0.99.23 (2019-04-10):

* Remove pheatmap import

# celda v0.99.22 (2019-04-09):

* Package celda, for bi-clustering of single-cell 'omics data.

# celda v0.99.8 (2019-03-11):

* Second submission to Bioconductor

# celda v0.99.0 (2018-05-15):

* First submission to Bioconductor
2 changes: 1 addition & 1 deletion R/celda_C.R
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ setMethod("celda_C",
verbose = TRUE) {

# Convert to sparse matrix
x <- methods::as(x, "dgCMatrix")
x <- methods::as(x, "CsparseMatrix")

ls <- list()
ls[[useAssay]] <- x
Expand Down
2 changes: 1 addition & 1 deletion R/celda_CG.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ setMethod("celda_CG",
verbose = TRUE) {

# Convert to sparse matrix
x <- methods::as(x, "dgCMatrix")
x <- methods::as(x, "CsparseMatrix")

ls <- list()
ls[[useAssay]] <- x
Expand Down
2 changes: 1 addition & 1 deletion R/celda_G.R
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ setMethod("celda_G",
verbose = TRUE) {

# Convert to sparse matrix
x <- methods::as(x, "dgCMatrix")
x <- methods::as(x, "CsparseMatrix")

ls <- list()
ls[[useAssay]] <- x
Expand Down
33 changes: 20 additions & 13 deletions R/celda_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ recodeClusterZ <- function(sce, from, to, altExpName = "featureSubset") {
stop("Provided 'sce' argument does not have a 'celda_cell_cluster'",
" column in 'colData(altExp(sce, altExpName))'")
}
new.clusters <- plyr::mapvalues(celdaClusters(sce,
altExpName = altExpName),
from, to)
z <- as.integer(celdaClusters(sce, altExpName = altExpName))
new.clusters <- plyr::mapvalues(z,
from = from, to = to)
new.clusters <- factor(new.clusters, levels =
sort(as.numeric(unique(new.clusters))))

Expand All @@ -181,8 +181,12 @@ recodeClusterZ <- function(sce, from, to, altExpName = "featureSubset") {
if (is.null(celdaClusters(celdaMod)$z)) {
stop("Provided celdaMod argument does not have a z attribute")
}
celdaMod@clusters$z <- plyr::mapvalues(celdaClusters(celdaMod)$z,
from, to)
z <- as.integer(celdaClusters(celdaMod)$z)
new.clusters <- plyr::mapvalues(z, from = from, to = to)
new.clusters <- factor(new.clusters, levels =
sort(as.numeric(unique(new.clusters))))

celdaMod@clusters$z <- new.clusters
return(celdaMod)
}

Expand Down Expand Up @@ -215,14 +219,12 @@ recodeClusterY <- function(sce, from, to, altExpName = "featureSubset") {
stop("Provided 'sce' argument does not have a 'celda_feature_module'",
" column in 'rowData(altExp(sce, altExpName))'")
}
new.clusters <- plyr::mapvalues(celdaModules(sce,
altExpName = altExpName),
from, to)
y <- as.integer(celdaModules(sce, altExpName = altExpName))
new.clusters <- plyr::mapvalues(y, from = from, to = to)
new.clusters <- factor(new.clusters, levels =
sort(as.numeric(unique(new.clusters))))

celdaModules(sce, altExpName = altExpName) <- plyr::mapvalues(
celdaModules(sce, altExpName = altExpName), from, to)

celdaModules(sce, altExpName = altExpName) <- new.clusters
return(sce)
}

Expand All @@ -235,8 +237,13 @@ recodeClusterY <- function(sce, from, to, altExpName = "featureSubset") {
if (is.null(celdaClusters(celdaMod)$y)) {
stop("Provided celdaMod argument does not have a y attribute")
}
celdaMod@clusters$y <- plyr::mapvalues(celdaClusters(celdaMod)$y,
from, to)
y <- as.integer(celdaClusters(celdaMod)$y)

new.clusters <- plyr::mapvalues(y, from = from, to = to)
new.clusters <- factor(new.clusters, levels =
sort(as.numeric(unique(new.clusters))))

celdaMod@clusters$y <- new.clusters
return(celdaMod)
}

Expand Down
4 changes: 2 additions & 2 deletions R/decon.R
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,11 @@ setMethod(
append = TRUE,
verbose = verbose
)
countsBat <- methods::as(countsBat, "dgCMatrix")
countsBat <- methods::as(countsBat, "CsparseMatrix")
}
if (!is.null(bgBat)) {
if (!inherits(bgBat, "dgCMatrix")) {
bgBat <- methods::as(bgBat, "dgCMatrix")
bgBat <- methods::as(bgBat, "CsparseMatrix")
}
}

Expand Down
8 changes: 4 additions & 4 deletions R/factorizeMatrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ setMethod("factorizeMatrix", signature(x = "ANY", celdaMod = "celda_CG"),
counts <- .processCounts(x)
compareCountMatrix(counts, celdaMod)

z <- celdaClusters(celdaMod)$z
y <- celdaClusters(celdaMod)$y
z <- as.integer(celdaClusters(celdaMod)$z)
y <- as.integer(celdaClusters(celdaMod)$y)
# Sometimes, fewer clusters get returned by celda_C/G
# Taking the max(z)/max(y) rather than
# the original K/L will prevent errors
Expand Down Expand Up @@ -318,7 +318,7 @@ setMethod("factorizeMatrix", signature(x = "ANY", celdaMod = "celda_C"),
counts <- .processCounts(x)
compareCountMatrix(counts, celdaMod)

z <- celdaClusters(celdaMod)$z
z <- as.integer(celdaClusters(celdaMod)$z)
# Sometimes, fewer clusters get returned by celda_C
# Taking the max(z) rather than the
# original K will prevent errors
Expand Down Expand Up @@ -430,7 +430,7 @@ setMethod("factorizeMatrix", signature(x = "ANY", celdaMod = "celda_G"),
counts <- .processCounts(x)
compareCountMatrix(counts, celdaMod)

y <- celdaClusters(celdaMod)$y
y <- as.integer(celdaClusters(celdaMod)$y)
# Sometimes, fewer clusters get returned by celda_G
# Taking the max(y) rather than the original
# L will prevent errors
Expand Down
8 changes: 4 additions & 4 deletions R/loglikelihood.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ setMethod("logLikelihood", signature(x = "SingleCellExperiment"),
setMethod("logLikelihood", signature(x = "matrix", celdaMod = "celda_C"),
function(x, celdaMod) {
sampleLabel <- sampleLabel(celdaMod)
z <- celdaClusters(celdaMod)$z
z <- as.integer(celdaClusters(celdaMod)$z)
K <- params(celdaMod)$K
alpha <- params(celdaMod)$alpha
beta <- params(celdaMod)$beta
Expand All @@ -105,7 +105,7 @@ setMethod("logLikelihood", signature(x = "matrix", celdaMod = "celda_C"),
#' @export
setMethod("logLikelihood", signature(x = "matrix", celdaMod = "celda_G"),
function(x, celdaMod) {
y <- celdaClusters(celdaMod)$y
y <- as.integer(celdaClusters(celdaMod)$y)
L <- params(celdaMod)$L
beta <- params(celdaMod)$beta
delta <- params(celdaMod)$delta
Expand All @@ -127,8 +127,8 @@ setMethod("logLikelihood", signature(x = "matrix", celdaMod = "celda_G"),
setMethod("logLikelihood", signature(x = "matrix", celdaMod = "celda_CG"),
function(x, celdaMod) {
sampleLabel <- sampleLabel(celdaMod)
z <- celdaClusters(celdaMod)$z
y <- celdaClusters(celdaMod)$y
z <- as.integer(celdaClusters(celdaMod)$z)
y <- as.integer(celdaClusters(celdaMod)$y)
K <- params(celdaMod)$K
L <- params(celdaMod)$L
alpha <- params(celdaMod)$alpha
Expand Down
Loading