Description Usage Arguments Value References Examples
This function finds the nucleotide that has highest frequency of in input string.
1 |
str |
A string containing character nucleotides |
Return a vector that has one or more nucleotides with highest frequency
Antonis. (2018) How to find the most repeated word in a vector with R Stack oveflow Link
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Example 1: find the the letter in string
# with highest occurrence.
str <- "ATTTGGGGCC"
findConservedNul(str) # "G"
# Example 2: find the highest frequency nucleotide from a
# string of nucleotides generated by createPosVec()
data(testSeqShort)
testSeq <- testSeqShort
position1Vec <- createPosVec(testSeq, 1)
findConservedNul(position1Vec) # "T"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.