calculateLogRatio {PureCN} | R Documentation |
This function is automatically called by runAbsoluteCN
when
normal and tumor coverage are provided (and not a segmentation file or
target-level log-ratios). This function is therefore normally not called by
the user.
calculateLogRatio(normal, tumor)
normal |
Normal coverage read in by the |
tumor |
Tumor coverage read in by the |
numeric(length(tumor))
, tumor vs. normal copy number log-ratios
for all targets.
Markus Riester
normal.coverage.file <- system.file("extdata", "example_normal.txt", package="PureCN") tumor.coverage.file <- system.file("extdata", "example_tumor.txt", package="PureCN") normal <- readCoverageFile(normal.coverage.file) tumor <- readCoverageFile(tumor.coverage.file) log.ratio <- calculateLogRatio(normal, tumor)