use of net.sf.mzmine.modules.visualization.spectra.simplespectra.datapointprocessing.datamodel.results.DPPIsotopeCompositionResult in project mzmine2 by mzmine.
the class IsotopePatternUtils method getResultIsoComp.
private static String getResultIsoComp(DPPIsotopePatternResult result) {
String str = "";
for (ProcessedDataPoint dp : result.getLinkedDataPoints()) {
String c = "";
DPPIsotopeCompositionResult comps = (DPPIsotopeCompositionResult) dp.getFirstResultByType(ResultType.ISOTOPECOMPOSITION);
for (String comp : comps.getValue()) c += comp + ", ";
if (c.length() > 2)
c = c.substring(0, c.length() - 2);
str += format.format(dp.getMZ()) + " (" + c + "), ";
}
str = str.substring(0, str.length() - 2);
return str;
}
Aggregations