View source: R/call_mutations_indels.R
call_mutations_indels | R Documentation |
@description This function evaluates the presence (calls) of individual mutations, including insertions and deletions (INDELs), from a predefined list. It processes given mutation and read position data frames to call mutations based on the specified models and parameters.
call_mutations_indels(
mutations_df,
read_positions_df,
read_positions_df_indels,
model,
model_indels,
beta,
beta_indels,
alpha = 0.05,
use_turboem = TRUE,
calculate_confidence_intervals = FALSE,
batch_size = NULL
)
mutations_df |
A data frame containing the mutation information. |
read_positions_df |
A data frame containing read position information for base substitution mutations. |
read_positions_df_indels |
A data frame containing read position information for INDELs. |
model |
The model used for calling base substitution mutations. |
model_indels |
The model used for calling INDEL mutations. |
beta |
Coefficients or parameters for the base substitution model. |
beta_indels |
Coefficients or parameters for the INDEL model. |
alpha |
Significance level for mutation detection; default is 0.05. |
use_turboem |
Logical; if TRUE, use the TurboEM algorithm for faster computation. |
calculate_confidence_intervals |
Logical; if TRUE, calculate confidence intervals for the estimated tumor fraction. |
batch_size |
Number of positions to process at a time; if NULL, all positions are processed together. |
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.