calculateTangentNormal: Calculate tangent normal

Description Usage Arguments Author(s) See Also Examples

View source: R/createNormalDatabase.R

Description

Reimplementation of GATK4 denoising. Please cite the relevant GATK publication if you use this in a publication.

Usage

1
2
3
4
5
6
7
calculateTangentNormal(
  tumor.coverage.file,
  normalDB,
  num.eigen = 20,
  ignore.sex = FALSE,
  sex = NULL
)

Arguments

tumor.coverage.file

Coverage file or data of a tumor sample.

normalDB

Database of normal samples, created with createNormalDatabase.

num.eigen

Number of eigen vectors used.

ignore.sex

If FALSE, detects sex of sample and returns best normals with matching sex.

sex

Sex of sample. If NULL, determine with getSexFromCoverage and default parameters. Valid values are F for female, M for male. If all chromosomes are diploid, specify diploid.

Author(s)

Markus Riester

See Also

createNormalDatabase

Examples

1
2
3
4
5
6
7
8
9
tumor.coverage.file <- system.file('extdata', 'example_tumor.txt', 
    package='PureCN')
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)
normalDB <- createNormalDatabase(normal.coverage.files)
pool <- calculateTangentNormal(tumor.coverage.file, normalDB)

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