Bioconductor / Biostrings

Efficient manipulation of biological strings
https://bioconductor.org/packages/Biostrings
54 stars 16 forks source link

Inconsistent formatting in `XStringQuality` objects #113

Open ahl27 opened 4 weeks ago

ahl27 commented 4 weeks ago

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