brk.burden.iqm: Evaluates the breakpoint burden based on a instance 'breaks'...

Description Usage Arguments Value Examples

View source: R/brk.burden.iqm.r

Description

Evaluates the breakpoint burden based on a instance 'breaks' produced by svpluscnv::scv_breaks or svpluscnv::cnv_breaks. Breakpoint densities are calculated for each chromosome arm and the inter quantile mean (svpluscnv::IQM) of al chromosome arms is reported for each sample. A Graphical output is generated indicating every sample's arm burden ordered by their IQM.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
brk.burden.iqm(
  brk,
  sample.col = NULL,
  min.arm.size = 2e+07,
  bp.unit = 1e+07,
  genome.v = "hg19",
  chr.lim = NULL,
  plot = TRUE,
  verbose = TRUE
)

Arguments

brk

(breaks) An instance of the class 'breaks' obtained from CNV segmentation data (svpluscnv::cnv.breaks) or Structural Variant calls (svpluscnv::svc.breaks).

sample.col

(character) A vector of valid colors. Names must match sample column from 'brk'. If null a gradiant color based on breakpoint burden IQM will be used.

min.arm.size

(numeric) minimum size in base pairs for a chromosome arm to be included in the analysis. Size will be calculated based on the 'genome.v' centromere location (excluding centromere bands). Chromosome start and en locations can be provided in 'chr.lim'.

bp.unit

(numeric) The genomic size unit in base pairs to report brekpoint densities. This parameter is also used for the y axis of the plot.

genome.v

(hg19 or hg38) reference genome version to draw chromosome limits and centromeres

chr.lim

(data.frame) 3 column table (chrom, begin, end) indicating the chromosome most distal coordinates with coverage. Also returned by the function svpluscnv::chromosome.limit.coords.

plot

(logical) whether produce a graphical output

verbose

(logical) whether to return internal messages

Value

an instance of the class 'cnvfreq' and optionally a plot into open device

Examples

1
2
3
4
5
6
7
# initialize CNV data
svc <- validate.svc(nbl_svdat)

# obtain CNV breakpoints
brk <- cnv.breaks(cnv)

brk.burden.iqm(brk)

ccbiolab/svpluscnv documentation built on Sept. 9, 2020, 4:52 a.m.