"GCadjustCopy"(input.windows, input.counts, gc.params, ...) "GCadjustCopy"(input.windows, input.counts, gc.params, verbose = TRUE)
data.frame
with (at least) columns chr
,
start
, and end
, or a GRanges object.GCAdjustParams
object, holding parameters
related to mappability and GC content correction of read counts.verbose
argument, if data.frame
method called.AdjustedCopyEstimate
object describing the input windows and their
estimates.
The range of GC content of the counting windows is broken into a number of bins, as specified by the user in the parameters object. A probability density function is fitted to the counts in each bin, so the mode can be found. The mode is taken to be the counts of the copy neutral windows, for that GC content bin.
A polynomial function is fitted to the modes of GC content bins. Each count is divided by its expected counts from the polynomial function to give an absolute copy number estimate. If the ploidy has been provided in the parameters object, then all counts within a sample are multiplied by the ploidy for that sample. If the sample ploidys were omitted, then no scaling for ploidy is done.
## Not run:
# library(BSgenome.Hsapiens.UCSC.hg18)
# library(BSgenome.Hsapiens36bp.UCSC.hg18mappability)
# load("inputsReads.RData")
# windows <- genomeBlocks(Hsapiens, chrs = paste("chr", c(1:22, 'X', 'Y'), sep = ''),
# width = 20000)
# counts <- annotationBlocksCounts(inputsReads, anno = windows, seq.len = 300)
#
# gc.par <- GCAdjustParams(genome = Hsapiens, mappability = Hsapiens36bp,
# min.mappability = 50, n.bins = 10, min.bin.size = 10,
# poly.degree = 4, ploidy = c(2, 4))
# abs.cn <- GCadjustCopy(input.windows = windows, input.counts = counts, gc.params = gc.par)
# ## End(Not run)
Run the code above in your browser using DataLab