phylogeography / SpreaD3

Spatial Phylogenetic Reconstruction of Evolutionary Dynamics 3
GNU Lesser General Public License v3.0
13 stars 7 forks source link

Failed to setup location coordinates for a discrete analysis result #45

Open MordorianGuy opened 1 year ago

MordorianGuy commented 1 year ago

https://github.com/phylogeography/SpreaD3/blob/f49e4a09fa70eff5cc32c9623c9bc97167fc3296/src/parsers/DiscreteLocationsParser.java#L44C4-L44C43

I cannot setup location coordinates from an example csv of BEAST_CLASSIC "H5N1locations.dat", in spite of it was intact and valid csv. I have looked at the code and suppose that the problem in the used regular expression "\\s" as it matches a newline and we get 4 columns instead of 3.

MordorianGuy commented 1 year ago

I am sorry. The line works as expected. The problem was in the example csv from BEAST_CLASSIC. It contains two newlines at the end instead of one. But this is still undesired behaviour.