Description Usage Arguments Value Author(s) Examples
View source: R/CLONETv2_compute_scna_clonality_table.R
This function takes the beta table of a tumor sample together with the associated ploidy and admixtures tables and computes the clonality of each segment in the beta table.
1 2 3 | compute_scna_clonality_table(beta_table, ploidy_table, admixture_table,
error_tb = error_table, clonality_threshold = 0.85,
beta_threshold = 0.9, 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) |
clonality_threshold |
threshold to discretize continuous clonality value (default=0.85) |
beta_threshold |
threshold on beta value to determine clonality direction (default=0.90) |
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
estimated fraction of tumor cell with log2 copy number
minum estimated fraction of tumor cell with log2 copy number
minum estimated fraction of tumor cell with log2 copy number
discretized clonality status into five values: clonal, large majority of the tumor cells has the same copy number; subclonal, not all the tumor cells has the same copy number; not.analysed, is is not possible to determine clonality; uncertain.clonal and uncertain.subclonal correspond respectively to clonal and subclonal populations but with less reliable clonality estimate
Davide Prandi
1 2 3 | ## Compute clonality table with default parameters
scna_clonality_table_toy <- compute_scna_clonality_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.