Skip to contents

Add a column to txDT of the ratio of different nucleotides to the total of nucleotide reads, not counting undetermined reads 'N' and inserts '.'.

Usage

tx_add_misincRate(DT, minNucReads = 20, addCounts = FALSE)

Arguments

DT

data.table. A table as output by the tx_makeDT_nucFreq() or tx_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.

Value

data.table