tx_complete_DT: Complete a DT object missing genes

View source: R/tx_core.R

tx_complete_DTR Documentation

Complete a DT object missing genes

Description

A function that adds the genomic and transcriptomic coordinates of genes with no data in a data.table generated by the tx_coverageDT, tx_nucFreqDT, and tx_covNucFreqDT functions.

Usage

tx_complete_DT(DT, geneAnnot, genome = NULL, nCores = 1)

Arguments

DT

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

geneAnnot

GRanges. Gene annotation as loaded by tx_load_bed().

genome

list. The full reference genome sequences, as loaded by tx_load_genome() or prepackaged by BSgenome, see ?BSgenome::available.genomes

nCores

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

Details

This function is meant to equalize datasets which don't contain some genes, as such the order of the genes is the same as in the GRanges object used as gene annotation.

Value

data.table


AngelCampos/tx_tools documentation built on Sept. 17, 2024, 1:27 a.m.