Skip to content

Commit 627718e

Browse files
committed
standardize naming of 'X_COLORED_LETTERS' variables
1 parent 5c366ec commit 627718e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

R/coloring.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ update_AA_palette <- function(colors=NULL){
173173
update_B_palette <- function(colors=NULL){
174174
## BStrings don't have a default palette
175175
## thus their default palette function is just \() return(character(0L))
176-
.update_X_palette(colors, "BSTRING_COLORED_LETTERS",
176+
.update_X_palette(colors, "B_COLORED_LETTERS",
177177
NULL,
178178
\(){ character(0L) })
179179
}
@@ -182,4 +182,4 @@ add_colors <- function(x) UseMethod("add_colors")
182182
add_colors.default <- identity
183183
add_colors.DNA <- add_colors.RNA <- function(x){ .add_xstring_colors(x, "DNA_AND_RNA_COLORED_LETTERS") }
184184
add_colors.AA <- function(x){ .add_xstring_colors(x, "AA_COLORED_LETTERS") }
185-
add_colors.B <- function(x) { .add_xstring_colors(x, "BSTRING_COLORED_LETTERS") }
185+
add_colors.B <- function(x) { .add_xstring_colors(x, "B_COLORED_LETTERS") }

R/zzz.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
.Call2("init_AAlkups",
1414
AA_STRING_CODEC@enc_lkup, AA_STRING_CODEC@dec_lkup,
1515
PACKAGE=pkgname)
16-
16+
1717
assign("DNA_AND_RNA_COLORED_LETTERS", make_DNA_AND_RNA_COLORED_LETTERS(), envir=.pkgenv)
1818
assign("AA_COLORED_LETTERS", make_AA_COLORED_LETTERS(), envir=.pkgenv)
19-
assign("BSTRING_COLORED_LETTERS", character(0L), envir=.pkgenv)
19+
assign("B_COLORED_LETTERS", character(0L), envir=.pkgenv)
2020

2121
option_name <- "Biostrings.coloring"
2222
if (!(option_name %in% names(.Options)))

0 commit comments

Comments
 (0)