Skip to content

Commit

Permalink
Fixed #715 - parse compound information file (*.CID)
Browse files Browse the repository at this point in the history
  • Loading branch information
eselmeister committed Aug 23, 2021
1 parent d1ac2a7 commit 25a0695
Show file tree
Hide file tree
Showing 7 changed files with 455 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2014, 2018 Lablicate GmbH.
* Copyright (c) 2014, 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 @@ -21,6 +21,7 @@
public class PreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {

public PreferencePage() {

super(GRID);
setPreferenceStore(Activator.getDefault().getPreferenceStore());
setDescription("AMDIS Settings.");
Expand All @@ -39,6 +40,7 @@ public void createFieldEditors() {
addField(new BooleanFieldEditor(PreferenceSupplier.P_REMOVE_INTENSITIES_LOWER_THAN_ONE, "Remove intesities < 1.0", getFieldEditorParent()));
addField(new BooleanFieldEditor(PreferenceSupplier.P_NORMALIZE_INTENSITIES, "Normalize intensities", getFieldEditorParent()));
addField(new BooleanFieldEditor(PreferenceSupplier.P_EXPORT_INTENSITIES_AS_INTEGER, "Export intensities as Integer", getFieldEditorParent()));
addField(new BooleanFieldEditor(PreferenceSupplier.P_PARSE_COMPOUND_INFORMATION, "Parse Compound Information (*.CID)", getFieldEditorParent()));
}

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ Require-Bundle: org.eclipse.core.runtime,
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-Vendor: ChemClipse
Export-Package: org.eclipse.chemclipse.msd.converter.supplier.amdis.model,
Export-Package: org.eclipse.chemclipse.msd.converter.supplier.amdis.converter.misc,
org.eclipse.chemclipse.msd.converter.supplier.amdis.model,
org.eclipse.chemclipse.msd.converter.supplier.amdis.preferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
/*******************************************************************************
* Copyright (c) 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
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Philip Wenig - initial API and implementation
*******************************************************************************/
package org.eclipse.chemclipse.msd.converter.supplier.amdis.converter.misc;

import java.util.HashSet;
import java.util.Set;

/**
* Example in *.CID file:
* ---
* |C106-50-3 |FC6H8N2
* 1,4-Benzenediamine
* ---
* |C4128-17-0 |FC17H28O2 |RI1840 |RT12.8
* 2,6,10-Dodecatrien-1-ol, 3,7,11-trimethyl-, acetate, (E,E)-
*/
public class CompoundInformation {

private String casNumber = "";
private String formula = "";
private String retentionTime = "";
private String retentionIndex = "";
private String retentionWindow = "";
private String signalToNoise = "";
private String chemicalClass = "";
private String referenceConcentration = "";
private String responseFactor = "";
private String minMatchFactor = "";
private String number = "";
private String name = "";
private Set<String> miscellaneous = new HashSet<>();
private Set<String> synonyms = new HashSet<>();

public String getCasNumber() {

return casNumber;
}

public void setCasNumber(String casNumber) {

this.casNumber = casNumber;
}

public String getFormula() {

return formula;
}

public void setFormula(String formula) {

this.formula = formula;
}

public String getRetentionTime() {

return retentionTime;
}

public void setRetentionTime(String retentionTime) {

this.retentionTime = retentionTime;
}

public String getRetentionIndex() {

return retentionIndex;
}

public void setRetentionIndex(String retentionIndex) {

this.retentionIndex = retentionIndex;
}

public String getRetentionWindow() {

return retentionWindow;
}

public void setRetentionWindow(String retentionWindow) {

this.retentionWindow = retentionWindow;
}

public String getSignalToNoise() {

return signalToNoise;
}

public void setSignalToNoise(String signalToNoise) {

this.signalToNoise = signalToNoise;
}

public String getChemicalClass() {

return chemicalClass;
}

public void setChemicalClass(String chemicalClass) {

this.chemicalClass = chemicalClass;
}

public String getReferenceConcentration() {

return referenceConcentration;
}

public void setReferenceConcentration(String referenceConcentration) {

this.referenceConcentration = referenceConcentration;
}

public String getResponseFactor() {

return responseFactor;
}

public void setResponseFactor(String responseFactor) {

this.responseFactor = responseFactor;
}

public String getMinMatchFactor() {

return minMatchFactor;
}

public void setMinMatchFactor(String minMatchFactor) {

this.minMatchFactor = minMatchFactor;
}

public String getNumber() {

return number;
}

public void setNumber(String number) {

this.number = number;
}

public String getName() {

return name;
}

public void setName(String name) {

this.name = name;
}

public Set<String> getMiscellaneous() {

return miscellaneous;
}

public Set<String> getSynonyms() {

return synonyms;
}
}
Loading

0 comments on commit 25a0695

Please sign in to comment.