codonSumsPerGroup {ORFik}R Documentation

Get hits per codon

Description

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

Usage

codonSumsPerGroup(countList, reg_len, runLengths)

Arguments

countList

a Rle of count repetitions (000,1,00,1 etc)

reg_len

integer vector, size of runs

runLengths

integer vector, duplications per run

Value

a list of codon sums


[Package ORFik version 1.2.1 Index]