public class LCMSDataSubset extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static LCMSDataSubset |
MS1_WITH_SPECTRA
Sets up the parsing parameters to parse all scans, but spectra only for MS1 scans.
|
static LCMSDataSubset |
MS2_WITH_SPECTRA
Sets up the parsing parameters to parse all scans, but spectra only for MS2 scans.
|
static LCMSDataSubset |
STRUCTURE_ONLY
Sets up the parsing parameters to parse only scans for the whole run, no spectra.
|
static LCMSDataSubset |
WHOLE_RUN
Sets up the parsing parameters to parse all the scans and spectra in a run.
|
| Constructor and Description |
|---|
LCMSDataSubset() |
LCMSDataSubset(Integer scanNumLo,
Integer scanNumHi,
Set<Integer> msLvls,
List<DoubleRange> mzRanges) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(LCMSDataSubset other)
Checks if data ranges described by this subset fully contain ranges specified in another set.
|
boolean |
equals(Object o) |
Set<Integer> |
getMsLvls() |
List<DoubleRange> |
getMzRanges() |
Integer |
getScanNumHi() |
Integer |
getScanNumLo() |
int |
hashCode() |
boolean |
isInSubset(IScan scan)
In some cases we don't have the lower/upper mz window (for MS1 this requires either this data
to be in scan meta info, or the spectrumRef to be parsed).
|
LCMSDataSubset |
merge(LCMSDataSubset other)
Doesn't modify original values, always returns a new one.
|
void |
setMsLvls(Set<Integer> msLvls) |
void |
setMzRanges(List<DoubleRange> mzRanges) |
void |
setScanNumHi(Integer scanNumHi) |
void |
setScanNumLo(Integer scanNumLo) |
String |
toString() |
public static final LCMSDataSubset WHOLE_RUN
public static final LCMSDataSubset MS1_WITH_SPECTRA
public static final LCMSDataSubset MS2_WITH_SPECTRA
public static final LCMSDataSubset STRUCTURE_ONLY
public LCMSDataSubset()
public LCMSDataSubset(Integer scanNumLo, Integer scanNumHi, Set<Integer> msLvls, List<DoubleRange> mzRanges)
scanNumLo - null means from the beginningscanNumHi - null means to the endmsLvls - null means any MS-level. If you provide an empty set, then no scan can match this
expression.mzRanges - null means any. If you provide an empty set, then no scan can match this
expression.public Integer getScanNumLo()
public void setScanNumLo(Integer scanNumLo)
public Integer getScanNumHi()
public void setScanNumHi(Integer scanNumHi)
public List<DoubleRange> getMzRanges()
public void setMzRanges(List<DoubleRange> mzRanges)
public boolean isInSubset(IScan scan)
public boolean contains(LCMSDataSubset other)
WHOLE_RUN contains any other subset,
including itself.public LCMSDataSubset merge(LCMSDataSubset other)
contains(umich.ms.datatypes.LCMSDataSubset) the other one.Copyright © 2017–2018. All rights reserved.