Calculates the theoretically expected values of BAF, mutation frequency or depth ratio for given values of cellularity, DNA-content and copy number.
theoretical.baf(CNt, CNn = 2, cellularity)
theoretical.depth.ratio(CNt, CNn = 2, cellularity, ploidy,
normal.ploidy = 2, avg.depth.ratio = 1)
theoretical.mufreq(Mt, CNt, CNn = 2, cellularity)
copy number in the normal sample.
copy number in the tumor sample.
number of alleles carrying the mutation.
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 in human 2.
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 a given cellularity produce the values of B-allele frequency, mutation frequency or depth ratio that can be theoretically expected.
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.