random_TIN: Generate a random dataset for TINC.

View source: R/random_TIN.R

random_TINR Documentation

Generate a random dataset for TINC.

Description

This function simulates a random dataset for TINC analysis, with mutations and copy number data. Segments are not real, they are assumed to be constant heterozygous diploid (Major = minor = 1) and span just mutations (for mappability).

This samples has some noise so that the obtained TIT score might be slightly lower than the required input.

Usage

random_TIN(
  N = 1000,
  TIN = 0.05,
  TIT = 1,
  normal_coverage = 30,
  tumour_coverage = 120
)

Arguments

N

Number of input simulations

TIN

TIN - Tumour in normal contamination level.

TIT

TIT - Tumour in tumour contamination level (aka tumour purity).

normal_coverage

Normal coverage (mean).

tumour_coverage

Tumour coverage (mean).

Value

Tibbles with the data, and a plot.

Examples


set.seed(1234)

# Default dataset
random_TIN()

caravagn/TINC documentation built on April 28, 2024, 7:42 a.m.