Description Usage Arguments Value Author(s) Examples
View source: R/CLONETv2_compute_admixture.R
This function takes a beta table and the associated ploidy table and computes DNA admixture.
1 2 3 | compute_dna_admixture(beta_table, ploidy_table, min_required_snps = 10,
min_coverage = 20, error_tb = error_table, library_type = "WES",
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
|
min_required_snps |
minimum number of informative snps in a segment valid for computing ploidy (default=10) |
min_coverage |
minimum coverage of a segment valid for computing ploidy (default=20) |
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) |
library_type |
WES, WGS (default=WES) |
n_digits |
number of digits in the output table (default=3) |
n_cores |
number of available cores for computation (default=1) |
debug |
return extra columns for debugging (default=F) |
A data.frame with two columns: sample that corresponds to column sample of the input beta_table, and amd that represent the fraction of estimated DNA admixture
Davide Prandi
1 2 | ## Compute admixture table with default parameters
adm_table_toy <- compute_dna_admixture(beta_table = bt_toy, ploidy_table = pl_table_toy)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.