Description Usage Arguments Value Author(s) Examples
View source: R/CLONETv2_compute_allele_specific_scna_table.R
This function takes the beta table of a tumor sample together with the associated ploidy and admixtures tables and computes the allele specific copy number of each segment in the beta table.
1 2 3 | compute_allele_specific_scna_table(beta_table, ploidy_table,
admixture_table, error_tb = error_table, allelic_imbalance_th = 0.5,
n_digits = 3, n_cores = 1, debug = F)
|
beta_table |
data.frame formatted as the output of function
|
ploidy_table |
data.frame formatted as the output of function
|
admixture_table |
data.frame formatted as the output of function
|
error_tb |
data.frame that reports for each combination of coverage and number informative SNPs the expected estimation error around beta. The data.frame error_tb must contains 3 columns:
Package CLONETv2 have built in error_tb named error_table (default=error_table) |
allelic_imbalance_th |
maximum distance from allele spefici copy number of a segment to define integer alelle specific copy number value. Value 0.5 corresponds to round cnA and cnB (default=0.5) |
n_digits |
number of digits in the output table (default=3) |
n_cores |
number of cores (default=1) |
debug |
return extra columns for debugging (default=F) |
A data.frame that extends input beta_table with columns
log2 ratio adjusted by ploidy and admixture
copy number of the major allele
copy number of the minor allele
integet copy number of the major allele
integet copy number of the minor allele
Davide Prandi
1 2 3 4 | ## Compute clonality table with default parameters
allele_specific_cna_table_toy <- compute_allele_specific_scna_table(
beta_table = bt_toy, ploidy_table = pl_table_toy,
admixture_table = adm_table_toy)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.