Constructs a new CLISequence instance and initializes its fields based on the provided command-line arguments.
This constructor parses and validates the command-line arguments to initialize the fields required for the sequence task. It
sets the input storage file, content type, loci, samples, merge and align options, and the output path generator.
Parameters:
arguments - The CommandLine object containing the parsed command-line arguments.
Throws:
MusialException - If there is an error parsing the output path or validating the input storage file.
Method Details
options
public staticorg.apache.commons.cli.Optionsoptions()
Defines the command-line options for the sequence task.
The options include:
-I, --storage: The path to the input storage file (required).
-c, --content: Whether to generate NUCLEOTIDE or AMINOACID sequences (default: NUCLEOTIDE).
-l, --locations: One or more feature identifiers or genomic ranges to generate sequence data for (optional).
-s, --samples: One or more sample identifiers to retrieve sequences for (optional).
-m, --merge: Whether to merge identical sequences (optional, default: false).
-f, --split: How to split output files (optional, default: FEATURE).
-a, --align: Whether to align sequences (optional, default: false).
-v, --variable: Whether to consider only variable sites (optional, default: false).
-o, --output: Path to write the output. By default, files will be created in the input's directory (optional).
Returns:
An Options object containing the defined command-line options.