Skip to content

Commit

Permalink
bugfix: A/B typo
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjwilliams1 committed Nov 22, 2024
1 parent 63fbc1d commit 5a53d08
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: signals
Title: Single Cell Genomes with Allele Specificity
Version: 0.11.3
Version: 0.11.4
Author@R: c(person("Marc", "Williams", email = "[email protected]",
role = c("aut", "cre")),
person("Tyler", "Funnell",
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# signals 0.11.4

* fix typo assigning A->B

# signals 0.11.3

* catch negative state_AS issue for singleton bins
Expand Down
2 changes: 1 addition & 1 deletion R/callHSCN.R
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ callHaplotypeSpecificCN <- function(CNbins,
#sometimes if there is a singleton bin with a different state even the above doesn't catch
#all A + B >state, in this case change the state. This isn't ideal, very hacky
dplyr::mutate(state = ifelse(A + B > state, NA, state),
A = ifelse(is.na(state), NA, B),
A = ifelse(is.na(state), NA, A),
B = ifelse(is.na(A), NA, B)) %>%
tidyr::fill( c("state", "A", "B"), .direction = "up")
#add 0|0 states for hom deletions
Expand Down

0 comments on commit 5a53d08

Please sign in to comment.