Skip to content

Commit

Permalink
Bug Fix: check_bootstrap_args hardcoded annotation level
Browse files Browse the repository at this point in the history
  • Loading branch information
Al-Murphy committed Apr 8, 2024
1 parent 5096a8a commit 51f8fa9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: EWCE
Type: Package
Title: Expression Weighted Celltype Enrichment
Version: 1.11.4
Version: 1.11.5
Authors@R:
c(person(given = "Alan",
family = "Murphy",
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# EWCE 1.11.5

## Bug fixes

* `check_bootstrap_args`:
- annotation level for checking cell type names was previous hardcoded to
level 1, now updated to match user input for annotation level.

# EWCE 1.11.4

## Bug fixes
Expand Down
2 changes: 1 addition & 1 deletion R/check_bootstrap_args.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ check_bootstrap_args <- function(sct_data,
}
#### Check if controlling for another celltype ###
if (!is.null(controlledCT)) {
ct_names <- colnames(sct_data[[1]]$specificity)
ct_names <- colnames(sct_data[[annotLevel]]$specificity)
if(fix_celltypes){
ct_names <- fix_celltype_names(ct_names)
}
Expand Down

0 comments on commit 51f8fa9

Please sign in to comment.