Skip to content

Commit 79e9e5a

Browse files
Fix missing tile labels in heatmap vignette
Strip `host-` prefix from FASTA sequence names so the `left_join()` on `ref` matches the prefix-stripped names in `heatmap_data`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3f21196 commit 79e9e5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vignettes/articles/heatmap.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ black and white for contrast.
255255
# Add the reference base at each position for labeling
256256
ref_seqs <- Biostrings::readDNAStringSet(trna_fasta)
257257
ref_bases <- tibble::tibble(
258-
ref = rep(names(ref_seqs), Biostrings::width(ref_seqs)),
258+
ref = sub("^host-", "", rep(names(ref_seqs), Biostrings::width(ref_seqs))),
259259
pos = unlist(lapply(Biostrings::width(ref_seqs), seq_len)),
260260
ref_base = strsplit(as.character(unlist(ref_seqs)), "") |> unlist()
261261
)

0 commit comments

Comments
 (0)