DENOFO Comparator
The DENOFO Comparator is a tool for comparing denofo annotation files.
It provides functionality for comparing two *.dngf annotation files and
generating a comparison report with either similarities or differences.
The comparator can be used via the command-line interface (CLI) or the graphical user interface (GUI).
Command-line interface (CLI)
- denofo.comparator.comparator_cli.main()
The main function of the program including argument parsing.
Graphical user interface (GUI)
- class denofo.comparator.comparator_gui.DNGFCompareGUI
The main window of the DeNoFo Comparator GUI.
- closeEvent(self, a0: QCloseEvent | None)
- denofo.comparator.comparator_gui.main()
Main function to run the GUI. Entry point for the application.
Comparator logic implementation
- denofo.comparator.compare.write_comparison(comparison: list[tuple], mode: str = 'differences', output_path: Path | None = None, name1: str = 'dngf_1', name2: str = 'dngf_2') str | None
Write the comparison result to the output file.
- Parameters:
comparison (list[tuple]) – The comparison input as preprocessed by
denofo.utils.helpers.compare_two_models().mode (str) – The mode of comparison, either “similarities” or “differences”. Defaults to “differences”.
output_path (Path | None) – The path to the output file. If None, the result is returned as a string.
name1 (str) – The display name of the first comparison element. Defaults to “dngf_1”.
name2 (str) – The display name of the second comparison element. Defaults to “dngf_2”.
- Returns:
The comparison result as a string if output_path is None, otherwise None.
- Return type:
str | None