Skip to contents

Shift column in txDT

Usage

tx_shift_geneWise(DT, colToShift, direction, bp, nCores = 1)

Arguments

DT

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

colToShift

character. Name of column to be shifted

direction

character. Direction of shift, either 'downstream' or 'upstream'.

bp

integer. Number of nucleotides to shift data to

nCores

integer. Number of cores to run the function with. Multicore capability not available in Windows OS.

Value

data.table