Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 12, 2024
1 parent 11324c9 commit 9259e20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/scale_cell_counts.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ scale_cell_counts <- function(spe, value, cell_counts, resName = NULL) {
resName <- paste0(value, "_absolute")
}

if (cell_counts %in% colnames(colData(spe))){
cell_densities = colData(spe)[, cell_counts]
if (cell_counts %in% colnames(colData(spe))) {
cell_densities <- colData(spe)[, cell_counts]

Check warning on line 30 in R/scale_cell_counts.R

View check run for this annotation

Codecov / codecov/patch

R/scale_cell_counts.R#L29-L30

Added lines #L29 - L30 were not covered by tests
} else {
stop("Cell count data not available in the object")

Check warning on line 32 in R/scale_cell_counts.R

View check run for this annotation

Codecov / codecov/patch

R/scale_cell_counts.R#L32

Added line #L32 was not covered by tests
}
Expand Down

0 comments on commit 9259e20

Please sign in to comment.