tx_add_pos: Add position unique names

View source: R/tx_core.R

tx_add_posR Documentation

Add position unique names

Description

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


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