Closed phusen closed 3 years ago
This is from the same reason of issue https://github.com/Nesvilab/FragPipe/issues/415.
Guo Ci @guoci Can you add Locale.setDefault(Locale.US);
to PercolatorOutputToPepXML.java
?
Thanks,
Fengchao
@phusen thanks for the bug report, you can find the fix in the link: https://drive.google.com/drive/folders/1yLxJmXjN8tHpOos_eFRRfz4WjlMoAtV7?usp=sharing
Wow, thanks for the quick effort. I can confirm that it works now (in the build you provided) without setting LANG=C
.
You are welcome. Please feel free to contact us if you have any further questions.
Best,
Fengchao
My fragpipe run failed with the error:
So apparently something is writing "localized" floating point values using decimal commas, since my regional settings were set to Danish, in an XML file, which philosopher then later fails to parse. It works, if I run fragpipe or the specific command
using
LANG=C
, but I think it should ideally work no matter the regional settings. It appears to happen in thepercolatorToPepXML
method inPercolatorOutputToPepXML.java
, which inserts extra data into an existing pepXML file usingString.format
(i.e. not using an XML library). The existing file has decimal dots, so the result is a mix and also has comma separated lists of floating point values with commas. So maybe it would be best to make sure that String.format is using the standard US locale?log_2021-08-16_15-12-41.txt