Learn R Programming

sequenza (version 1.0.5)

theoretical.baf: Calculates cellularity-dependent model points

Description

Calculates the theoretically expected values of BAF, mutation frequency or depth ratio for given values of cellularity, DNA-content and copy number.

Usage

theoretical.baf(CNn, CNt, cellularity)
theoretical.depth.ratio(cellularity = 0.5, ploidy = 2, CNn = 2, CNt = 2,
                        avg.depth.ratio = 1, normal.ploidy = 2)
theoretical.mufreq(cellularity, CNn = 2, CNt = 2, Mt = 1)

Arguments

CNn
copy number in the normal sample.
CNt
copy number in the tumor sample.
Mt
number of alleles carrying the mutation.
cellularity
fraction of tumor cells in the sample.
ploidy
2 * ratio between total DNA content in a tumor cell and a normal cell.
normal.ploidy
ploidy value in the normal sample. Default in human 2.
avg.depth.ratio
average normalized depth ratio.

Details

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.

See Also

model.points.