All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.profi.mzdb.model.AcquisitionMode Maven / Gradle / Ivy

There is a newer version: 0.0.27
Show newest version
package fr.profi.mzdb.model;

/**
 * Enumeration representing the acquisition mode. It is stored as a cvParam in the run table.
 * This list is NOT exhaustive:
 *  - DDA voulant dire Data Dependant Acquisition
 *  - DDA=IDA
 *  - and DIA=SWATH
 *  - DDA et DIA are Thermo terms
 *  - IDA et SWATH are AbSciex terms
 */
public enum AcquisitionMode {
	DDA(
		"DDA acquisition",
		"Data Dependant Acquisition (Thermo designation), Warning: in ABI this is called IDA (Information Dependant Acquisition)"
	),
	SWATH(
		"SWATH acquisition",
		"ABI Swath acquisition or Thermo swath acquisition"),
	MRM(
		"MRM acquisition",
		"Multiple reaction monitoring"
	),
	SRM("SRM acquisition", "Single reaction monitoring"),
	UNKNOWN(
		"UNKNOWN acquisition",
		"unknown acquisition mode"
	);
    // Other one to be added

    private String description;
    private String code;

    AcquisitionMode(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getDescription() {
        return this.description;
    }

    public String toString() {
        return this.code;
    }
    
    public static AcquisitionMode getAcquisitionMode(String code){
    	AcquisitionMode[] acqModes = AcquisitionMode.values();
    	for (AcquisitionMode acquisitionMode : acqModes) {
    		if (acquisitionMode.code.equals(code)){
				return acquisitionMode;
			}
		}
    	return AcquisitionMode.UNKNOWN;
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy