compute_ploidy: Function to compute ploidy from a beta table.

Description Usage Arguments Value Author(s) Examples

View source: R/CLONETv2_compute_ploidy.R

Description

This function takes the beta table of a tumor sample and returns its ploidy.

Usage

1
2
3
compute_ploidy(beta_table, max_homo_dels_fraction = 0.01,
  beta_limit_for_neutral_reads = 0.9, min_coverage = 20,
  min_required_snps = 10, n_digits = 3, n_cores = 1)

Arguments

beta_table

data.frame formatted as the output of function compute_beta_table

max_homo_dels_fraction

estimated maximum proportion of genomic segments corresponding to an homozygous deletion (default=0.01)

beta_limit_for_neutral_reads

minimum beta value of a segment valid for computing ploidy (default=0.90)

min_coverage

minimum coverage of a segment valid for computing ploidy (default=20)

min_required_snps

minimum number of informative snps in a segment valid for computing ploidy (default=10)

n_digits

number of digits in the output table (default=3)

n_cores

number of available cores for computation (default=1)

Value

A data.frame with two columns: sample that corresponds to column sample of the input beta_table, and ploidy computed

Author(s)

Davide Prandi

Examples

1
2
## Compute ploidy table with default parameters
pl_table_toy <- compute_ploidy(bt_toy)

CLONETv2 documentation built on May 20, 2019, 5:02 p.m.