Description Usage Arguments Value Examples
View source: R/cnv.freq.plot.r
Creates a map of CNVs using genome binning and plots CNV frequency across the genome. This function optionally returns text, graphical or both outputs. Additionaly, calculates the proportion of samples with a given percentage of chromosome arm gained/lost
1 2 3 4 5 6 7 8 9 10 11 12 13 |
cnv |
(S4) an object of class svcnvio containing data type 'cnv' initialized by validate.cnv |
fc.pct |
(numeric) percentage CNV gain/loss for a segment to be considered changed (i.e. 0.2 = 20 percent change 0.8 < segmean && segmean > 1.2) |
genome.v |
(character) (hg19 or h38) reference genome version to draw chromosome limits and centromeres |
ploidy |
(logical) whether to apply ploidy correction; the function med.segmean will be used to obtain each sample's ploidy logR then this value substracted to each sample's logR values |
g.bin |
(numeric) size in megabases of the genmome bin to compute break density |
sampleids |
(character) vector containing list of samples to include in plot. if set to NULL, all samples in the input will be used |
cex.axis, cex.lab, label.line |
(numeric) plot parameters |
plot |
(logical) whether produce a graphical output |
verbose |
(logical) whether to return internal messages |
an instance of the class 'cnvfreq' and optionally a plot into open device
1 2 3 4 | ## validate input data.frame
cnv <- validate.cnv(nbl_segdat)
cnv.freq(cnv, genome.v = "hg19")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.