seqDinucleotideFrequency {XNAString} | R Documentation |
Create set of functions and methods to calculate dinucleotide frequency in base, sugar and backbone slots
seqDinucleotideFrequency(unique_sets, seq, as.prob)
unique_sets |
string vector of double letters -these letters pose column names |
seq |
string (or character) - frequency is calculated for this string |
as.prob |
logical - if TRUE frequency returned as probability of occurrence |
numeric - named numeric vector
seqDinucleotideFrequency(c("AB", "BA", "CD"), "ABABAB", as.prob = FALSE) seqDinucleotideFrequency(c("GC", "CG", "CC"), "GCCG", as.prob = FALSE)