codonSumsPerGroup {ORFik} | R Documentation |
Helper for entropy function, normally not used directly Seperate each group into tuples (abstract codons) Gives sum for each tuple within each group
codonSumsPerGroup(grl, reads)
grl |
a GRangesList |
reads |
a GRanges or GAlignment |
Example: counts c(1,0,0,1), with reg_len = 2, gives c(1,0) and c(0,1), these are summed and returned as data.table 10 bases, will give 3 codons, 1 base codons does not exist.
a data.table with codon sums