Skip to contents

Adds a column to DT which pastes the name of the gene with its transcript coordinate creating unique position identifiers, for use in downstream analysis which requires them. The column is added after the mandatory 'txcoor' column. Unique names formation is expected and checked by default.

Usage

tx_add_pos(DT, sep = ":", check_uniq = T)

Arguments

DT

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

sep

character. Separator between gene and txcoor, by deafult colon sign.

check_uniq

logical. Set to false to override unique position names check.

Value

data.table