simulate_BAF: simulate_BAF

View source: R/simulate.R

simulate_BAFR Documentation

simulate_BAF

Description

This functions simulates B allele frequencies and illustrates how UNMASC processes normal and tumor read counts for segmentation.

Usage

simulate_BAF(
  num_segs = 2,
  mean_depth = 300,
  max_PSI = 0,
  tumor = TRUE,
  show_plots = TRUE
)

Arguments

num_segs

An integer specifying the number of segments to simulate.

mean_depth

An integer specifying a mean total depth for loci.

max_PSI

The largest beta-binomial overdispersion term a simulated segment can be.

tumor

To generate tumor read counts, set to TRUE, otherwise set to FALSE.

show_plots

Set to TRUE to plot the simulated output.

Value

A list containing simulated true segmentation and observed data.


pllittle/UNMASC documentation built on June 1, 2025, 1 p.m.