tx_add_misincRate: Add misincorporation to total nucleotide reads ratio

View source: R/tx_core.R

tx_add_misincRateR Documentation

Add misincorporation to total nucleotide reads ratio

Description

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

See Also

tx_add_diffNucToRef and tx_add_nucTotal


AngelCampos/tx_tools documentation built on Sept. 17, 2024, 1:27 a.m.