public class LCMSRunInfo extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Date |
date |
protected String |
defaultInstrumentID |
protected Map<String,Instrument> |
instruments |
protected Boolean |
isCentroided |
protected boolean |
isDefaultExplicitlySet |
protected List<OriginalFile> |
originalFiles |
protected List<MsSoftware> |
software |
| Constructor and Description |
|---|
LCMSRunInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInstrument(Instrument instrument,
String id)
If only one instrument is added, it will be set as the default instrument, all the scans, that you add
to the ScanCollection will implicitly refer to this one instrument.
|
static LCMSRunInfo |
createDummyInfo()
Only use if you can't get real run info.
|
Instrument |
getDefaultInstrument() |
String |
getDefaultInstrumentID() |
Instrument |
getInstrument(String id)
Get instrument by ID.
|
Map<String,Instrument> |
getInstruments() |
List<OriginalFile> |
getOriginalFiles() |
Date |
getRunStartTime() |
List<MsSoftware> |
getSoftware() |
Boolean |
isCentroided()
If any of data-processing entries in mzXML or a similar file has mentioned, that the files has been centroided.
|
void |
removeInstrument(Instrument instrument) |
void |
removeInstrument(String id) |
void |
setCentroided(Boolean isCentroided) |
void |
setDefaultInstrumentID(String id)
Call with null parameter to unset.
|
void |
setRunStartTime(Date runStartTime) |
String |
toString() |
protected Map<String,Instrument> instruments
protected String defaultInstrumentID
protected Boolean isCentroided
protected boolean isDefaultExplicitlySet
protected Date date
protected List<MsSoftware> software
protected List<OriginalFile> originalFiles
public Boolean isCentroided()
IllegalStateException.null if the value was not encountered in the run headerpublic void setCentroided(Boolean isCentroided)
public void addInstrument(Instrument instrument, String id)
instrument - id - some identifier for mapping instruments. Instrumnt list is normally stored at the beginning of the
run file, so it's a mapping from this list, to instrument ID specified for each spectrumRef.public final void removeInstrument(String id)
public void removeInstrument(Instrument instrument)
public Map<String,Instrument> getInstruments()
public Instrument getInstrument(String id)
id - public Instrument getDefaultInstrument()
public String getDefaultInstrumentID()
public void setDefaultInstrumentID(String id)
id - this id must be present in the run info already.public static LCMSRunInfo createDummyInfo()
public Date getRunStartTime()
public void setRunStartTime(Date runStartTime)
public List<MsSoftware> getSoftware()
public List<OriginalFile> getOriginalFiles()
Copyright © 2017. All rights reserved.