Minimac4
|
Class responsible for managing genotype imputation statistics and timing. More...
#include <imputation.hpp>
Public Member Functions | |
long | total_input_time () const |
Get the total accumulated input time. | |
long | total_output_time () const |
Get the total accumulated output time. | |
long | total_impute_time () const |
Get the total accumulated imputation time. | |
bool | impute_chunk (const savvy::region &impute_region, const prog_args &args, omp::internal::thread_pool2 &tpool, dosage_writer &output) |
Perform genotype imputation for a given genomic region. | |
Class responsible for managing genotype imputation statistics and timing.
This class tracks cumulative input, output, and imputation times for genotype imputation runs. It also provides helper methods to record elapsed times and retrieve totals.
The timing values are updated by internal helper functions whenever an operation (e.g., input loading, output writing, or HMM traversal) completes. These values can then be retrieved for reporting and profiling.
bool imputation::impute_chunk | ( | const savvy::region & | impute_region, |
const prog_args & | args, | ||
omp::internal::thread_pool2 & | tpool, | ||
dosage_writer & | output ) |
Perform genotype imputation for a given genomic region.
This function loads target haplotypes, reference haplotypes, and executes a Hidden Markov Model (HMM)–based imputation algorithm across the specified region. The region is optionally extended by an overlap to reduce edge effects.
Results are written to the provided output writer or via temporary files when sample sizes are large.
Workflow:
impute_region | The genomic region to impute (chromosome, start, end). |
args | Program arguments controlling paths, thresholds, buffers, and options. |
tpool | Thread pool for parallel HMM traversal. |
output | Dosage writer for writing final imputation results. |
args.min_ratio()
, the chunk may be skipped or treated as an error depending on args.fail_min_ratio()
.--all-typed-sites
).
|
inline |
Get the total accumulated imputation time.
|
inline |
Get the total accumulated input time.
|
inline |
Get the total accumulated output time.