calc_2d_wgs: Return mixture estimation for percentage of normal cells and...

Description Usage Arguments Value

View source: R/calc_2d_wgs.R

Description

Return mixture estimation for percentage of normal cells and tumor (1 normal + 2 tumors) with wgs data Takes baf, lrr, n_baf and nrc

Usage

1
calc_2d_wgs(baf, lrr, n_baf, nrc)

Arguments

baf

a numeric vector. Each element is the mean adjusted B allele frequency for that segment, calculated as the mean of baf_tumor/baf_normal/2 for that segment

lrr

a numeric vector. Each element is the log ratio of the tumor read count and the normal read count for a segment, defined as log(tumorCount/normalCount)

n_baf

a numeric vector

nrc

a numeric vector. Each element is the normal read count of the segment divided by two

Value

sol1

a numeric vector of length 2. It provides the estimated percentages of normal and tumor from the best solution. The first number is the percentage of the estimated normal percentage. The second number is the percentage of the estimated tumor 1 percentage

sol2

a numeric vector of length 2. It provides the estimated percentages of normal and tumor from the second best solution. The first number is the percentage of the estimated normal percentage. The second number is the percentage of the estimated tumor 1 percentage


EstMix documentation built on May 2, 2019, 7:25 a.m.

Related to calc_2d_wgs in EstMix...