public class IdentificationFeaturesCache extends ExperimentObject
Modifier and Type | Class and Description |
---|---|
static class |
IdentificationFeaturesCache.ObjectType
An enumerator of the supported object types.
|
NO_KEY
Constructor and Description |
---|
IdentificationFeaturesCache()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addObject(IdentificationFeaturesCache.ObjectType type,
long objectKey,
Object object)
Adds an object in the cache.
|
long |
getCurrentPeptideKey()
Returns the current peptide key.
|
long |
getCurrentProteinKey()
Returns the current protein key.
|
int |
getMaxSpectrumCount()
Returns the maximal amount of PSMs for the peptides in the current
peptide list.
|
int |
getnValidatedPsms()
Returns the number of validated PSMs for the currently selected peptide.
|
Object |
getObject(IdentificationFeaturesCache.ObjectType type,
long objectKey)
Returns an object if present in the cache.
|
long[] |
getPeptideList()
Returns the current peptide list.
|
long[] |
getProteinList()
Returns the protein list.
|
long[] |
getProteinListAfterHiding()
Returns the protein list after all hiding filters have been used.
|
long[] |
getPsmList()
Returns the PSM list.
|
long[] |
getValidatedProteinList()
Returns a list of validated proteins.
|
boolean |
isFiltered()
Indicates whether the protein list is filtered.
|
void |
removeObjects(IdentificationFeaturesCache.ObjectType type)
Clears all objects of the given type.
|
void |
setCurrentPeptideKey(long currentPeptideKey)
Sets the current peptide key.
|
void |
setCurrentProteinKey(long currentProteinKey)
Sets the current protein key.
|
void |
setFiltered(boolean filtered)
Sets whether the protein list is filtered.
|
void |
setMaxSpectrumCount(int maxSpectrumCount)
Sets the maximal amount of PSMs for the peptides in the current peptide
list.
|
void |
setnValidatedPsms(int nValidatedPsms)
Sets the number of validated PSMs for the currently selected peptide.
|
void |
setPeptideList(long[] peptideList)
Sets the current peptide list.
|
void |
setProteinList(long[] proteinList)
Sets the protein list.
|
void |
setProteinListAfterHiding(long[] proteinListAfterHiding)
Sets the protein list after all hiding filters have been used.
|
void |
setPsmList(long[] psmList)
Sets the PSM list.
|
void |
setReadOnly(boolean readOnly)
Sets the cache in read only.
|
void |
setValidatedProteinList(long[] validatedProteinList)
Sets the list of validated proteins.
|
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
public void removeObjects(IdentificationFeaturesCache.ObjectType type)
type
- the object typepublic void addObject(IdentificationFeaturesCache.ObjectType type, long objectKey, Object object)
type
- the type of the objectobjectKey
- the object keyobject
- the object to storepublic Object getObject(IdentificationFeaturesCache.ObjectType type, long objectKey)
type
- the type of the objectobjectKey
- the key of the objectpublic long getCurrentPeptideKey()
public void setCurrentPeptideKey(long currentPeptideKey)
currentPeptideKey
- the current peptide keypublic long getCurrentProteinKey()
public void setCurrentProteinKey(long currentProteinKey)
currentProteinKey
- the current protein keypublic boolean isFiltered()
public void setFiltered(boolean filtered)
filtered
- a boolean indicating whether the protein list is filteredpublic int getMaxSpectrumCount()
public void setMaxSpectrumCount(int maxSpectrumCount)
maxSpectrumCount
- the maximal amount of PSMs for the peptides in
the current peptide listpublic int getnValidatedPsms()
public void setnValidatedPsms(int nValidatedPsms)
nValidatedPsms
- the number of validated PSMspublic long[] getPeptideList()
public void setPeptideList(long[] peptideList)
peptideList
- the current peptide listpublic long[] getProteinList()
public void setProteinList(long[] proteinList)
proteinList
- the protein listpublic long[] getProteinListAfterHiding()
public void setProteinListAfterHiding(long[] proteinListAfterHiding)
proteinListAfterHiding
- the protein list after all hiding filters
have been usedpublic long[] getPsmList()
public void setPsmList(long[] psmList)
psmList
- the PSM listpublic long[] getValidatedProteinList()
public void setValidatedProteinList(long[] validatedProteinList)
validatedProteinList
- a list of validated proteinspublic void setReadOnly(boolean readOnly)
readOnly
- boolean indicating whether the cache should be in read
onlyCopyright © 2021. All rights reserved.