@@ -244,24 +244,24 @@ public static void printXMLHeader(PrettyXMLWriter xml, AFPChain afpChain) throws
244244 xml .attribute ("optLength" , afpChain .getOptLength () + "" );
245245 xml .attribute ("totalLenIni" , afpChain .getTotalLenIni () + "" );
246246
247- xml .attribute ("alignScore" , String .format ("%5.2f" , afpChain .getAlignScore () ).trim ());
248- xml .attribute ("chainRmsd" , String .format ("%5.2f" , afpChain .getChainRmsd () ).trim ());
249- xml .attribute ("identity" ,String .format ("%5.4f" , afpChain .getIdentity () ).trim ());
250- xml .attribute ("normAlignScore" , String .format ("%5.2f" ,afpChain .getNormAlignScore ()).trim ());
251- xml .attribute ("probability" , String .format ("%.2e" , afpChain .getProbability () ).trim ());
252- xml .attribute ("similarity" , String .format ("%5.4f" , afpChain .getSimilarity () ).trim ());
247+ xml .attribute ("alignScore" , String .format (Locale . US , "%5.2f" , afpChain .getAlignScore () ).trim ());
248+ xml .attribute ("chainRmsd" , String .format (Locale . US , "%5.2f" , afpChain .getChainRmsd () ).trim ());
249+ xml .attribute ("identity" ,String .format (Locale . US , "%5.4f" , afpChain .getIdentity () ).trim ());
250+ xml .attribute ("normAlignScore" , String .format (Locale . US , "%5.2f" ,afpChain .getNormAlignScore ()).trim ());
251+ xml .attribute ("probability" , String .format (Locale . US , "%.2e" , afpChain .getProbability () ).trim ());
252+ xml .attribute ("similarity" , String .format (Locale . US , "%5.4f" , afpChain .getSimilarity () ).trim ());
253253
254254 xml .attribute ("similarity1" , afpChain .getCoverage1 () + "" );
255255 xml .attribute ("similarity2" , afpChain .getCoverage2 () + "" );
256- xml .attribute ("totalRmsdIni" , String .format ("%5.2f" ,afpChain .getTotalRmsdIni () ).trim ());
257- xml .attribute ("totalRmsdOpt" , String .format ("%5.2f" ,afpChain .getTotalRmsdOpt () ).trim ());
256+ xml .attribute ("totalRmsdIni" , String .format (Locale . US , "%5.2f" ,afpChain .getTotalRmsdIni () ).trim ());
257+ xml .attribute ("totalRmsdOpt" , String .format (Locale . US , "%5.2f" ,afpChain .getTotalRmsdOpt () ).trim ());
258258 xml .attribute ("ca1Length" , afpChain .getCa1Length ()+"" );
259259 xml .attribute ("ca2Length" , afpChain .getCa2Length ()+"" );
260260 xml .attribute ("afpNum" ,afpChain .getAfpSet ().size ()+"" );
261- xml .attribute ("alignScoreUpdate" ,String .format ("%5.2f" ,afpChain .getAlignScoreUpdate ()).trim ());
261+ xml .attribute ("alignScoreUpdate" ,String .format (Locale . US , "%5.2f" ,afpChain .getAlignScoreUpdate ()).trim ());
262262 xml .attribute ("time" , String .format ("%d" ,afpChain .getCalculationTime ()));
263263 if ( afpChain .getTMScore () != -1 ){
264- xml .attribute ("tmScore" , String .format ("%.2f" ,afpChain .getTMScore ()));
264+ xml .attribute ("tmScore" , String .format (Locale . US , "%.2f" ,afpChain .getTMScore ()));
265265 }
266266
267267 // test if alignment is CP:
0 commit comments