public class MgfIndex extends ExperimentObject
| Constructor and Description |
|---|
MgfIndex(java.util.ArrayList<java.lang.String> spectrumTitles,
java.util.HashMap<java.lang.String,java.lang.Integer> duplicatedSpectrumTitles,
java.util.HashMap<java.lang.String,java.lang.Long> indexMap,
java.lang.String fileName,
double minRT,
double maxRT,
double maxMz,
double maxIntensity,
int maxCharge,
int maxPeakCount,
long lastModified)
Constructor.
|
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,
int maxCharge,
int maxPeakCount,
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.util.HashMap<java.lang.String,java.lang.Integer> |
getDuplicatedSpectrumTitles()
Returns a map of the duplicated spectrum titles, can be null.
|
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.Integer |
getMaxCharge()
Returns the maximal charge found in the mgf file.
|
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.Integer |
getMaxPeakCount()
Returns the maximum peak count 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 |
setMaxCharge(java.lang.Integer maxCharge)
Sets the maximum charge in this file.
|
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 |
setMaxPeakCount(java.lang.Integer maxPeakCount)
Sets the maximum peak count 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, getUrParampublic 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,
int maxCharge,
int maxPeakCount,
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 intensitymaxCharge - the maximum peak precursor chargemaxPeakCount - the maximum peak countlastModified - a long indicating the last time the indexed file was
modifiedpublic MgfIndex(java.util.ArrayList<java.lang.String> spectrumTitles,
java.util.HashMap<java.lang.String,java.lang.Integer> duplicatedSpectrumTitles,
java.util.HashMap<java.lang.String,java.lang.Long> indexMap,
java.lang.String fileName,
double minRT,
double maxRT,
double maxMz,
double maxIntensity,
int maxCharge,
int maxPeakCount,
long lastModified)
spectrumTitles - an ordered list of all spectrum titlesduplicatedSpectrumTitles - a map of duplicated spectrum titles, and
how often each title is duplicatedindexMap - 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 intensitymaxCharge - the maximum peak precursor chargemaxPeakCount - the maximum peak countlastModified - 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.util.HashMap<java.lang.String,java.lang.Integer> getDuplicatedSpectrumTitles()
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 setMaxCharge(java.lang.Integer maxCharge)
maxCharge - the maximum charge in this filepublic java.lang.Integer getMaxCharge()
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 java.lang.Integer getMaxPeakCount()
public void setMaxPeakCount(java.lang.Integer maxPeakCount)
maxPeakCount - the maximum peak count in this filepublic int getNSpectra()
public java.lang.Long getLastModified()
Copyright © 2014. All Rights Reserved.