public class PeptideSpectrumDB extends Object
PeptideSpectrumDB can be built by using the constructor and by using the Builder class for configuring a database by calling PeptideSpectrumDB.newBuilder()
| Modifier and Type | Class and Description |
|---|---|
static interface |
PeptideSpectrumDB.DigestDSL
Fluent interface for configuring the protein digestion and fragmentation.
|
static interface |
PeptideSpectrumDB.DigestSourceDSL
Fluent interface for configuring the protein source
|
static interface |
PeptideSpectrumDB.EndDSL |
static interface |
PeptideSpectrumDB.FragmentDSL
Fluent interface for configuring the protein digestion and fragmentation.
|
static interface |
PeptideSpectrumDB.StartDSL
Fluent interface that starts the build.
|
| Constructor and Description |
|---|
PeptideSpectrumDB(Tolerance precursorTolerance,
PeptideFragmenter fragmenter,
DigestDB digestDB,
PeptideSpectrumCache peptideSpectrumCache,
PeakProcessorChain<PepFragAnnotation> processorChain)
Construct a PeptideSpectrumDB backed by the fragmenter, proteinDB and peptideSpectrumCache.
|
| Modifier and Type | Method and Description |
|---|---|
List<PeptideSpectrum> |
getSpectra(Peak precursor)
Collect all peptide spectra with mass closed to the given precursor peak
|
void |
getSpectra(Peak precursor,
Collection<PeptideSpectrum> spectrumCollection)
Add all peptide spectra contained in this database that are within tolerance of the precursor to spectrumCollection
|
static PeptideSpectrumDB.StartDSL |
newBuilder()
Factory method for creating a builder that can be used to configure and build an in memory PeptideSpectrumDB.
|
public PeptideSpectrumDB(Tolerance precursorTolerance, PeptideFragmenter fragmenter, DigestDB digestDB, PeptideSpectrumCache peptideSpectrumCache, PeakProcessorChain<PepFragAnnotation> processorChain)
precursorTolerance - the precursor tolerancefragmenter - the class that is used to generate theoretical spectradigestDB - the peptide databasepeptideSpectrumCache - the spectrum cacheprocessorChain - the processor chain that is used to process the generated spectrapublic List<PeptideSpectrum> getSpectra(Peak precursor)
precursor - the peak precursor querypublic void getSpectra(Peak precursor, Collection<PeptideSpectrum> spectrumCollection)
precursor - the precursorspectrumCollection - to collection to which the spectra re to be addedpublic static PeptideSpectrumDB.StartDSL newBuilder()
Copyright © 2016. All Rights Reserved.