expected_vaf: Estimate somatic variant allele fraction (VAF)

expected_vaf_germlineR Documentation

Estimate somatic variant allele fraction (VAF)

Description

Given copy-number and purity estimates, calculates the two expected alllele fractions of a mutation in a tumor. Use expected_vaf_germline for germline mutations and expected_vaf_somatic for somatic mutations

Usage

expected_vaf_germline(purity, mcn, lcn)

expected_vaf_somatic(purity, mcn, lcn)

Arguments

purity

Sample purity.

mcn

Integer copy-number of major allele.

lcn

Integer copy-number of minor (lesser) allele.

Value

Object containing expected VAFs if the tumor is on the major (mcn) or minor allele (lcn), respectively.


kpjonsson/kpjmisc documentation built on Jan. 14, 2024, 2:38 a.m.