public class MgfIndex extends ExperimentObject
Constructor and Description |
---|
MgfIndex(java.util.ArrayList<java.lang.String> spectrumTitles,
java.util.HashMap<java.lang.String,java.lang.Long> indexMap,
java.lang.String fileName,
double minRT,
double maxRT,
double maxMz,
double maxIntensity,
long lastModified)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsSpectrum(java.lang.String spectrumTitle)
Returns a boolean indicating whether the spectrum title is implemented in
this index.
|
java.lang.String |
getFileName()
Returns the name of the indexed file.
|
java.lang.Long |
getIndex(java.lang.String spectrumTitle)
Returns the index corresponding to the desired spectrum.
|
java.lang.Long |
getLastModified()
Returns when the file was last modified.
|
java.lang.Double |
getMaxIntensity()
Returns the maximum precursor intensity in this file.
|
java.lang.Double |
getMaxMz()
Returns the maximum m/z in this file.
|
java.lang.Double |
getMaxRT()
Returns the maximal RT in this file.
|
java.lang.Double |
getMinRT()
Returns the minimum RT in this file.
|
int |
getNSpectra()
Returns the number of imported spectra.
|
java.util.ArrayList<java.lang.String> |
getSpectrumTitles()
Returns an ordered list of all spectrum titles.
|
void |
setMaxIntensity(java.lang.Double maxIntensity)
Sets the maximum precursor intensity in this file.
|
void |
setMaxMz(java.lang.Double maxMz)
Sets the maximum m/z in this file.
|
void |
setMaxRT(java.lang.Double maxRT)
Sets the maximal RT in this file.
|
void |
setMinRT(java.lang.Double minRT)
Sets the minimum RT in this file.
|
addUrParam, getParameterKey, getUrParam
public MgfIndex(java.util.ArrayList<java.lang.String> spectrumTitles, java.util.HashMap<java.lang.String,java.lang.Long> indexMap, java.lang.String fileName, double minRT, double maxRT, double maxMz, double maxIntensity, long lastModified)
spectrumTitles
- an ordered list of all spectrum titlesindexMap
- map of all indexes: spectrum title -> index in the filefileName
- the mgf file namemaxRT
- the maximum retention timeminRT
- the minimum retention tomemaxMz
- the maximum m/z valuemaxIntensity
- the maximum precursor intensitylastModified
- a long indicating the last time the indexed file was
modifiedpublic java.lang.Long getIndex(java.lang.String spectrumTitle)
spectrumTitle
- the desired spectrumpublic boolean containsSpectrum(java.lang.String spectrumTitle)
spectrumTitle
- the spectrum titlepublic java.util.ArrayList<java.lang.String> getSpectrumTitles()
public java.lang.String getFileName()
public java.lang.Double getMaxRT()
public void setMaxRT(java.lang.Double maxRT)
maxRT
- the maximal RT in this filepublic java.lang.Double getMaxMz()
public void setMaxMz(java.lang.Double maxMz)
maxMz
- the maximum m/z in this filepublic java.lang.Double getMaxIntensity()
public void setMaxIntensity(java.lang.Double maxIntensity)
maxIntensity
- the maximum precursor intensity in this filepublic java.lang.Double getMinRT()
public void setMinRT(java.lang.Double minRT)
minRT
- the minimum RT in this filepublic int getNSpectra()
public java.lang.Long getLastModified()
Copyright © 2013. All Rights Reserved.