View source: R/calculateLogRatio.R
calculateLogRatio | 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.gz",
package = "PureCN")
tumor.coverage.file <- system.file("extdata", "example_tumor.txt.gz",
package = "PureCN")
normal <- readCoverageFile(normal.coverage.file)
tumor <- readCoverageFile(tumor.coverage.file)
log.ratio <- calculateLogRatio(normal, tumor)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.