check_encoding {FastqCleaner} | R Documentation |
Check quality encoding
check_encoding(x = NULL, custom = NULL)
x |
Quality values |
custom |
custom encoding from the following: 'Sanger' ——–> expected range: [0, 40] 'Illumina1.8' ——–> expected range: [0, 41] 'Illumina1.5' ——–> expected range: [0, 40] 'Illumina1.3' ——–> expected range: [3, 40] 'Solexa' ——–> expected range: [-5, 40] |
List with encoding information
Leandro Roser learoser@gmail.com
require(Biostrings) x <- list(PhredQuality(0:40), SolexaQuality(-5:40), IlluminaQuality(3:40)) x <- lapply(x, function(i)utf8ToInt(as.character(i)[1])) lapply(x, check_encoding) SolexaQuality(0:40) IlluminaQuality(0:40)