Created
September 30, 2018 12:45
-
-
Save dreidpath/b0b66aad020a3c9f3ff5739836d39868 to your computer and use it in GitHub Desktop.
The R functions for the caluclation of the phred quality score, " a measure of the quality of the identification of the nucleobases generated by automated DNA sequencing" https://en.wikipedia.org/wiki/Phred_quality_score
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
phred <- function(q){ | |
10^(-q/10) | |
} | |
inv_phred <- function(p){ | |
10 * log10(p) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment