Calculates the theoretically expected values of BAF, mutation frequency or depth ratio for given values of cellularity, ploidy and copy number.
theoretical.depth.ratio(CNt, cellularity, ploidy, CNn = 2,
normal.ploidy = 2, avg.depth.ratio = 1)
theoretical.baf(CNt, B, cellularity, CNn = 2)
theoretical.mufreq(CNt, Mt, cellularity, CNn = 2)
copy number in the normal sample.
copy number in the tumor sample.
number of B-alleles in the tumor sample.
number of alleles carrying a mutation in the tumor sample.
fraction of tumor cells in the sample.
2 * ratio between total DNA content in a tumor cell and a normal cell.
ploidy value in the normal sample. Default is 2 for a diploid cell.
average normalized depth ratio.
The observed B-allele frequency, depth ratio and mutation frequency are affected by the cellularity of the tumor sample, which is the inverse of the degree of contamination by normal cells. Three functions are included, which for know values of cellularity and ploidy they produce the expected values of B-allele frequency, mutation frequency or depth ratio.
theoretical.baf
returns a dataframe with the possible copy numbers
of A and B alleles, along with their corresponding B-allele frequency and
the total copy number state (always the sum of A+B).
theoretical.depth.ratio
returns the theoretical depth ratio at a
single specific position, given values of cellularity, ploidy, the ratio
between the tumor copy number and the normal copy number at that position,
and the average depth ratio of the sample.
theoretical.mufreq
returns the theoretical mutation frequency at a
single specific position, given values of cellularity, copy number in the
normal and tumor samples at that position, and the number of mutated
alleles.