appendZeroes: Append zero values to data.table

appendZeroesR Documentation

Append zero values to data.table

Description

For every position in width max.pos - min.pos + 1, append 0 values in data.table. Needed when coveragePerTiling was run on coverage window with drop.zero.dt as TRUE and you need to plot 0 positions after a transformation by coverageScorings.

Usage

appendZeroes(dt, max.pos, min.pos = 1L, fractions = unique(dt$fraction))

Arguments

dt

a data.table from coverageByTiling that is normalized by coverageScorings.

max.pos

integer, max position of dt

min.pos

integer, default 1L. Minimum position of dt

fractions

default unique(dt$fraction), will repeat each fraction max.pos - min.pos + 1 times.

Value

a data.table with appended 0 values


Roleren/ORFik documentation built on Oct. 19, 2024, 7:37 a.m.