poolCoverage: Pool coverage from multiple samples

Description Usage Arguments Value Author(s) See Also Examples

View source: R/poolCoverage.R

Description

Averages the coverage of a list of samples.

Usage

1
poolCoverage(all.data, remove.chrs = c(), w = NULL)

Arguments

all.data

List of normals, read with readCoverageFile.

remove.chrs

Remove these chromosomes from the pool.

w

numeric(length(all.data)) vector of weights. If NULL, weight all samples equally.

Value

A data.frame with the averaged coverage over all normals.

Author(s)

Markus Riester

See Also

readCoverageFile

Examples

1
2
3
4
5
6
7
normal.coverage.file <- system.file("extdata", "example_normal.txt", 
    package="PureCN")
normal2.coverage.file <- system.file("extdata", "example_normal2.txt", 
    package="PureCN")
normal.coverage.files <- c(normal.coverage.file, normal2.coverage.file)
pool <- poolCoverage(lapply(normal.coverage.files, readCoverageFile),
     remove.chrs=c("chrX", "chrY"))

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