Package task
Class ExecutorBuild
java.lang.Object
task.ExecutorBuild
The
ExecutorBuild class is responsible for executing the build task to compile genomic data.
This class orchestrates the process of loading genomic features, processing variant call files (VCF), annotating variants, inferring sequence types, and computing statistics.
-
Constructor Summary
ConstructorsConstructorDescriptionExecutorBuild(CLIBuild cli) Constructs an instance of theExecutorBuildclass. -
Method Summary
-
Constructor Details
-
ExecutorBuild
Constructs an instance of theExecutorBuildclass.This constructor initializes the necessary components for the build task, including:
- Storage for genomic data, created based on the command-line interface (CLI) input.
- A
StorageUpdaterto manage updates to the storage. - A
FeatureLoaderto load and validate genomic features. - A
VCFProcessorto process variant call files (VCF). - A
VariantAnnotatorto annotate genetic variants.
- Parameters:
cli- TheCLIBuildinstance containing the command-line arguments and options.- Throws:
IOException- If an I/O error occurs during the initialization of storage or other components.
-
-
Method Details
-
run
Executes the main logic of thebuildtask.This method performs the following steps:
- Loads and validates genomic features from the input files.
- Processes VCF files to load variant calls into the storage.
- Runs variant annotation using SnpEff if applicable.
- Infers sequence types if reference sequences are available.
- Computes statistics for the genomic data in the storage.
- Writes the processed storage data to the specified output file.
- Throws:
MusialException- If an error occurs during the processing of genomic data.IOException- If an I/O error occurs during file operations.
-