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 Example: c(1,0,0,1), with reg_len = 2, gives c(1,0) and c(0,1), these are summed and returned as list
codonSumsPerGroup(countList, reg_len, runLengths)
countList |
a Rle of count repetitions (000,1,00,1 etc) |
reg_len |
integer vector, size of runs |
runLengths |
integer vector, duplications per run |
a list of codon sums