Add misincorporation to total nucleotide reads ratio
tx_add_misincRate.Rd
Add a column to txDT of the ratio of different nucleotides to the total of nucleotide reads, not counting undetermined reads 'N' and inserts '.'.
Arguments
- DT
data.table. A table as output by the
tx_makeDT_nucFreq
() ortx_makeDT_covNucFreq
() functions.- minNucReads
Minimum number of nucleotides read needed to calculate misincorporation rate
- addCounts
Set to TRUE to add counts of total nucleotides read (nucTotal) and different to reference nucleotide (misincCount) columns.