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 theExecutorBuild
class. -
Method Summary
-
Constructor Details
-
ExecutorBuild
Constructs an instance of theExecutorBuild
class.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
StorageUpdater
to manage updates to the storage. - A
FeatureLoader
to load and validate genomic features. - A
VCFProcessor
to process variant call files (VCF). - A
VariantAnnotator
to annotate genetic variants.
- Parameters:
cli
- TheCLIBuild
instance 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 thebuild
task.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.
-