Skip to content

Commit

Permalink
Merge pull request #90 from BodenmillerGroup/fix_build_319
Browse files Browse the repository at this point in the history
Fix_Bioc_3.19_release
  • Loading branch information
lassedochreden authored Mar 13, 2024
2 parents 7ba413f + 413f507 commit fd4b913
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 18 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: cytomapper
Version: 1.15.2
Version: 1.15.3
Title: Visualization of highly multiplexed imaging data in R
Description:
Highly multiplexed imaging acquires the single-cell expression of
Expand Down Expand Up @@ -67,5 +67,5 @@ biocViews: ImmunoOncology, Software, SingleCell, OneChannel, TwoChannel, Multipl
VignetteBuilder: knitr
URL: https://github.com/BodenmillerGroup/cytomapper
BugReports: https://github.com/BodenmillerGroup/cytomapper/issues
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
Encoding: UTF-8
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,6 @@ Changes in version 1.15.1 (2023-12-10):

Changes in version 1.15.2 (2023-12-13):
+ change of package maintenance to Lasse Meyer

Changes in version 1.15.3 (2024-03-13):
+ measureObject fixes for Bioc 3.19 release
18 changes: 9 additions & 9 deletions R/measureObjects.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@
#' haralick (\code{h.}) features. Default features are the following:
#'
#' \itemize{
#' \item{s.area}{object size in pixels}
#' \item{s.radius.mean}{mean object radius in pixels}
#' \item{m.cx}{x centroid position of object}
#' \item{m.cy}{y centroid position of object}
#' \item{m.majoraxis}{major axis length in pixels of elliptical fit}
#' \item{m.eccentricity}{elliptical eccentricity. 1 meaning straight line and 0
#' meaning circle.}
#' \item s.area - object size in pixels
#' \item s.radius.mean - mean object radius in pixels
#' \item m.cx - x centroid position of object
#' \item m.cy - y centroid position of object
#' \item m.majoraxis - major axis length in pixels of elliptical fit
#' \item m.eccentricity - elliptical eccentricity. 1 meaning straight line and 0
#' meaning circle.
#' }
#'
#' @section Computing quantiles:
Expand Down Expand Up @@ -254,8 +254,8 @@ measureObjects <- function(mask,
cur_colData <- colData(object)
cur_df <- cbind(mcols(image), mcols(mask))
cur_df <- cur_df[,unique(names(cur_df)), drop=FALSE]
cur_colData <- merge(as.data.frame(cur_colData),
as.data.frame(cur_df),
cur_colData <- merge(as.data.frame(as.matrix(cur_colData)),
as.data.frame(as.matrix(cur_df)),
by = img_id, sort = FALSE)
colData(object) <- as(cur_colData, "DataFrame")

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ Nils Eling, Nicolas Damond, Tobias Hoch, Bernd Bodenmiller (2020). cytomapper: a

[Tobias Hoch](https://github.com/toobiwankenobi)

## Maintainer

[Lasse Meyer](https://github.com/lassedochreden)

## References

Expand Down
14 changes: 7 additions & 7 deletions man/measureObjects.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fd4b913

Please sign in to comment.