Description:
The analyze command in dna_sequence_analysis_tool/cli.py contains a significant amount of logic for sequence analysis. This makes the CLI module tightly coupled with the core analysis logic and reduces the reusability of the code.
Suggested Fix:
Move the core analysis logic from the analyze command into a dedicated function within the DNAToolkit class or a new analysis workflow module.
The analyze command in cli.py should primarily be responsible for parsing command-line arguments and calling the new analysis function.
This will improve the separation of concerns, make the code easier to test, and allow the analysis workflow to be used programmatically as part of the library's API.
Description:
The analyze command in dna_sequence_analysis_tool/cli.py contains a significant amount of logic for sequence analysis. This makes the CLI module tightly coupled with the core analysis logic and reduces the reusability of the code.
Suggested Fix:
Move the core analysis logic from the analyze command into a dedicated function within the DNAToolkit class or a new analysis workflow module.
The analyze command in cli.py should primarily be responsible for parsing command-line arguments and calling the new analysis function.
This will improve the separation of concerns, make the code easier to test, and allow the analysis workflow to be used programmatically as part of the library's API.