524D / compareMS2

Compare samples by MS2 spectra
MIT License
3 stars 0 forks source link

Error reading sample_to_species_mapping.txt #37

Closed magnuspalmblad closed 2 years ago

magnuspalmblad commented 2 years ago

When I try to run the primate example with the latest release (2.0.0-alpha.1), I get an unexpected behavior when using the accompanying sample_to_species_mapping.txt file. The output window goes blank (white) after half a second, and nothing else happens.

I can run the same release on the same files without the sample_to_species_mapping.txt file without problem.

I can replicate the behavior on my laptop and LUMC computer.

524D commented 2 years ago

This already fixed in the current GitHub version. As a workaround, you an also select a difference comparison order (e.g. random). The cause is that with this dataset and the default comparison order, the first comparison happens between two files of the Gorilla_gorilla species. When a sample-to-species file is used, the "comparems-to-distancematrices" executable outputs the distance between species, not between samples. In this case, there is only one specie, causing the output distance matrix to be empty. In the 2.0.0-alpha1 version, the phylotree javascript crashed when there is only once node and no distance. This is now fixed.