Generate a random MOBSTER model, its data and creates a plot for it.
Arguments
- N
Number of samples to generate (mutations).
- K_betas
Number of Beta components (subclones).
- pi_tail_bounds
2D vector with min and max size of the tail's mutations (proportions).
- pi_min
Minimum mixing proportion for every component.
- Betas_separation
Minimum separation between the means of the Beta components.
- Beta_variance_scaling
The variance of the Beta is generated as U[0,1] and scaled by this value. Values on the order of 1000 give low variance, 100 represents a dataset with quite some dispersion ( compared to a putative Binomial generative model).
- Beta_bounds
Range of values to sample the Beta means.
- shape_bounds
Range of values to sample the tail shape, default [1, 3],
- scale
Tail scale, default 0.05.
- seed
The seed to fix the process, default is 123.
Examples
x = random_dataset()
print(x)
#> $data
#> # A tibble: 5,000 × 2
#> VAF simulated_cluster
#> <dbl> <chr>
#> 1 0.432 C1
#> 2 0.446 C1
#> 3 0.425 C1
#> 4 0.487 C1
#> 5 0.488 C1
#> 6 0.448 C1
#> 7 0.485 C1
#> 8 0.474 C1
#> 9 0.464 C1
#> 10 0.452 C1
#> # ℹ 4,990 more rows
#>
#> $model
#> $model$a
#> C1 C2
#> 191.57930 69.57455
#>
#> $model$b
#> C1 C2
#> 217.4478 164.4881
#>
#> $model$shape
#> [1] 1
#>
#> $model$scale
#> [1] 0.05
#>
#> $model$pi
#> Tail C1 C2
#> 0.3519696 0.2566339 0.3913966
#>
#>
#> $plot
#>
