iTaxoTools / TaxI2-legacy

Calculates genetic differences between DNA sequences
GNU General Public License v3.0
0 stars 0 forks source link

Disable incompatible functions with "Compare against reference" mode #55

Closed mvences closed 3 years ago

mvences commented 3 years ago

[this issue should be addressed AFTER pulling the branch by @StefanPatman to become the main branch and thereby solving the memory leak problem]

When the "Compare against reference" mode is selected in the upper bar of the GUI, the following modes should be disabled to avoid the program crashing. Note that I have not tested all of these options, and I assume some of them are already disabled, but this should be checked and verified.

There are two options for disabling: Either the respective functions/options do not show up at all in the menu (or are greyed-out) , or they just cannot be selected (e.g., when clicking the checkboxes, nothing happens). Alternatively, at this preliminary stage, it also would be sufficient that simply "nothing happens" if the respective options are selected, i.e., the program just does not execute (but does not crash).

  1. The "against reference" mode is only implemented for tabfile input files. Please enable it also for fasta input file which should be very simple, and these will be the most common input files other users have. The output text will then simply show the sequence name of the query sequence, that of the closest similar sequence, and the distance values. [if tab or fasta input is selected, then input and reference files need either to be both in tab format, or both in fasta format] If the format of one of the input files does not match, issue an error (nut do not let the program crash) The Genbank file option should be disabled.

  2. The "already aligned" option should be disabled

  3. The "perform clustering" option should be disabled.

  4. The "print alignments" option should be enabled if possible (if for whatever reason it creates a problem, then disable this option as well).