Skip to contents

For each segment, selects the allele combination (major/minor) with the highest MAF likelihood, with special handling for subclonal events and cases where minor allele is zero.

Usage

SelectCallpersegment(results)

Arguments

results

A data frame or tibble containing all possible calls for each segment, with columns including: Segcov, MAF, mu, rho, index, major, minor, ccf, MAF_likelihood, Bio_diff, maf_ll, cov_diff, etc.

Value

A data frame or tibble with the most likely call per segment, including a log_MAF_likelihood column.

Details

  • Assigns a minimum likelihood for cases where MAF_likelihood is zero.

  • If possible subclonal events are present, compares top two likelihoods and may select the second as a subclonal event.

  • For segments where minor == 0, the call is refined using coverage difference.