public class SpectrumHeaderReader extends AbstractSpectrumHeaderReader
TIME_INDEX_WIDTH
Constructor and Description |
---|
SpectrumHeaderReader(MzDbReader mzDbReader,
AbstractDataEncodingReader dataEncodingReader) |
Modifier and Type | Method and Description |
---|---|
Map<Long,SpectrumHeader> |
getMs1SpectrumHeaderById()
Gets the MS1 spectrum header by id.
|
SpectrumHeader[] |
getMs1SpectrumHeaders()
Gets the MS1 spectrum headers.
|
Map<Long,SpectrumHeader> |
getMs2SpectrumHeaderById()
Gets the MS2 spectrum header by id.
|
SpectrumHeader[] |
getMs2SpectrumHeaders()
Gets the MS2 spectrum headers.
|
MzDbReader |
getMzDbReader()
specialized getter
|
SpectrumHeader |
getSpectrumHeader(long id)
/**
Gets the spectrum header.
|
Map<Long,SpectrumHeader> |
getSpectrumHeaderById()
Gets the spectrum headers by id.
|
SpectrumHeader |
getSpectrumHeaderForTime(float time,
int msLevel)
Gets the spectrum header for time.
|
SpectrumHeader[] |
getSpectrumHeaders()
Gets the spectrum headers.
|
long[] |
getSpectrumIdsForTimeRange(float minRT,
float maxRT,
int msLevel)
Gets the spectrum ids for time range.
|
Map<Long,Float> |
getSpectrumTimeById()
Gets the spectrum time by id.
|
getMs1SpectrumHeaderById, getMs1SpectrumHeaders, getMs2SpectrumHeaderById, getMs2SpectrumHeaders, getMs3SpectrumHeaderById, getMs3SpectrumHeaders, getSpectrumHeader, getSpectrumHeaderById, getSpectrumHeaderForTime, getSpectrumHeaders, getSpectrumIdsForTimeRange, getSpectrumTimeById
getEntityCache
public SpectrumHeaderReader(MzDbReader mzDbReader, AbstractDataEncodingReader dataEncodingReader) throws com.almworks.sqlite4java.SQLiteException
mzDbReader
- com.almworks.sqlite4java.SQLiteException
public MzDbReader getMzDbReader()
getMzDbReader
in class MzDbEntityCacheContainer
public SpectrumHeader[] getSpectrumHeaders() throws com.almworks.sqlite4java.SQLiteException
com.almworks.sqlite4java.SQLiteException
public Map<Long,SpectrumHeader> getSpectrumHeaderById() throws com.almworks.sqlite4java.SQLiteException
com.almworks.sqlite4java.SQLiteException
public SpectrumHeader[] getMs1SpectrumHeaders() throws com.almworks.sqlite4java.SQLiteException
com.almworks.sqlite4java.SQLiteException
public Map<Long,SpectrumHeader> getMs1SpectrumHeaderById() throws com.almworks.sqlite4java.SQLiteException
com.almworks.sqlite4java.SQLiteException
public SpectrumHeader[] getMs2SpectrumHeaders() throws com.almworks.sqlite4java.SQLiteException
com.almworks.sqlite4java.SQLiteException
public Map<Long,SpectrumHeader> getMs2SpectrumHeaderById() throws com.almworks.sqlite4java.SQLiteException
com.almworks.sqlite4java.SQLiteException
public SpectrumHeader getSpectrumHeader(long id) throws com.almworks.sqlite4java.SQLiteException
id
- the idcom.almworks.sqlite4java.SQLiteException
public Map<Long,Float> getSpectrumTimeById() throws com.almworks.sqlite4java.SQLiteException
com.almworks.sqlite4java.SQLiteException
- the SQLite exceptionpublic SpectrumHeader getSpectrumHeaderForTime(float time, int msLevel) throws Exception
time
- the timemsLevel
- the ms levelException
public long[] getSpectrumIdsForTimeRange(float minRT, float maxRT, int msLevel) throws com.almworks.sqlite4java.SQLiteException
minRT
- the min rtmaxRT
- the max rtmsLevel
- the ms levelcom.almworks.sqlite4java.SQLiteException
Copyright © 2019. All rights reserved.