Learn R Programming

TEQC (version 3.12.0)

fraction.target: Fraction of the target within the genome

Description

Calculates the fraction of the reference genome that is targeted

Usage

fraction.target(targets, Offset = 0, genome = c(NA, "hg19", "hg18"), genomesize)

Arguments

targets
RangedData table containing positions of target regions, i.e. output from get.targets
Offset
integer; add Offset bases on both sides to targeted regions and potentially collapse resulting overlapping target regions
genome
genome version targets were designed and reads aligned to. For the given options the total genome size is set automatically. For other genomes or versions, leave this option empty ('NA') and specify the genome size with option 'genomesize'
genomesize
integer: specify the total genome size manually. If 'genomesize' is given, option 'genome' will be ignored.

Value

See Also

fraction.reads.target, get.targets

Examples

Run this code
exptPath <- system.file("extdata", package="TEQC")
targetsfile <- file.path(exptPath, "ExampleSet_Targets.bed")
targets <- get.targets(targetsfile, skip=0)
fraction.target(targets, genome="hg19")

Run the code above in your browser using DataLab