Print a TINC object to screen
# S3 method for tin_obj
print(x, ...)
A TINC analysis computed with autofit
.
Extra S3 parameters
Nothing.
# Automatic call
rt = random_TIN()
#> ✔ Generated TINC dataset (n = 999 mutations), TIN (0.05) and TIT (1), normal and tumour coverage 30x and 120x.
#> Warning: Removed 2 rows containing missing values or values outside the scale range
#> (`geom_bar()`).
#> Warning: Removed 2 rows containing missing values or values outside the scale range
#> (`geom_bar()`).
autofit(input = rt$data, cna = rt$cna, FAST = TRUE)
#> [ TINC ]
#>
#>
#> ── Loading TINC input data ─────────────────────────────────────────────────────
#> ✔ Input data contains n = 999 mutations, selecting operation mode.
#> ! Found CNA data, retaining only mutations that map to segments with predominant karyotype ...
#>
#>
#> ── CNAqc - CNA Quality Check ───────────────────────────────────────────────────
#>
#> ℹ Using reference genome coordinates for: GRCh38.
#> ✔ Fortified calls for 999 somatic mutations: 999 SNVs (100%) and 0 indels.
#> ! CNAs have no CCF, assuming clonal CNAs (CCF = 1).
#> ! Added segments length (in basepairs) to CNA segments.
#> ✔ Fortified CNAs for 999 segments: 999 clonal and 0 subclonal.
#> Warning: [CNAqc] a karyotype column is present in CNA calls, and will be overwritten
#> ✔ 999 mutations mapped to clonal CNAs.
#>
#>
#> ── Genome coverage by karyotype, in basepairs. ──
#>
#> # A tibble: 1 × 4
#> minor Major n karyotype
#> <dbl> <dbl> <dbl> <chr>
#> 1 1 1 2997 1:1
#> ✔ n = 999 mutations mapped to CNA segments with karyotype 1:1 (largest available in basepairs).
#> ✔ Mutation with VAF within 0 and 0.7 ~ n = 999.
#>
#> ── Analysing tumour sample with MOBSTER ────────────────────────────────────────
#>
#> [ MOBSTER fit ]
#>
#> ✔ Loaded input data, n = 999.
#> ❯ n = 999. Mixture with k = 1,2 Beta(s). Pareto tail: TRUE and FALSE. Output
#> clusters with π > 0.02 and n > 10.
#> ! mobster automatic setup FAST for the analysis.
#> ❯ Scoring (without parallel) 2 x 2 x 2 = 8 models by reICL.
#>
#>
#>
#> ℹ MOBSTER fits completed in 4.6s.
#>
#> ── [ MOBSTER ] My MOBSTER model n = 999 with k = 1 Beta(s) and a tail ──────────
#> ● Clusters: π = 80% [C1] and 20% [Tail], with π > 0.
#> ● Tail [n = 190, 20%] with alpha = 1.1.
#> ● Beta C1 [n = 809, 80%] with mean = 0.5.
#> ℹ Score(s): NLL = -1306.51; ICL = -2536.31 (-2571.58), H = 35.27 (0). Fit
#> converged by MM in 9 steps.
#>
#> ℹ With CNA, TINC will estimating tumour purity adjusting by copy number and mutation multiplicity.
#> ℹ Mutant allele copies 1 for karyotype 1:1
#> Warning: You did not pass enough input colours, adding a gray colour
#> Available: C1, Tail
#> Missing: NA
#>
#> ✔ MOBSTER found n = 808 clonal mutations from cluster C1
#>
#> ── Analysing normal sample with BMix ───────────────────────────────────────────
#>
#>
#> ── BMix fit ────────────────────────────────────────────────────────────────────
#>
#> ℹ Binomials k_B = 1 and 2, Beta-Binomials k_BB = 0; 4 fits to run.
#>
#> ℹ Bmix best fit completed in 0 mins
#>
#> ── [ BMix ] My BMix model n = 808 with k = 2 component(s) (2 + 0) ──────────────
#> • Clusters: π = 96% [Bin 2] and 4% [Bin 1], with π > 0.
#> • Binomial Bin 1 with mean = 0.0055276530649991.
#> • Binomial Bin 2 with mean = 0.00138324172114227.
#> ℹ Score (model selection): ICL = 465.73.
#> Scale for x is already present.
#> Adding another scale for x, which will replace the existing scale.
#> Scale for fill is already present.
#> Adding another scale for fill, which will replace the existing scale.
#> Warning: Removed 2 rows containing missing values or values outside the scale range
#> (`geom_bar()`).
#> Warning: Removed 551 rows containing missing values or values outside the scale range
#> (`geom_raster()`).
#> ✔ Binomial peaks 0.0055276530649991 and 0.00138324172114227 with proportions 0.0359073269343783 and 0.964092673065622. Clonal score 0.00153205645421668 with TINN 0.00306411290843336
#>
#> ── Analysing tumour and normal samples with VIBER ──────────────────────────────
#>
#> [ VIBER - variational fit ]
#>
#> ℹ Input n = 999, with k < 5. Dirichlet concentration α = 1e-06.
#> ℹ Beta (a_0, b_0) = (1, 1); q_i = prior. Optimise: ε = 1e-06 or 1000 steps, r = 3 starts.
#> [easypar] 2024-04-25 09:23:09.451025 - Overriding parallel execution setup [TRUE] with global option : FALSE
#>
#> ✔ VIBER fit completed in 0.03 mins (status: converged)
#>
#> ── [ VIBER ] My VIBER model n = 999 (w = 2 dimensions). Fit with k = 5 clusters.
#> • Clusters: π = 82% [C2], 15% [C4], and 3% [C5], with π > 0.
#> • Binomials: θ = <0, 0.5> [C2], <0, 0.08> [C4], and <0, 0.21> [C5].
#> ℹ Score(s): ELBO = -149020.504. Fit converged in 58 steps, ε = 1e-06.
#>
#> ✔ Reduced to k = 3 (from 5) selecting VIBER cluster(s) with π > 0.02, and Binomial p > 0 in w > 0 dimension(s).
#>
#> ── TINC profiler for bulk WGS ──────────────────────────────────────────────────
#>
#> ℹ Copy Number data has been used for this analysis (karyotype 1:1)
#>
#> ────────────────────────────────────────────────────────────────────────────────
#> ── [ CNAqc ] MySample 999 mutations in 999 segments (999 clonal, 0 subclonal). G
#>
#> ── Clonal CNAs
#>
#> 1:1 [n = 999, L = 0 Mb] ■■■■■■■■■■■■■■■■■■■■■■■■■■■
#>
#> ℹ Sample Purity: 80% ~ Ploidy: 2.
#> ────────────────────────────────────────────────────────────────────────────────
#> → Mutations data: n = 999 out of 999 within range (100%).
#>
#> TIT : 101% (RF 101) ~ n = 808 clonal mutations, cluster C1
#> TIN : 0% (RF 0) ~ n = 37 with VAF > 0
#>
#> QC Tumour High purity (>85%)
#> QC Normal No Contamination (<1%)