Description Usage Arguments Details See Also

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

1 2 3 4 | ```
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)
``` |

`CNn` |
copy number in the normal sample. |

`CNt` |
copy number in the tumor sample. |

`B` |
number of B-alleles in the tumor sample. |

`Mt` |
number of alleles carrying a mutation in the tumor sample. |

`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 is 2 for a diploid cell. |

`avg.depth.ratio` |
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.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.