Learn R Programming

EstMix (version 1.0.1)

Tumor Clones Percentage Estimations

Description

Includes R functions for the estimation of tumor clones percentages for both snp data and (whole) genome sequencing data. See Cheng, Y., Dai, J. Y., Paulson, T. G., Wang, X., Li, X., Reid, B. J., & Kooperberg, C. (2017). Quantification of multiple tumor clones using gene array and sequencing data. The Annals of Applied Statistics, 11(2), 967-991, for more details.

Copy Link

Version

Install

install.packages('EstMix')

Monthly Downloads

80

Version

1.0.1

License

GPL (>= 2)

Maintainer

Xuan You

Last Published

September 13th, 2018

Functions in EstMix (1.0.1)

calcll_cpp

calculate likelihood for 1 normal + 2 tumors case
seg_eg

Segmentation
est_mixture

It is a function that takes the LRR obtained from SNP array data and returns the estimated tumor and normal proportions. Currently, the function can performs the proportion estimations by assuming the number of tumor clones to be 1 or 2 or 3. The normalization step is not required and the normalization constant will be returned by this function. The function will output two sets of solutions corresponding to the top 2 optimal solutions based on the posterior distribution. You can choose according to your expertise the one that is more reasonable.
est_mixture_wgs

It is a function that takes the count data obtained from whole genome sequencing (WGS) data and returns the estimated tumor and normal proportions. Currently, the function can performs the proportion estimations by assuming the number of tumor clones to be 1 or 2. The normalization step is not required and the normalization constant will be returned by this function. The function will output two sets of solutions corresponding to the top 2 optimal solutions based on the posterior distribution. You can choose according to your expertise the one that is more reasonable.
calc_1d

Return mixture estimation of a normal and a tumor Takes BAF, LRR, chr, x, gt, seg_raw
sel_scale_1d

select scale for 1 normal + 1 tumor case
calcll_1d_baf

calculate baf_1d for 1 normal + 1 tumor case
get_segmentation

calculate segmentation
calc_1d_wgs

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

Return mixture estimation of a normal and 2 tumors Takes BAF, LRR, chr, x, gt, seg_raw
get_var_tcn_baf

get_var_tcn_baf
calc_3d

Return mixture estimation of a normal and 3 tumors Takes BAF, LRR, chr, x, gt, seg_raw
calc_2d_wgs

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

trancate data and take mean
preprocessing

Preprocessing data
calcll_baf

calculate baf for 1 normal + 2 tumors case
calc_n

return sqrt(n)
calcll_p3

calculate likelihood for 1 normal + 3 tumors case
example_data

ExampleData
combine_close_seg

combine close segmentation
sel_scale_1d_wgs

select scale for 1 normal + 1 tumor case for wgs data
f_baf

f_baf
sel_scale_2d_wgs

select scale for 1 normal + 2 tumors case for wgs data
wgs_eg

wgsData
sel_scale_2d

select scale for 1 normal + 2 tumors case
calcll_p1_cpp

calculate likelihood for 1 normal + 1 tumor case