Return mixture estimation of a normal and 2 tumors Takes BAF, LRR, chr, x, gt, seg_raw
calc_2d(BAF, LRR, chr, x, GT, seg_raw)vector containing B allen frequency (BAF)
vector
vector
vector
vectors of factors containing genotype
dataframe about segmentation
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-1 is the percentage of the estimated tumor 1 percentage
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-1 is the percentage of the estimated tumor 1 percentage