Description Usage Arguments Value Examples
This function finds the highest frequency of nucleotide in input string.
1 |
str |
A string containing character nucleotides |
Return a numeric value for highest frequency
1 2 3 4 5 6 7 8 9 10 11 12 | # Example 1: find the highest letter frequency in a string
str <- "AADDDCCEEEE"
freq <- findConservityFromS(str)
freq # 0.363636...
# Example 2: find the highest frequency of nucleotide from a string of
# nucleotide generated by createPosVec()
data(testSeqShort)
position1Vec <- createPosVec(testSeqShort, 1)
freq <- findConservityFromS(position1Vec)
freq # 0.66666...
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.