Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seq names are not shown #59

Open
Dobrokhotov1989 opened this issue Jun 22, 2023 · 0 comments
Open

Seq names are not shown #59

Dobrokhotov1989 opened this issue Jun 22, 2023 · 0 comments

Comments

@Dobrokhotov1989
Copy link

Hi there,

I think I've spotted a bug:

suppressPackageStartupMessages({
  library(ggmsa)
  library(Biostrings)
})
my_letters <- c('A', 'T', 'C', 'G')

(seq_1 <- paste0(sample(my_letters, size = 10, replace = TRUE), collapse = ''))
#> [1] "TTATCAAGGT"
  
(seq_2 <- paste0(sample(my_letters, size = 10, replace = TRUE), collapse = ''))
#> [1] "CGATTCAGTA"

alignment <- DNAStringSet(x = c(seq_1 = seq_1,
                                seq_2 = seq_2))

ggmsa(alignment,
      seq_name = TRUE)

# Seq names are replaced by numbers if none_bg is true
ggmsa(alignment,
      seq_name = TRUE,
      none_bg = TRUE)

# Seq names are replaced by numbers if highlight position is outside of shown region
ggmsa(alignment,
      start = 1,
      end = 8,
      seq_name = TRUE,
      position_highlight = 10)

# but not if highligh position is withing the shown region
ggmsa(alignment,
      start = 1,
      end = 8,
      seq_name = TRUE,
      position_highlight = 7)

Created on 2023-06-22 with reprex v2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant