calculateLogRatio: Calculate coverage log-ratio of tumor vs. normal

Description Usage Arguments Value Author(s) Examples

View source: R/calculateLogRatio.R

Description

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.

Usage

1
calculateLogRatio(normal, tumor)

Arguments

normal

Normal coverage read in by the readCoverageFile function.

tumor

Tumor coverage read in by the readCoverageFile function.

Value

numeric(length(tumor)), tumor vs. normal copy number log-ratios for all targets.

Author(s)

Markus Riester

Examples

1
2
3
4
5
6
7
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)

PureCN documentation built on Nov. 8, 2020, 5:37 p.m.