Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed broken lignin ratio calculation when peaks were identified against a database before #656

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2016, 2020 Lablicate GmbH.
* Copyright (c) 2016, 2021 Lablicate GmbH.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand All @@ -10,6 +10,7 @@
* Dr. Lorenz Gerber - initial API and implementation
* Dr. Philip Wenig - initial API and implementation
* Christoph Läubrich - Adjust to new API
* Matthias Mailänder - work together with other targets
*******************************************************************************/
package org.eclipse.chemclipse.msd.classifier.supplier.molpeak.classifier;

Expand Down Expand Up @@ -103,6 +104,9 @@ public static ILigninRatios calculateLigninRatios(IChromatogramSelection<?, ?> c
double count = countArea ? peak.getIntegratedArea() : 1;
exitloop:
for(IIdentificationTarget peakTarget : peak.getTargets()) {
if(!peakTarget.getIdentifier().equals(BasePeakIdentifier.IDENTIFIER)) {
continue;
}
String name = peakTarget.getLibraryInformation().getName();
if(name.equals(BasePeakIdentifier.SYRINGYL)) {
counterS += count;
Expand Down