View source: R/call_mutations.R
call_mutations | R Documentation |
This function evaluate the presence (calls) of individual mutations from a predefined list.
call_mutations(
mutations_df,
read_positions_df,
model,
beta,
alpha = 0.05,
use_turboem = TRUE,
calculate_confidence_intervals = FALSE,
batch_size = NULL
)
mutations_df |
A |
read_positions_df |
A |
model |
A dreams model. See |
beta |
Down sampling parameter from |
alpha |
Alpha-level used for testing and confidence intervals. Default is 0.05. |
use_turboem |
Logical. Should |
calculate_confidence_intervals |
Logical. Should confidence intervals be calculated? Default is FALSE. |
batch_size |
Number of positions to process at a time |
A data.frame()
with information about the individual mutation calls, including:
The genomic position of the mutation.
The reference and alternative allele.
If the EM algorithm converged.
Number of steps and function evaluations by the EM algorithm.
The estiamted tumor fraction (allele fraction).
The confidence interval of tf_est
.
The expected count of the alternative allele under the error (null) model.
The count of the alternative allele.
The coverage used by the model (only referenceredas with and alternative allele).
The total coverage of the position (for reference).
The observed frequency of the alternative allele.
The value of the log-likelihood function under the null (tf=0) and alternative (tf>0) hypothesis.
The chisq test statistic, degrees of freedom and p-value of the statistical test.
Whether the mutation was detected at the supplied alpha level.
call_cancer()
, train_dreams_model()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.