tx_add_siteAnnotation: Add 1bp-site logical annotation

tx_add_siteAnnotationR Documentation

Add 1bp-site logical annotation

Description

Add a logical variable column in DT, for which the genomic coordinates of a GRanges object are used to annotate 1 bp sites. In which TRUE equals to presence of the site in the provided GRanges object. This annotation is useful, for example, when marking already known RNA modification sites.

Usage

tx_add_siteAnnotation(DT, GRanges, colName, nCores = 1)

Arguments

DT

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

GRanges

GRanges. Ranges of length 1, to be marked in the data.table

colName

character. Name of the new column to be added.

nCores

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

Value

data.table


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