iTaxoTools / TaxI2

Calculation and analysis of pairwise sequence distances
GNU General Public License v3.0
0 stars 0 forks source link

Add meaningful error message when species/organism name consists of only one word #23

Closed mvences closed 3 years ago

mvences commented 3 years ago

I have been running TaxI2 to do some analyses and run into a cryptic error message when the program started calculating distances. Only after some time I realized that the problem originated because I had specified the species/organism name with a single word only, and so the program was not finding terms it could assign to "genus" and "species".

I don't think it is worth to correct this in TaxI2, but in its successor TaxI3, it would be good to implement a more meaningful error message. That is, when the program detects in one or several cases that the "species" or "organism" column does not have exactly two words, it should output "The field organism or species must consist of two separate expressions separated by a space corresponding to genus and species name".