Add 1bp-site logical annotation
tx_add_siteAnnotation.Rd
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.
Arguments
- DT
data.table. A table as output by the
tx_makeDT_coverage
(),tx_makeDT_nucFreq
() ortx_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.