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

Inconsistent formatting in XStringQuality objects #113

Open
ahl27 opened this issue Aug 14, 2024 · 0 comments
Open

Inconsistent formatting in XStringQuality objects #113

ahl27 opened this issue Aug 14, 2024 · 0 comments

Comments

@ahl27
Copy link
Collaborator

ahl27 commented Aug 14, 2024

XStringQuality names don't render correctly for the quality object when quality scores contain backslashes. Seems like a quirk of R interpreting the backslash and the subsequent character as a single character.

q <- PhredQuality(c("\\]^_`abcd", "\\]^_`abcde", "AAAAAAAAAA"))
names(q) <- letters[1:3]
q
## PhredQuality object of length 3:
##     width seq                                               names               
## [1]     9 \]^_`abcd                                        a
## [2]    10 \]^_`abcde                                       b
## [3]    10 AAAAAAAAAA                                        c
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