tx_add_startRatio1bpDS: Add starts to coverage ratio 1 bp downstream

View source: R/tx_core.R

tx_add_startRatio1bpDSR Documentation

Add starts to coverage ratio 1 bp downstream

Description

Add a column to DT of the read-starts to coverage ratio, shifted 1 base-pair downstream. This means that the last measurement in any gene is always an NA to account that there was no measurement to be shifted.

Usage

tx_add_startRatio1bpDS(DT, minCov = 50)

Arguments

DT

data.table. A table as output by the tx_makeDT_coverage(), tx_makeDT_nucFreq() or tx_makeDT_covNucFreq() functions.

minCov

numeric. Minimum coverage required to output ratio. If coverage is less then an NA is output in that position.

Value

data.table


AngelCampos/txtools documentation built on Sept. 16, 2024, 10:25 p.m.